Template:Dl/link: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(Created page with "{{#if:{{{1|}}}|{{#iferror:{{#ifexpr:{{#explode:{{{1}}}||0}} <= 31|{{d|{{#explode:{{{1}}}||0}} {{#explode:{{{1}}}||1}}|re}} {{d|{{#explode:{{{1}}}||2}}|re}}|{{d|{{#explode:{{{1...")
Tag: sourceedit
 
(This fix makes situations like "September-9 December 2017" work.)
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{1|}}}|{{#iferror:{{#ifexpr:{{#explode:{{{1}}}||0}} <= 31|{{d|{{#explode:{{{1}}}||0}} {{#explode:{{{1}}}||1}}|re}} {{d|{{#explode:{{{1}}}||2}}|re}}|{{d|{{#explode:{{{1}}}||0}}|re}}}}|{{d|{{#explode:{{{1}}}||0}}|re}} {{d|{{#explode:{{{1}}}||1}}|re}}}}}}<noinclude>[[Category:Template sandbox]]</noinclude>
{{#if:{{{1|}}}|{{#iferror:{{#ifexpr:{{#explode:{{{1}}}||0}} <= 31
|<!-- YYYY-MM-DD -->{{#iferror:{{#ifexpr:{{#explode:{{{1}}}|-|0}}>0}}|<!--DM-->{{d|{{#explode:{{{1}}}||0}} {{#explode:{{#explode:{{{1}}}||1}}|-|0}}|re}} {{#ifeq:{{#explode:{{{1}}}||2}}|-||{{d|{{#explode:{{#explode:{{{1}}}|-|0}}||2}}|re}}}}|<!--D-->{{d|{{#explode:{{{1}}}|-|0}} {{#explode:{{{1}}}||-2}}|re|{{#explode:{{{1}}}|-|0}}}}}}
|<!-- YYYY -->{{d|{{#explode:{{{1}}}||0}}|re}}}}
|<!-- YYYY-MM -->{{d|{{#explode:{{#explode:{{{1}}}||0}}|-|0}}|re}} {{#ifeq:{{#explode:{{{1}}}||1}}|-||{{d|{{#explode:{{#explode:{{{1}}}|-|0}}||1}}|re}}}}}}
}}<noinclude>[[Category:Date link templates]][[Category:Template sandbox]]</noinclude>

Latest revision as of 06:31, 20 November 2018