Template:Dl/set: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
No edit summary |
(Adding a little bit that sets a "Release end date" for non-range releases to the same first release date, with an asterisk (for sorting purposes)) |
||
Line 1: | Line 1: | ||
{{#if:{{{1|}}}|{{#if:{{#explode:{{dl/n|{{{1|}}}}}|–|1}} | {{#if:{{{1|}}}|{{#if:{{#explode:{{dl/n|{{{1|}}}}}|–|1}} | ||
|<!-- R-R -->{{#if:{{dl/note|{{{1|}}}}}|{{#set:{{{2|Release}}} date={{#explode:{{dl/n|{{#explode:{{{1}}}|(|0}}}}|–|0}}|{{{2|Release}}} end date={{#explode:{{dl/n|{{{1}}}}}|–|1}}|{{{2|Release}}} note={{dl/note|{{{1}}}}}}}|{{#set:{{{2|Release}}} date={{#explode:{{dl/n|{{{1}}}}}|–|0}}|{{{2|Release}}} end date={{#explode:{{dl/n|{{{1}}}}}|–|1}}}}}} | |<!-- R-R -->{{#if:{{dl/note|{{{1|}}}}}|{{#set:{{{2|Release}}} date={{#explode:{{dl/n|{{#explode:{{{1}}}|(|0}}}}|–|0}}|{{{2|Release}}} end date={{#explode:{{dl/n|{{{1}}}}}|–|1}}|{{{2|Release}}} note={{dl/note|{{{1}}}}}}}|{{#set:{{{2|Release}}} date={{#explode:{{dl/n|{{{1}}}}}|–|0}}|{{{2|Release}}} end date={{#explode:{{dl/n|{{{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}}}}}}}}}{{#switch:{{{1|}}}|Release|Broadcast={{#set:Release end date={{dl/n|{{{1}}}}}*}}}}}}}}<noinclude>[[Category:Date calculation templates]][[Category:Template sandbox]]</noinclude> |