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 {{# | <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- | data-sort="{{#time:Ymd|{{{Date Start|}}}}}" | ||
<div class=" | 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=" | <div class="card-text"> | ||
<div class=" | <div class="font-weight-bold text-uppercase text-primary-moha">{{#ifeq: {{#time: Ymd|{{{Date Start|}}}}} | ||
|{{#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|}}}}} | |||
}}<!-- | |||
{{{Date | -->{{#if: {{{Date End|}}} | ||
{{{Date | |{{#if: {{{Date Start|}}} | ||
{{{ | |– | ||
{{{Event | }}{{#time: m.d.y|{{{Date End|}}}}} | ||
}} | |||
}} {{#if:{{#ask: [[{{{Event|}}}]][[Category:Current Events]]}}|<span class="badge badge-warning fa-1x">CURRENT</span>}} | |||
</div><!-- | |||
{{{Event | --><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}}–{{#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> |