Template:ISOdate/doc: Difference between revisions
Template page
More actions
No edit summary |
mNo edit summary |
||
| Line 17: | Line 17: | ||
|i18n-method=- | |i18n-method=- | ||
|i18n-desc= | |i18n-desc= | ||
|seealso={{tl|date}} | |seealso={{tl|date}}, {{tl|other date}} | ||
|setscats= | |setscats= | ||
|lines=one | |lines=one | ||
|shorthand= | |shorthand= | ||
}} | }} | ||
Revision as of 20:53, 1 April 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= |2= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | date in ISO 8601 format | empty | required | |
2 | language code (only needs to be provided if the language shall be fixed and independant from the user's preferences) | value of {{int:Lang}} | optional | |
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.