Template:Upcoming Events: Difference between revisions
From MoHA Wiki
No edit summary |
No edit summary |
||
(3 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"> | <div class="card-text"> | ||
<div class="font-weight-bold text-uppercase text-primary-moha">{{Event dates | <div class="font-weight-bold text-uppercase text-primary-moha">{{#ifeq: {{#time: Ymd|{{{Date Start|}}}}} | ||
|{{#time: Ymd|{{{Date End|}}}}} | |||
|{{#time: F j, Y|{{{Date Start|}}}}} {{!}} <!-- | |||
}} | |||
-->{{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|}}} | |||
|– | |||
}}{{#time: m.d.y|{{{Date End|}}}}} | |||
}} | |||
}} {{#if:{{#ask: [[{{{Event|}}}]][[Category:Current Events]]}}|<span class="badge badge-warning fa-1x">CURRENT</span>}} | |||
</div><!-- | </div><!-- | ||