Template:Date: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine: | <includeonly>{{#vardefine:year|{{#sub:{{#replace:{{{1}}}|-}}|0|4}}}}{{#vardefine:year|{{#sub:{{#replace:{{{1}}}|-}}|0|4}}}}{{#var:year}}{{#switch:{{#sub:{{#var:in}}|5|2}} | ||
|01=January | |01=January | ||
|02=February | |02=February |
Revision as of 18:24, 23 January 2023
Usage
This template parses a date of shape yyyy-mm-dd into spoken language like 1975FIXME! 18th 1975
Parameters
The template hase one obligatory unnamed parameter:
- 1: a date of shape yyyy-mm-dd
Examples
Code | Result |
---|---|
{{date|1900-01-01}} | 1900FIXME! 1st 1900 |
{{date|2025-11-22}} | 2025FIXME! 22nd 2025 |
{{date|2019-02-31}} | 2019FIXME! 31st 2019 (rubbish in→rubbish out ;) |