Template:Upcoming Events: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
 
(35 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="card mb-3 {{#switch: {{{shadow|}}}|small=shadow-sm|large=shadow|#default=}} {{#ifeq:{{{align|}}}|right|text-right}} {{#ifeq:{{{border|}}}|fpin|fpin-shadow|border-0}} {{{class|}}}" data-public="{{{Is public|}}}" data-sort-start="{{#time:Ymd|{{{Date Start|}}}}}" data-sort-end="{{{Date End|}}}">
<div class="card mb-3 border rounded-0 border-lg {{#if:{{#ask: [[{{{Event|}}}]][[Category:Current Events]]}}|alert-warning}}"  
   <div class="row g-4">{{#if: {{{Event image|}}}|
  data-public="{{{Is public|}}}"  
     <div class="col-md-{{#ifeq:{{{size|big}}}|big|6|4}} col-lg-{{#ifeq:{{{size|big}}}|big|5|3}} {{#ifeq:{{{align|}}}|right|order-md-1}}">[[File:{{PAGENAME:{{{Event image|}}}}}|class=h-100 {{{imageclass|}}}|800px]]</div>}}
  data-sort="{{#time:Ymd|{{{Date Start|}}}}}"  
     <div class="{{#if: {{{Event image|}}}|col-md-{{#ifeq:{{{size|big}}}|big|6|8}} col-lg-{{#ifeq:{{{size|big}}}|big|7|9}}|col-12}} d-flex flex-column">
  data-event-format="{{#replace:{{lc:{{{Event format|}}}}}|;|,}}"
>
   <div class="row g-4">{{#if: {{{Event image|}}}
     |<div class="col-md-4 col-lg-3 img-event">[[File:{{PAGENAME:{{{Event image|}}}}}|class=w-100 h-auto|800px|link={{{Event|}}}]]</div>
  }}
     <div class="col-md-8 col-lg-9 d-flex flex-column">
       <div class="card-body px-md-5 d-flex flex-column justify-content-center">
       <div class="card-body px-md-5 d-flex flex-column justify-content-center">
<div class="h3 card-title">{{{Event|}}}</div>{{#if: {{{badge|}}}|
        <div class="card-text">
<div class="badge bg-info align-self-start">{{{badge|}}}</div>}}{{#if: {{{Event image caption|}}}|
<div class="font-weight-bold text-uppercase text-primary-moha">{{#ifeq: {{#time: Ymd|{{{Date Start|}}}}}
<div class="h6 card-subtitle my-1">{{{Event image caption|}}}</div>}}
|{{#time: Ymd|{{{Date End|}}}}}
        <div class="card-text mt-3">
|{{#time: F j, Y|{{{Date Start|}}}}} {{!}} <!--


-->{{Event dates
    |Date Start={{{Date Start|}}}
    |Date End={{{Date End|}}}
  }}
|{{#if: {{{Date Start|}}}
    |{{#time: m.d.y|{{{Date Start|}}}}}
  }}<!--


{{{Date Start|}}}
-->{{#if: {{{Date End|}}}
{{{Date End|}}}
    |{{#if: {{{Date Start|}}}
{{{Event format|}}}
        |&ndash;
{{{Event location|}}}
      }}{{#time: m.d.y|{{{Date End|}}}}}
  }}
}} {{#if:{{#ask: [[{{{Event|}}}]][[Category:Current Events]]}}|<span class="badge badge-warning fa-1x">CURRENT</span>}}
</div><!--


{{{Event admission type|}}}
--><div class="my-2"><span class="d-block">{{#arraymap: {{{Event format|}}}
{{{Event admission price|}}}
  |;
{{{Event admission price sliding low|}}}
  |@@@
{{{Event admission price sliding high|}}}
  |@@@
  |\s{{!}}\s
}}</span>
</div><!--


--><div class="h3">[[{{{Event|Event}}}|{{{Event|Event}}}]]</div><!--


-->{{#if: {{{Event medium|}}}|<div class="my-2">Medium: {{#arraymap: {{{Event medium|}}}
  |;
  |@@@
  |{{#queryformlink: form=Event types
    |link text=@@@
    |Event types[Event medium]=@@@
    |Event types[param]=Event medium
    |Event types[value]=@@@
    |_run=1
  }}
  |,\s
}}</div>}}<!--
-->{{#if: {{{Event location|}}}|{{#switch: {{{Event location|}}}
  |
  |MoHA=
  |#default = <div class="my-2">Location: {{#arraymap: {{{Event location|}}}
    |;
    |@@@
    |{{#queryformlink: form=Event types
        |link text=@@@
        |Event types[Event location]=@@@
        |Event types[param]=Event location
        |Event types[value]=@@@
        |_run=1
      }}
    |,\s
  }}</div>
}}
}}<!--
-->{{#switch: {{{Is public|}}}
  |Yes
  |true
  |1=<div class="font-weight-bold text-uppercase">{{#switch: {{{Event admission type|}}}
      |Set Price={{#ifeq: {{{Event admission price|}}}|0|Free|${{#explode:{{{Event admission price|}}}| |0}}}}
      |Suggested Donation={{#switch: {{{Event admission price|}}}||0|0 USD=Donation|#default={{{Event admission type|}}} ${{#explode:{{{Event admission price|}}}| |0}}}}
      |Sliding Scale=${{#explode:{{{Event admission price sliding low|}}}| |0}}&ndash;{{#explode:{{{Event admission price sliding high|}}}| |0}} {{{Event admission type|}}}
      |#default=Free
    }}</div><!--
--><div>{{#if: {{#ask:[[-Has subobject::<q>[[{{{Event|}}}]][[Category:Current Events||Upcoming Events]]</q>]][[Event link::+]] }}
    |<span class="moha-button mb-0 cta">[{{#ask:[[-Has subobject::<q>[[{{{Event|}}}]][[Category:Current Events||Upcoming Events]]</q>]][[Event link::+]]|?Event link|mainlabel=-|headers=hide|link=none|limit=1|searchlabel=}} {{#switch: {{{Event admission type|}}}
      |Suggested Donation=RSVP
      |Sliding Scale
      |Set Price=Tickets
      |Free=Attend
      }}]</span>
  }}</div>
}}
         </div>
         </div>
       </div>
       </div>

Latest revision as of 19:27, April 24, 2024

November 21, 2024 | CURRENT