Template:Dl-0/f: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
No edit summary
Tag: sourceedit
mNo edit summary
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#switch: {{#explode:{{dl/fm|{{{1|}}}}}||0}}
{{#switch: {{#explode:{{{1|}}}||-1}}
|BC|AD= {{#iferror:{{#ifexpr:{{#explode:{{{1|}}}||2}} > 0
|{{#switch: {{#explode:{{{1|}}}||0}}
|January|March|May|July|August|October|December= {{#ifexpr: {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||1}} < 32 | {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||1}} {{#explode:{{{1|}}}||0}} {{#if:{{#explode:{{{1|}}}||2}}|{{#explode:{{{1|}}}||2}}}} {{#if:{{#explode:{{{1|}}}||3}}|{{#explode:{{{1|}}}||3}}}} | {{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}}}
|January|March|May|July|August|October|December= {{#ifexpr: {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||1}} < 32 | {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||1}} {{#explode:{{{1|}}}||0}} {{#if:{{#explode:{{{1|}}}||2}}|{{#explode:{{{1|}}}||2}}}} {{#if:{{#explode:{{{1|}}}||3}}|{{#explode:{{{1|}}}||3}}}} | {{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}}}
|April|June|September|November= {{#ifexpr: {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||1}} < 31 | {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||1}} {{#explode:{{{1|}}}||0}} {{#if:{{#explode:{{{1|}}}||2}}|{{#explode:{{{1|}}}||2}}}} {{#if:{{#explode:{{{1|}}}||3}}|{{#explode:{{{1|}}}||3}}}} | {{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}}}
|April|June|September|November= {{#ifexpr: {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||1}} < 31 | {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||1}} {{#explode:{{{1|}}}||0}} {{#if:{{#explode:{{{1|}}}||2}}|{{#explode:{{{1|}}}||2}}}} {{#if:{{#explode:{{{1|}}}||3}}|{{#explode:{{{1|}}}||3}}}} | {{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}}}
|February= {{#ifexpr: {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||1}} < 30 | {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||1}} {{#explode:{{{1|}}}||0}} {{#if:{{#explode:{{{1|}}}||2}}|{{#explode:{{{1|}}}||2}}}} {{#if:{{#explode:{{{1|}}}||3}}|{{#explode:{{{1|}}}||3}}}} | {{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}}}
|February= {{#ifexpr: {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||1}} < 30 | {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||1}} {{#explode:{{{1|}}}||0}} {{#if:{{#explode:{{{1|}}}||2}}|{{#explode:{{{1|}}}||2}}}} {{#if:{{#explode:{{{1|}}}||3}}|{{#explode:{{{1|}}}||3}}}} | {{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}}}
|{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}
|{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}
}}}}
|{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}
}}
|
{{#switch: {{#explode:{{{1|}}}||0}}
|January|March|May|July|August|October|December= {{#ifexpr: {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||1}} < 32 | {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||1}} {{#explode:{{{1|}}}||0}} {{#if:{{#explode:{{{1|}}}||2}}|{{#explode:{{{1|}}}||2}}}} {{#if:{{#explode:{{{1|}}}||3}}|{{#explode:{{{1|}}}||3}}}} | {{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}}}
|April|June|September|November= {{#ifexpr: {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||1}} < 31 | {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||1}} {{#explode:{{{1|}}}||0}} {{#if:{{#explode:{{{1|}}}||2}}|{{#explode:{{{1|}}}||2}}}} {{#if:{{#explode:{{{1|}}}||3}}|{{#explode:{{{1|}}}||3}}}} | {{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}}}
|February= {{#ifexpr: {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||1}} < 30 | {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||1}} {{#explode:{{{1|}}}||0}} {{#if:{{#explode:{{{1|}}}||2}}|{{#explode:{{{1|}}}||2}}}} {{#if:{{#explode:{{{1|}}}||3}}|{{#explode:{{{1|}}}||3}}}} | {{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}}}
|{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}
}}
}}
}}
<noinclude>
[[Category:Maintenance templates]]
</noinclude>

Latest revision as of 15:12, 22 July 2024