Template:Test: Difference between revisions

From MoHA Wiki
(Created page with "<includeonly> ==Program Type== *{{{Program type]}}} ==Dates Active== *{{{Date Start|}}} *{{{Date Emd|}}} </includeonly>")
 
No edit summary
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly><!--
==Program Type==
-->{{#vardefine:datestart|{{#show:{{{Program|}}}|?Date Start}}}}<!--
*{{{Program type]}}}
-->{{#vardefine:dateend|{{#show:{{{Program|}}}|?Date End}}}}
==Dates Active==
<b>[[{{{Program|}}}]]</b> {{#if:{{#var:dateend}}|<span class="badge badge-success">Complete</span>}}
*{{{Date Start|}}}
<div class="mt-1 mb-3">
*{{{Date Emd|}}}
<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 class="small mt-3">{{#lsth:{{{Program|}}}|Program purpose}}</div>
</div>
</includeonly>
</includeonly>

Latest revision as of 10:48, August 16, 2022