Template:Event announce: Difference between revisions
From MoHA Wiki
No edit summary |
No edit summary |
||
(38 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div class="card p-3 mb-3 shadow"> | |||
<div class="moha-infobox-section w-100"> | |||
<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| | [[File:{{PAGENAME:{{{Event image|}}}}}|class=w-100 img-fluid|link={{{Event|}}}|560px|{{{Event image caption|{{{Event|}}}}}}]] | ||
{{{Event | |||
</div> | </div> | ||
}} | }} | ||
<div class=" | <div class="my-2"><div class="font-weight-bold text-uppercase text-primary-moha">{{#ifeq: {{#time: Ymd|{{{Date Start|}}}}} | ||
<div class=" | |{{#time: Ymd|{{{Date End|}}}}} | ||
|{{#time: F j, Y|{{{Date Start|}}}}} {{!}} <!-- | |||
{{#ifeq: {{#time: Ymd|{{{Date Start|}}}}}|{{#time: Ymd|{{{Date End|}}}}}| | |||
-->{{Event dates | |||
|Date Start={{{Date Start|}}} | |||
|Date End={{{Date End|}}} | |||
}} | |||
|{{#if: {{{Date Start|}}} | |||
{{ | |{{#time: m.d.y|{{{Date Start|}}}}} | ||
}}<!-- | |||
}}<!-- | |||
-->{{#if: {{{Date End|}}}| | -->{{#if: {{{Date End|}}} | ||
|{{#if: {{{Date Start|}}} | |||
|– | |||
}}{{#time: m.d.y|{{{Date End|}}}}} | |||
}} | |||
}} | }}</div><!-- | ||
}}<!-- | |||
--> | --><p class="my-2">{{#arraymap: {{{Event format|}}} | ||
|; | |; | ||
|@@@ | |@@@ | ||
| | |@@@ | ||
|\s{{!}}\s | |||
}}</p> | |||
</div><!-- | |||
--><div class="h3">[[{{{Event|Event}}}|{{{Display title of|{{{Event|Event}}}}}}]]</div><!-- | |||
}}</ | |||
</ | |||
< | |||
-->{{#if: {{{Event medium|}}}|< | -->{{#if: {{{Event medium|}}}|<div class="my-2">Medium: {{#arraymap: {{{Event medium|}}} | ||
|; | |; | ||
|@@@ | |@@@ | ||
| | |{{#queryformlink: form=Event types | ||
|link text=@@@ | |||
|Event types[Event medium]=@@@ | |||
|Event types[param]=Event medium | |||
|Event types[value]=@@@ | |||
|_run=1 | |||
}} | |||
| | |,\s | ||
}}</ | }}</div>}}<!-- | ||
-->{{#switch: {{{Event location|}}} | -->{{#if: {{{Event location|}}}|{{#switch: {{{Event location|}}} | ||
| | | | ||
|MoHA= | |MoHA= | ||
|#default = < | |#default = <div class="my-2">Location: {{#arraymap: {{{Event location|}}} | ||
|; | |||
|@@@ | |||
|{{#queryformlink: form=Event types | |||
|link text=@@@ | |||
|Event types[Event location]=@@@ | |||
|Event types[param]=Event location | |||
|Event types[value]=@@@ | |||
|_run=1 | |||
}} | |||
|,\s | |||
}}</div> | |||
}} | |||
}}</ | |||
}}<!-- | }}<!-- | ||
-->{{#switch: {{{Is public|}}} | -->{{#switch: {{{Is public|}}} | ||
|Yes | |Yes | ||
|1=< | |true | ||
|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|${{{Event admission price|}}}}} | |Suggested Donation={{#switch: {{{Event admission price|}}}||0|0 USD=Donation|#default={{{Event admission type|}}} ${{#explode:{{{Event admission price|}}}| |0}}}} | ||
|Suggested Donation={{# | |Sliding Scale=${{#explode:{{{Event admission price sliding low|}}}| |0}}–{{#explode:{{{Event admission price sliding high|}}}| |0}} {{{Event admission type|}}} | ||
|Sliding Scale=${{{Event admission price sliding low|}}}–{{{Event admission price sliding high|}}} | |||
|#default=Free | |#default=Free | ||
}}</ | }}</div><!-- | ||
-->< | --><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>[[{{ | |||
|Suggested Donation=RSVP | |Suggested Donation=RSVP | ||
|Sliding Scale | |Sliding Scale | ||
Line 104: | Line 84: | ||
|Free=Attend | |Free=Attend | ||
}}]</span> | }}]</span> | ||
}}</ | }}</div> | ||
}} | }} | ||
</ | </div> | ||
</div> | </div> | ||
</div> | </div> |
Latest revision as of 18:24, February 16, 2024
November 22, 2024 |