Template:Event announce: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
 
(31 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="card border-0">
<div class="card p-3 mb-3 shadow">
<div class="moha-infobox-section w-100">
<div class="moha-infobox-section w-100">
<div class="moha-infobox-section-body">
<div class="moha-infobox-section-body">
{{#if:{{{Event image|}}}
{{#if:{{{Event image|}}}
   |<div class="moha-infobox-image">
   |<div class="moha-infobox-image">
[[File:{{PAGENAME:{{{Event image|}}}}}|class=img-fluid|540px]]
[[File:{{PAGENAME:{{{Event image|}}}}}|class=w-100 img-fluid|link={{{Event|}}}|560px|{{{Event image caption|{{{Event|}}}}}}]]
<div class="moha-infobox-image-caption">
{{{Event image caption|}}}
</div>
</div>
</div>
}}
}}
<table class="w-100">
<div class="my-2"><div class="font-weight-bold text-uppercase text-primary-moha">{{#ifeq: {{#time: Ymd|{{{Date Start|}}}}}
{{#ifeq: {{#time: Ymd|{{{Date Start|}}}}}|{{#time: Ymd|{{{Date End|}}}}}|
|{{#time: Ymd|{{{Date End|}}}}}
<tr>
|{{#time: F j, Y|{{{Date Start|}}}}} {{!}} <!--
<td>Date</td>
 
<td>{{#time: m.d.y|{{{Date Start|}}}}}</td>
-->{{Event dates
</tr>
    |Date Start={{{Date Start|}}}
  |
    |Date End={{{Date End|}}}
{{#if: {{{Date Start|}}}|
  }}
<tr>
|{{#if: {{{Date Start|}}}
<td>Date {{#if: {{{Date End|}}}|start}}</td>
    |{{#time: m.d.y|{{{Date Start|}}}}}
<td>{{#time: m.d.y|{{{Date Start|}}}}}</td>
  }}<!--
</tr>
}}<!--


-->{{#if: {{{Date End|}}}|
-->{{#if: {{{Date End|}}}
<tr>
    |{{#if: {{{Date Start|}}}
<td>Date end</td>
        |&ndash;
<td>{{#time: m.d.y|{{{Date End|}}}}}</td>
      }}{{#time: m.d.y|{{{Date End|}}}}}
</tr>
  }}
}}
}}</div><!--
}}<!--


-->{{#if: {{{Event format|}}}|<tr>
--><p class="my-2">{{#arraymap: {{{Event format|}}}
<td>Format</td>
<td><ul>{{#arraymap: {{{Event format|}}}
   |;
   |;
   |@@@
   |@@@
   |<li>{{#queryformlink: form=Event types
   |@@@
        |link text=@@@
  |\s{{!}}\s
        |Event types[Event format]=@@@
}}</p>
        |Event types[param]=Event format
</div><!--
        |Event types[value]=@@@
 
        |_run=1
--><div class="h3">[[{{{Event|Event}}}|{{{Display title of|{{{Event|Event}}}}}}]]</div><!--
      }}</li>
  |
}}</ul>
</td>
</tr>}}<!--


-->{{#if: {{{Event medium|}}}|<tr>
-->{{#if: {{{Event medium|}}}|<div class="my-2">Medium: {{#arraymap: {{{Event medium|}}}
<td>Medium</td>
<td><ul>{{#arraymap: {{{Event medium|}}}
   |;
   |;
   |@@@
   |@@@
   |<li>{{#queryformlink: form=Event types
   |{{#queryformlink: form=Event types
        |link text=@@@
    |link text=@@@
        |Event types[Event medium]=@@@
    |Event types[Event medium]=@@@
        |Event types[param]=Event medium
    |Event types[param]=Event medium
        |Event types[value]=@@@
    |Event types[value]=@@@
        |_run=1
    |_run=1
      }}</li>
  }}
   |
   |,\s
}}</ul></td>
}}</div>}}<!--
</tr>}}<!--


-->{{#switch: {{{Event location|}}}
-->{{#if: {{{Event location|}}}|{{#switch: {{{Event location|}}}
   |
   |
   |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 88: Line 70:
   |Yes
   |Yes
   |true
   |true
   |1=<tr>
   |1=<div class="font-weight-bold text-uppercase">{{#switch: {{{Event admission type|}}}
<td>Admission</td>
       |Set Price={{#ifeq: {{{Event admission price|}}}|0|Free|${{#explode:{{{Event admission price|}}}| |0}}}}
<td>{{#switch: {{{Event admission type|}}}
       |Suggested Donation={{#switch: {{{Event admission price|}}}||0|0 USD=Donation|#default={{{Event admission type|}}} ${{#explode:{{{Event admission price|}}}| |0}}}}
       |Set Price={{#ifeq: {{{Event admission price|}}}|0|Free|${{{Event admission price|}}}}}
       |Sliding Scale=${{#explode:{{{Event admission price sliding low|}}}| |0}}&ndash;{{#explode:{{{Event admission price sliding high|}}}| |0}} {{{Event admission type|}}}  
       |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|}}}  
       |#default=Free
       |#default=Free
     }}</td>
     }}</div><!--
</tr><!--


--><tr>
--><div class="">{{#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 106: Line 84:
       |Free=Attend
       |Free=Attend
       }}]</span>
       }}]</span>
   }}</td>
   }}</div>
</tr>
}}
}}
</table>
</div>
</div>
</div>
</div>
</div>
</div>

Latest revision as of 18:24, February 16, 2024

November 23, 2024 |