Template:Upcoming Events: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="card border rounded-0" 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="card-title">{{{Event|}}}</div>
  data-public="{{{Is public|}}}"  
{{{Event image|}}}
  data-sort="{{#time:Ymd|{{{Date Start|}}}}}"  
{{{Event image caption|}}}
  data-event-format="{{#replace:{{lc:{{{Event format|}}}}}|;|,}}"
{{{Date Start|}}}
>
{{{Date End|}}}
  <div class="row g-4">{{#if: {{{Event image|}}}
{{{Event format|}}}
    |<div class="col-md-4 col-lg-3 img-event">[[File:{{PAGENAME:{{{Event image|}}}}}|class=w-100 h-auto|800px|link={{{Event|}}}]]</div>
{{{Event location|}}}
  }}
{{{Is public|}}}
    <div class="col-md-8 col-lg-9 d-flex flex-column">
{{{Event admission type|}}}
      <div class="card-body px-md-5 d-flex flex-column justify-content-center">
{{{Event admission price|}}}
        <div class="card-text">
{{{Event admission price sliding low|}}}
<div class="font-weight-bold text-uppercase text-primary-moha">{{#ifeq: {{#time: Ymd|{{{Date Start|}}}}}
{{{Event admission price sliding high|}}}
|{{#time: Ymd|{{{Date End|}}}}}
|{{#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|}}}}}
  }}<!--
 
-->{{#if: {{{Date End|}}}
    |{{#if: {{{Date Start|}}}
        |&ndash;
      }}{{#time: m.d.y|{{{Date End|}}}}}
  }}
}} {{#if:{{#ask: [[{{{Event|}}}]][[Category:Current Events]]}}|<span class="badge badge-warning fa-1x">CURRENT</span>}}
</div><!--
 
--><div class="my-2"><span class="d-block">{{#arraymap: {{{Event format|}}}
  |;
  |@@@
  |@@@
  |\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>
</div>
</div>

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

November 21, 2024 | CURRENT