Template:Dl-0/f: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
No edit summary Tag: sourceedit |
No edit summary Tag: sourceedit |
||
Line 1: | Line 1: | ||
{{#switch: {{#explode:{{{1|}}}||1}} | {{#switch: {{#explode:{{{1|}}}||1}} | ||
|January|March|May|July|August|October|December= {{#ifexpr: {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||0}} < 32 | {{#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|}}||0}} < 32 | {{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}} | '''Error: {{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}} }} | ||
|April|June|September|November= {{#ifexpr: {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||0}} < 31 | {{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th| | |April|June|September|November= {{#ifexpr: {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||0}} < 31 | {{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}} | '''Error: {{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}} }} | ||
|February= {{#ifexpr: {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||0}} < 30 | {{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th| | |February= {{#ifexpr: {{#explode:{{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}}||0}} < 30 | {{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}} | '''Error: {{#replace:{{#replace:{{#replace:{{#replace:{{{1|}}}|st|}}|nd|}}|rd|}}|th|}} }} | ||
|= | |= | ||
{{#switch: {{#explode:{{{1|}}}||0}} | {{#switch: {{#explode:{{{1|}}}||0}} |