Template:Upcoming Events: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
Line 1: Line 1:
<div class="card mb-3 {{#switch: {{{shadow|}}}|small=shadow-sm|large=shadow|#default=}} {{#ifeq:{{{align|}}}|right|text-right}} {{#ifeq:{{{border|}}}|fpin|fpin-shadow|border-0}} {{{class|}}}" data-public="{{{Is public|}}}" data-sort-start="{{#time:Ymd|{{{Date Start|}}}}}" data-sort-end="{{{Date End|}}}">
<div class="card mb-3 {{{class|}}}" data-public="{{{Is public|}}}" data-sort-start="{{#time:Ymd|{{{Date Start|}}}}}" data-sort-end="{{{Date End|}}}">
   <div class="row g-4">{{#if: {{{Event image|}}}|
   <div class="row g-4">{{#if: {{{Event image|}}}|
     <div class="col-md-{{#ifeq:{{{size|big}}}|big|6|4}} col-lg-{{#ifeq:{{{size|big}}}|big|5|3}} {{#ifeq:{{{align|}}}|right|order-md-1}}">[[File:{{PAGENAME:{{{Event image|}}}}}|class=h-100 {{{imageclass|}}}|800px]]</div>}}
     <div class="col-md-{{#ifeq:{{{size|big}}}|big|6|4}} col-lg-{{#ifeq:{{{size|big}}}|big|5|3}} {{#ifeq:{{{align|}}}|right|order-md-1}}">[[File:{{PAGENAME:{{{Event image|}}}}}|class=h-100 {{{imageclass|}}}|800px]]</div>}}
     <div class="{{#if: {{{Event image|}}}|col-md-{{#ifeq:{{{size|big}}}|big|6|8}} col-lg-{{#ifeq:{{{size|big}}}|big|7|9}}|col-12}} d-flex flex-column">
     <div class="{{#if: {{{Event image|}}}|col-md-{{#ifeq:{{{size|big}}}|big|6|8}} col-lg-{{#ifeq:{{{size|big}}}|big|7|9}}|col-12}} 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="h3 card-title">{{{Event|}}}</div>{{#if: {{{badge|}}}|
<div class="h3 card-title">{{{Event|}}}</div>{{#if: {{{Event image caption|}}}|
<div class="badge bg-info align-self-start">{{{badge|}}}</div>}}{{#if: {{{Event image caption|}}}|
<div class="h6 card-subtitle my-1">{{{Event image caption|}}}</div>}}
<div class="h6 card-subtitle my-1">{{{Event image caption|}}}</div>}}
         <div class="card-text mt-3">
         <div class="card-text mt-3">


<div class="my-2">{{#ifeq: {{#time: Ymd|{{{Date Start|}}}}}
  |{{#time: Ymd|{{{Date End|}}}}}
  |{{#time: F j, Y|{{{Date Start|}}}}}
  |{{#if: {{{Date Start|}}}
    |{{#time: m.d.y|{{{Date Start|}}}}}{{#if:{{{Date End|}}}|&ndash;{{#time: m.d.y|{{{Date End|}}}}}}}
  }}
}}<!--


{{{Date Start|}}}
--><span class="float-right">{{#arraymap: {{{Event format|}}}
{{{Date End|}}}
  |;
{{{Event format|}}}
  |@@@
{{{Event location|}}}
  |@@@
  |\s{{!}}\s
}}</span>
</div><!--


{{{Event admission type|}}}
--><div class="h3">[[{{{Event|Event}}}|{{{Event|Event}}}]]</div><!--
{{{Event admission price|}}}
{{{Event admission price sliding low|}}}
{{{Event admission price sliding high|}}}


-->{{#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|}}}
  |
  |MoHA=
  |#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|}}}
  |Yes
  |true
  |1=<div class="my-2 font-weight-bold">{{#switch: {{{Event admission type|}}}
      |Set Price={{#ifeq: {{{Event admission price|}}}|0|Free|${{#explode:{{{Event admission price|}}}| |0}}}}
      |Suggested Donation={{#ifeq: {{{Event admission price|}}}|0|Free|{{{Event admission type|}}} ${{#explode:{{{Event admission price|}}}| |0}}}}
      |Sliding Scale=${{#explode:{{{Event admission price sliding low|}}}| |0}}&ndash;{{#explode:{{{Event admission price sliding high|}}}| |0}} {{{Event admission type|}}}
      |#default=Free
    }}</div><!--
--><div class="my-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|}}}
      |Suggested Donation=RSVP
      |Sliding Scale
      |Set Price=Tickets
      |Free=Attend
      }}]</span>
  }}</div>
}}


         </div>
         </div>

Revision as of 21:57, January 17, 2024

November 22, 2024