Template:Dl/set: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
no edit summary
(accommodating better for ranges: now, the template sets a "release end date", and the "release date" variable includes only the date of initial release. This is so SMW can parse the information /as a date/.)
No edit summary
Line 1: Line 1:
{{#if:{{{1|}}}|{{#if:{{#explode:{{{1|}}}|–|1}}
{{#if:{{{1|}}}|{{#if:{{#explode:{{dl/n|{{{1|}}}}}|–|1}}
|<!-- R-R -->{{#if:{{dl/note|{{{1|}}}}}|{{#set:{{{2|Release}}} date={{dl/n|{{#explode:{{{1}}}|–|0}}}}|{{{2|Release}}} end date={{dl/n|{{#explode:{{{1}}}|–|1}}}}|{{{2|Release}}} note={{dl/note|{{{1}}}}}}}|{{#set:{{{2|Release}}} date={{dl/n|{{#explode:{{{1}}}|–|0}}}}|{{{2|Release}}} end date={{dl/n|{{#explode:{{{1}}}|–|1}}}}}}}}
|<!-- R-R -->{{#if:{{dl/note|{{{1|}}}}}|{{#set:{{{2|Release}}} date={{dl/n|{{#explode:{{{1}}}|–|0}}}}|{{{2|Release}}} end date={{dl/n|{{#explode:{{{1}}}|–|1}}}}|{{{2|Release}}} note={{dl/note|{{{1}}}}}}}|{{#set:{{{2|Release}}} date={{dl/n|{{#explode:{{{1}}}|–|0}}}}|{{{2|Release}}} end date={{dl/n|{{#explode:{{{1}}}|–|1}}}}}}}}
|<!-- D -->{{#if:{{dl/note|{{{1|}}}}}|{{#set:{{{2|Release}}} date={{dl/n|{{{1}}}}}|{{{2|Release}}} note={{dl/note|{{{1}}}}}}}|{{#set:{{{2|Release}}} date={{dl/n|{{{1}}}}}}}}}}}}}<noinclude>[[Category:Date calculation templates]][[Category:Template sandbox]]</noinclude>
|<!-- D -->{{#if:{{dl/note|{{{1|}}}}}|{{#set:{{{2|Release}}} date={{dl/n|{{{1}}}}}|{{{2|Release}}} note={{dl/note|{{{1}}}}}}}|{{#set:{{{2|Release}}} date={{dl/n|{{{1}}}}}}}}}}}}}<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.