Template:Upcoming Events: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
Line 9: Line 9:
     <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 mt-3">
         <div class="card-text">
<div class="mb-5 font-weight-bold text-uppercase text-primary-moha">{{Event dates
<div class="font-weight-bold text-uppercase text-primary-moha">{{Event dates
   |Date Start={{{Date Start|}}}
   |Date Start={{{Date Start|}}}
   |Date End={{{Date End|}}}
   |Date End={{{Date End|}}}
Line 40: Line 40:
}}</div>}}<!--
}}</div>}}<!--


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


Line 60: Line 61:
   |Yes
   |Yes
   |true
   |true
   |1=<div class="my-2 font-weight-bold text-uppercase">{{#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 67: Line 68:
     }}</div><!--
     }}</div><!--


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

Revision as of 20:29, February 8, 2024