Template:Upcoming Events: Difference between revisions
From MoHA Wiki
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
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>}} | }} {{#if:{{#ask: [[{{{Event|}}}]][[Category:Current Events]]}}|<span class="badge badge-warning fa-1x">CURRENT</span>}} | ||
</div><!-- | </div><!-- |