Template:ISOdate/doc: Difference between revisions
Template page
More actions
mNo edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
|1stat=required | |1stat=required | ||
|name=ISOdate | |name=ISOdate | ||
|desc=Takes a date in ISO 8601 format and hands it over to {{tl|date}} to display it in localised format. | |desc=Takes a date in [[:en:ISO 8601|ISO 8601]] format (YYYY-MM-DD, e.g. "{{#time: Y-m-d }}") and hands it over to {{tl|date}} to display it in localised format. | ||
This template is needed to catch some flaws of the automatic conversion by <nowiki>{{#time: }}</nowiki> for non-full dates (e.g. "77-09" for September 77 AD, which would throw an error with <nowiki>{{#time: }}</nowiki>) | This template is needed to catch some flaws of the automatic conversion by <nowiki>{{#time: }}</nowiki> for non-full dates (e.g. "77-09" for September 77 AD, which would throw an error with <nowiki>{{#time: }}</nowiki>) | ||
Revision as of 03:34, 9 February 2009
Takes a date in ISO 8601 format (YYYY-MM-DD, e.g. "2026-08-21") and hands it over to {{Date}} to display it in localised format.
This template is needed to catch some flaws of the automatic conversion by {{#time: }} for non-full dates (e.g. "77-09" for September 77 AD, which would throw an error with {{#time: }})
Usage
{{ISOdate |1= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | date in ISO 8601 format | empty | required | |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
See also
Localization
This template is not intended to be localized.