Template:Event announce: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
Line 49: Line 49:
   |
   |
   |MoHA=
   |MoHA=
   |#default = <tr>
   |#default = <div class="my-2">Location: {{#arraymap: {{{Event location|}}}
<td>Location</td>
    |;
<td><ul>{{#arraymap: {{{Event location|}}}
    |@@@
  |;
    |{{#queryformlink: form=Event types
  |@@@
        |link text=@@@
  |<li>{{#queryformlink: form=Event types
        |Event types[Event location]=@@@
        |link text=@@@
        |Event types[param]=Event location
        |Event types[Event location]=@@@
        |Event types[value]=@@@
        |Event types[param]=Event location
        |_run=1
        |Event types[value]=@@@
      }}
        |_run=1
    |,\s
      }}</li>
  }}</div>
  |
}}</ul></td>
</tr>
}}<!--
}}<!--


Line 69: Line 66:
   |Yes
   |Yes
   |true
   |true
   |1=<tr>
   |1=<div class="my-2">{{#switch: {{{Event admission type|}}}
<td>Admission</td>
<td>{{#switch: {{{Event admission type|}}}
       |Set Price={{#ifeq: {{{Event admission price|}}}|0|Free|${{{Event admission price|}}}}}
       |Set Price={{#ifeq: {{{Event admission price|}}}|0|Free|${{{Event admission price|}}}}}
       |Suggested Donation={{#ifeq: {{{Event admission price|}}}|0|Free|{{{Event admission type|}}} ${{{Event admission price|}}}}}
       |Suggested Donation={{#ifeq: {{{Event admission price|}}}|0|Free|{{{Event admission type|}}} ${{{Event admission price|}}}}}
       |Sliding Scale=${{{Event admission price sliding low|}}}&ndash;{{{Event admission price sliding high|}}}<br/>{{{Event admission type|}}}  
       |Sliding Scale=${{{Event admission price sliding low|}}}&ndash;{{{Event admission price sliding high|}}}<br/>{{{Event admission type|}}}  
       |#default=Free
       |#default=Free
     }}</td>
     }}</div><!--
</tr><!--


--><tr>
--><div class="my-2">{{#if: {{#ask:[[-Has subobject::<q>[[{{{Event|}}}]][[Category:Current Events||Upcoming Events]]</q>]][[Event link::+]] }}
<td colspan=2>{{#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
Line 87: Line 80:
       |Free=Attend
       |Free=Attend
       }}]</span>
       }}]</span>
   }}</td>
   }}</div>
</tr>
}}
}}
</table>
</div>
</div>
</div>
</div>
</div>
</div>

Revision as of 19:52, December 17, 2023

November 24, 2024