Template:Upcoming Events: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="card mb-3 border rounded-0 border-lg"  
<div class="card mb-3 border rounded-0 border-lg {{#if:{{#ask: [[{{{Event|}}}]][[Category:Current Events]]}}|alert-warning}}"  
   data-public="{{{Is public|}}}"  
   data-public="{{{Is public|}}}"  
   data-sort="{{#time:Ymd|{{{Date Start|}}}}}"  
   data-sort="{{#time:Ymd|{{{Date Start|}}}}}"  
Line 5: Line 5:
>
>
   <div class="row g-4">{{#if: {{{Event image|}}}
   <div class="row g-4">{{#if: {{{Event image|}}}
     |<div class="col-md-4 col-lg-3 img-event">[[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="mb-5 font-weight-bold">{{#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><!--
</div><!--


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


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


Line 63: 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">[{{#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 19:27, April 24, 2024

November 21, 2024 | CURRENT