Template:Dl-0/f: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(BC and AD)
Tag: sourceedit
No edit summary
Tag: sourceedit
Line 2: Line 2:
|BC = {{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}
|BC = {{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}
|AD = {{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}
|AD = {{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}
|=
|
{{#switch: {{#explode:{{{1|}}}||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|}}}}

Revision as of 21:20, 6 September 2015