Template:Upcoming Events: Difference between revisions
From MoHA Wiki
No edit summary |
No edit summary |
||
(23 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div class="card mb-3 border rounded-0 border- | <div class="card mb-3 border rounded-0 border-lg {{#if:{{#ask: [[{{{Event|}}}]][[Category:Current Events]]}}|alert-warning}}" | ||
data-public="{{{Is public|}}}" | |||
data-sort="{{#time:Ymd|{{{Date Start|}}}}}" | |||
data-event-format="{{#replace:{{lc:{{{Event format|}}}}}|;|,}}" | |||
> | |||
<div class="row g-4">{{#if: {{{Event image|}}} | <div class="row g-4">{{#if: {{{Event image|}}} | ||
|<div class="col-md-4 col-lg-3 | |<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="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="card-text | <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|}}}}} | |||
}}<!-- | |||
-->{{#if: {{{Date End|}}} | |||
|{{#if: {{{Date Start|}}} | |||
|– | |||
}}{{#time: m.d.y|{{{Date End|}}}}} | |||
}} | |||
}} {{#if:{{#ask: [[{{{Event|}}}]][[Category:Current Events]]}}|<span class="badge badge-warning fa-1x">CURRENT</span>}} | |||
</div><!-- | |||
--><span class="d-block | --><div class="my-2"><span class="d-block">{{#arraymap: {{{Event format|}}} | ||
|; | |; | ||
|@@@ | |@@@ | ||
Line 37: | Line 53: | ||
}}</div>}}<!-- | }}</div>}}<!-- | ||
-->{{#switch: {{{Event location|}}} | -->{{#if: {{{Event location|}}}|{{#switch: {{{Event location|}}} | ||
| | | | ||
|MoHA= | |MoHA= | ||
Line 52: | Line 68: | ||
|,\s | |,\s | ||
}}</div> | }}</div> | ||
}} | |||
}}<!-- | }}<!-- | ||
Line 57: | Line 74: | ||
|Yes | |Yes | ||
|true | |true | ||
|1=<div class=" | |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}}}} | |Set Price={{#ifeq: {{{Event admission price|}}}|0|Free|${{#explode:{{{Event admission price|}}}| |0}}}} | ||
|Suggested Donation={{# | |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|}}} | |Sliding Scale=${{#explode:{{{Event admission price sliding low|}}}| |0}}–{{#explode:{{{Event admission price sliding high|}}}| |0}} {{{Event admission type|}}} | ||
|#default=Free | |#default=Free | ||
}}</div><!-- | }}</div><!-- | ||
--><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|}}} | |<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 | |Suggested Donation=RSVP |