Template:Dl/n: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
74 bytes added ,  20 November 2018
This fix allows "September-9 December 2017" to function
(Fix, so it doesn't register the (end) month as the (starting) year. [This fix gets situations like 26 November-4 December 2006 working])
(This fix allows "September-9 December 2017" to function)
 
Line 9: Line 9:
}}}}
}}}}
|<!-- YYYY-MM -->{{#if:{{#explode:{{{1}}}|-|1}}
|<!-- YYYY-MM -->{{#if:{{#explode:{{{1}}}|-|1}}
|<!--    R-R -->{{#ifeq:{{#explode:{{{1}}}||1}}|-|{{#explode:{{{1}}}||-1}}|{{#explode:{{#explode:{{{1}}}||1}}|-|0}}}}-{{dl/n/m|{{#explode:{{#explode:{{{1}}}||0}}|-|0}}}}–{{#iferror:{{#ifexpr:{{#explode:{{#explode:{{{1}}}|-|1}}||0}} <= 31|<!-- R - YYYY-MM-DD -->{{#explode:{{#explode:{{{1}}}|-|1}}||2}}-{{dl/n/m|{{#explode:{{#explode:{{{1}}}|-|1}}||1}}}}-{{dl/n/d|{{#explode:{{#explode:{{{1}}}|-|1}}||0}}}}|<!-- R - YYYY -->{{#explode:{{#explode:{{{1}}}|-|1}}||0}}}}|<!-- R - YYYY-MM -->{{#explode:{{#explode:{{{1}}}|-|1}}||1}}-{{dl/n/m|{{#explode:{{#explode:{{{1}}}|-|1}}||0}}}}}}
|<!--    R-R -->{{#ifeq:{{#explode:{{{1}}}||1}}|-|{{#explode:{{{1}}}||-1}}|{{#if:{{#explode:{{#explode:{{{1}}}|-|0}}||1}}|{{#explode:{{#explode:{{{1}}}|-|0}}||1}}|{{#explode:{{{1}}}||-1}}}}}}-{{dl/n/m|{{#explode:{{#explode:{{{1}}}||0}}|-|0}}}}–{{#iferror:{{#ifexpr:{{#explode:{{#explode:{{{1}}}|-|1}}||0}} <= 31|<!-- R - YYYY-MM-DD -->{{#explode:{{#explode:{{{1}}}|-|1}}||2}}-{{dl/n/m|{{#explode:{{#explode:{{{1}}}|-|1}}||1}}}}-{{dl/n/d|{{#explode:{{#explode:{{{1}}}|-|1}}||0}}}}|<!-- R - YYYY -->{{#explode:{{#explode:{{{1}}}|-|1}}||0}}}}|<!-- R - YYYY-MM -->{{#explode:{{#explode:{{{1}}}|-|1}}||1}}-{{dl/n/m|{{#explode:{{#explode:{{{1}}}|-|1}}||0}}}}}}
|<!--      D -->{{#explode:{{{1}}}||1}}-{{dl/n/m|{{#explode:{{{1}}}||0}}}}
|<!--      D -->{{#explode:{{{1}}}||1}}-{{dl/n/m|{{#explode:{{{1}}}||0}}}}
}}}}
}}}}
}}<noinclude>[[Category:Date calculation templates]][[Category:Template sandbox]]</noinclude>
}}<noinclude>[[Category:Date calculation templates]][[Category:Template sandbox]]</noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.