Template:Test: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
Line 3: Line 3:
-->{{#vardefine:dateend|{{#show:{{{Program|}}}|?Date End}}}}
-->{{#vardefine:dateend|{{#show:{{{Program|}}}|?Date End}}}}
[[{{{Program|}}}]] {{#if:{{#var:dateend}}|<span class="badge badge-success">Complete</span>}}
[[{{{Program|}}}]] {{#if:{{#var:dateend}}|<span class="badge badge-success">Complete</span>}}
<div class="my-2">
<div class="mt-1 mb-3">
<div>{{#show:{{{Program|}}}|?Program type}}</div>
<div>{{#show:{{{Program|}}}|?Program type}}</div>
<div>{{#if:{{#var:datestart}}|{{#time: M Y|{{#var:datestart}}}}}} {{#ifeq:{{#time: M Y|{{#var:datestart}}}}|{{#time: M Y|{{#var:dateend}}}}||{{#if:{{#var:dateend}}|{{#time: - M Y|{{#var:dateend}}}}}}}}</div>
<div>{{#if:{{#var:datestart}}|{{#time: M Y|{{#var:datestart}}}}}} {{#ifeq:{{#time: M Y|{{#var:datestart}}}}|{{#time: M Y|{{#var:dateend}}}}||{{#if:{{#var:dateend}}|{{#time: - M Y|{{#var:dateend}}}}}}}}</div>
</div>
</div>
</includeonly>
</includeonly>

Revision as of 10:43, August 16, 2022