Template:Event announce: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
Line 7: Line 7:
</div>
</div>
}}
}}
<div class="my-2">{{Event dates
<div class="my-2 text-uppercase text-primary-moha">{{Event dates
   |Date Start={{{Date Start|}}}
   |Date Start={{{Date Start|}}}
   |Date End={{{Date End|}}}
   |Date End={{{Date End|}}}
}}<!--
}}<!--


--><span class="float-right">{{#arraymap: {{{Event format|}}}
--><p class="my-2">{{#arraymap: {{{Event format|}}}
   |;
   |;
   |@@@
   |@@@
   |@@@
   |@@@
   |\s{{!}}\s
   |\s{{!}}\s
}}</span>
}}</p>
</div><!--
</div><!--


Line 35: Line 35:
}}</div>}}<!--
}}</div>}}<!--


-->{{#switch: {{{Event location|}}}
-->{{#if: {{{Event location|}}}|{{#switch: {{{Event location|}}}
   |
   |
   |MoHA=
   |MoHA=
Line 50: Line 50:
     |,\s
     |,\s
   }}</div>
   }}</div>
}}
}}<!--
}}<!--


Line 55: Line 56:
   |Yes
   |Yes
   |true
   |true
   |1=<div class="my-2 font-weight-bold">{{#switch: {{{Event admission type|}}}
   |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={{#switch: {{{Event admission price|}}}||0|0 USD=Donation|#default={{{Event admission type|}}} ${{#explode:{{{Event admission price|}}}| |0}}}}
       |Suggested Donation={{#switch: {{{Event admission price|}}}||0|0 USD=Donation|#default={{{Event admission type|}}} ${{#explode:{{{Event admission price|}}}| |0}}}}
Line 62: Line 63:
     }}</div><!--
     }}</div><!--


--><div class="my-2">{{#if: {{#ask:[[-Has subobject::<q>[[{{{Event|}}}]][[Category:Current Events||Upcoming Events]]</q>]][[Event link::+]] }}
--><div class="">{{#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

Revision as of 20:36, February 8, 2024