Template:Event announce: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
 
(21 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=w-100 img-fluid|link={{{Event|}}}|560px]]
[[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>
}}
}}
{{#ifeq: {{#time: Ymd|{{{Date Start|}}}}}
<div class="my-2"><div class="font-weight-bold text-uppercase text-primary-moha">{{#ifeq: {{#time: Ymd|{{{Date Start|}}}}}
  |{{#time: Ymd|{{{Date End|}}}}}
|{{#time: Ymd|{{{Date End|}}}}}
  |<div class="my-2">{{#time: F j, Y|{{{Date Start|}}}}}</div>
|{{#time: F j, Y|{{{Date Start|}}}}} {{!}} <!--
  |{{#if: {{{Date Start|}}}
 
    |<div class="my-2">{{#time: m.d.y|{{{Date Start|}}}}}{{#if:{{{Date End|}}}|&ndash;{{#time: m.d.y|{{{Date End|}}}}}}}</div>
-->{{Event dates
    |Date Start={{{Date Start|}}}
    |Date End={{{Date End|}}}
   }}
   }}
}}<!--
|{{#if: {{{Date Start|}}}
    |{{#time: m.d.y|{{{Date Start|}}}}}
  }}<!--


--><div class="h3">[[{{{Event|Event}}}|{{{Event|Event}}}]]</div><!--
-->{{#if: {{{Date End|}}}
    |{{#if: {{{Date Start|}}}
        |&ndash;
      }}{{#time: m.d.y|{{{Date End|}}}}}
  }}
}}</div><!--


-->{{#if: {{{Event format|}}}|<div class="my-2">Format: {{#arraymap: {{{Event format|}}}
--><p class="my-2">{{#arraymap: {{{Event format|}}}
   |;
   |;
   |@@@
   |@@@
   |{{#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><!--
  }}
  |,\s
}}</div>}}<!--


-->{{#if: {{{Event medium|}}}|<div class="my-2">Medium: {{#arraymap: {{{Event medium|}}}
-->{{#if: {{{Event medium|}}}|<div class="my-2">Medium: {{#arraymap: {{{Event medium|}}}
Line 46: Line 49:
}}</div>}}<!--
}}</div>}}<!--


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


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

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

December 4, 2024 |