Template:Upcoming Events: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="card mb-3 shadow-lg" data-public="{{{Is public|}}}" data-sort-start="{{#time:Ymd|{{{Date Start|}}}}}" data-sort-end="{{{Date End|}}}">
<div class="card mb-3 border rounded-0 border-lg {{#if:{{#ask: [[{{{Event|}}}]][[Category:Current Events]]}}|alert-warning}}"  
  data-public="{{{Is public|}}}"  
  data-sort="{{#time:Ymd|{{{Date Start|}}}}}"  
  data-event-format="{{#replace:{{lc:{{{Event format|}}}}}|;|,}}"
>
   <div class="row g-4">{{#if: {{{Event image|}}}
   <div class="row g-4">{{#if: {{{Event image|}}}
     |<div class="col-md-4 col-lg-3 ">[[File:{{PAGENAME:{{{Event image|}}}}}|class=w-100 h-auto|800px]]</div>
     |<div class="col-md-4 col-lg-3 img-event">[[File:{{PAGENAME:{{{Event image|}}}}}|class=w-100 h-auto|800px|link={{{Event|}}}]]</div>
   }}
   }}
     <div class="col-md-8 col-lg-9 d-flex flex-column">
     <div class="col-md-8 col-lg-9 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="card-text mt-3">
         <div class="card-text">
<div class="my-2">{{#ifeq: {{#time: Ymd|{{{Date Start|}}}}}
<div class="font-weight-bold text-uppercase text-primary-moha">{{#ifeq: {{#time: Ymd|{{{Date Start|}}}}}
  |{{#time: Ymd|{{{Date End|}}}}}
|{{#time: Ymd|{{{Date End|}}}}}
  |{{#time: F j, Y|{{{Date Start|}}}}}
|{{#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|}}}}}}}
-->{{Event dates
    |Date Start={{{Date Start|}}}
    |Date End={{{Date End|}}}
   }}
   }}
}}<!--
|{{#if: {{{Date Start|}}}
    |{{#time: m.d.y|{{{Date Start|}}}}}
  }}<!--
 
-->{{#if: {{{Date End|}}}
    |{{#if: {{{Date Start|}}}
        |&ndash;
      }}{{#time: m.d.y|{{{Date End|}}}}}
  }}
}} {{#if:{{#ask: [[{{{Event|}}}]][[Category:Current Events]]}}|<span class="badge badge-warning fa-1x">CURRENT</span>}}
</div><!--


--><span class="float-right">{{#arraymap: {{{Event format|}}}
--><div class="my-2"><span class="d-block">{{#arraymap: {{{Event format|}}}
   |;
   |;
   |@@@
   |@@@
Line 37: Line 53:
}}</div>}}<!--
}}</div>}}<!--


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


Line 57: Line 74:
   |Yes
   |Yes
   |true
   |true
   |1=<div class="my-2 font-weight-bold">{{#switch: {{{Event admission type|}}}
   |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|${{#explode:{{{Event admission price|}}}| |0}}}}
       |Suggested Donation={{#ifeq: {{{Event admission price|}}}|0|Free|{{{Event admission type|}}} ${{#explode:{{{Event admission price|}}}| |0}}}}
       |Suggested Donation={{#switch: {{{Event admission price|}}}||0|0 USD=Donation|#default={{{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|}}}  
       |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>{{#if: {{#ask:[[-Has subobject::<q>[[{{{Event|}}}]][[Category:Current Events||Upcoming Events]]</q>]][[Event link::+]] }}
     |<span class="moha-button mb-0 cta" style="max-width: 250px">[{{#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
       |Sliding Scale
       |Sliding Scale

Latest revision as of 19:27, April 24, 2024

November 25, 2024 | CURRENT