Difference between revisions of "Template:Date"

From Ephemeral Film Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><!-- {{{1|}}} = year: {{#expr: {{{1|}}} }} will strip leading zeros if any {{{2|}}} = month: input to {{I18n month}} {{{3|}}} = day: {{#expr: {{{3}}} }} will st...")
 
 
(3 intermediate revisions by the same user not shown)
Line 10: Line 10:
<time datetime="{{{1|}}}{{#if:{{{2|}}}
<time datetime="{{{1|}}}{{#if:{{{2|}}}
|{{#if:{{{1|}}}|-}}{{{2}}}{{#if:{{{3|}}}|-{{{3}}}}}}}">
|{{#if:{{{1|}}}|-}}{{{2}}}{{#if:{{{3|}}}|-{{{3}}}}}}}">
}}{{#expr:{{{3|}}}}} {{I18n month|{{{2|}}}|{{{4|}}}}} {{{1|}}}
}}{{#expr:{{{3|}}}}} {{I18n month|{{{2|}}}}} {{{1|}}}


}}{{#ifexpr:{{#if:{{{1|}}}|1|0}}or({{#if:{{{2|}}}|1|0}}and{{#if:{{{3|}}}|1|0}})|</time>}}{{#if:{{{1|}}}|
}}{{#ifexpr:{{#if:{{{1|}}}|1|0}}or({{#if:{{{2|}}}|1|0}}and{{#if:{{{3|}}}|1|0}})|</time>}}{{#if:{{{1|}}}|
<span style="display:none">(<span class="dtstart">{{padleft:{{{1}}}|4|0}}{{#if: {{{2|}}}|-{{padleft:{{{2}}}|2|0}}}}{{#if: {{{3|}}}|-{{padleft:{{{3}}}|2|0}}}}</span>)</span>
<span style="display:none">(<span class="dtstart">{{padleft:{{{1}}}|4|0}}{{#if: {{{2|}}}|-{{padleft:{{{2}}}|2|0}}}}{{#if: {{{3|}}}|-{{padleft:{{{3}}}|2|0}}}}</span>)</span>
}}</onlyinclude>
}}</onlyinclude></includeonly><noinclude>
{{Documentation}}
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->
</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 20:38, 25 February 2022