Template:Dl/link: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
No edit summary
Tag: sourceedit
(allowing for range links to work (determining year))
Line 1: Line 1:
{{#if:{{{1|}}}|{{#iferror:{{#ifexpr:{{#explode:{{{1}}}||0}} <= 31
{{#if:{{{1|}}}|{{#iferror:{{#ifexpr:{{#explode:{{{1}}}||0}} <= 31
|{{d|{{#explode:{{{1}}}||0}} {{#explode:{{{1}}}||1}}|re}} {{d|{{#explode:{{{1}}}||2}}|re}}
|<!-- YYYY-MM-DD -->{{d|{{#explode:{{{1}}}||0}} {{#explode:{{{1}}}||1}}|re}} {{#ifeq:{{#explode:{{{1}}}||2}}|-|{{d|{{#explode:{{{1}}}||-1}}|re}}|{{d|{{#explode:{{{1}}}||2}}|re}}}}
|{{d|{{#explode:{{{1}}}||0}}|re}}}}
|<!-- YYYY -->{{d|{{#explode:{{{1}}}||0}}|re}}}}
|{{d|{{#explode:{{{1}}}||0}}|re}} {{d|{{#explode:{{{1}}}||1}}|re}}}}
|<!-- YYYY-MM -->{{d|{{#explode:{{{1}}}||0}}|re}} {{#ifeq:{{#explode:{{{1}}}||1}}|-|{{d|{{#explode:{{{1}}}||-1}}|re}}|{{d|{{#explode:{{{1}}}||1}}|re}}}}}}
}}<noinclude>[[Category:Template sandbox]]</noinclude>
}}<noinclude>[[Category:Template sandbox]]</noinclude>

Revision as of 02:17, 14 January 2018