Template:ISOdate/doc: Difference between revisions
Template page
More actions
more precise format specification |
Clarifiy meaning of parameter per talk |
||
| Line 1: | Line 1: | ||
{{TemplateBox | {{TemplateBox | ||
|1=1 | |1=1 | ||
|1d=date in ISO 8601 format. | |1d=date in [[w:ISO 8601|ISO 8601]] format. | ||
Supported dates are any dates between 1 January 32 AD and 31 December 9999 AD. Dates from 1 January 1 AD until 31 December 31 are not yet supported cause they are not distinguishable from dates in the format DD-MM-YY (this will most likely change after all ambiguous dates are cleaned up). Dates BC are not yet supported. Note: A date like "99-05-01" or "07-05-01" will always refer to the day in the first century, not the day in the 20th or 21st century. Please always note down the full year. | Supported dates are any [[w:Proleptic Gregorian calendar|proleptic Gregorian calendar]] or [[w:Gregorian calendar|Gregorian calendar]] dates between 1 January 32 AD and 31 December 9999 AD. Dates from 1 January 1 AD until 31 December 31 are not yet supported cause they are not distinguishable from dates in the format DD-MM-YY (this will most likely change after all ambiguous dates are cleaned up). Dates BC are not yet supported. Note: A date like "99-05-01" or "07-05-01" will always refer to the day in the first century, not the day in the 20th or 21st century. Please always note down the full year. | ||
|1stat=required | |1stat=required | ||
|2=2 | |2=2 | ||
Revision as of 20:11, 23 June 2009
Takes a calendar dates in ISO 8601 extended format (YYYY-MM-DD, e.g. "2026-08-21") and hands it over to {{Date}} to display it in localised format. Calendar dates 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= |f= |form= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | date in ISO 8601 format. Supported dates are any proleptic Gregorian calendar or Gregorian calendar dates between 1 January 32 AD and 31 December 9999 AD. Dates from 1 January 1 AD until 31 December 31 are not yet supported cause they are not distinguishable from dates in the format DD-MM-YY (this will most likely change after all ambiguous dates are cleaned up). Dates BC are not yet supported. Note: A date like "99-05-01" or "07-05-01" will always refer to the day in the first century, not the day in the 20th or 21st century. Please always note down the full year. | 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 | |
f | format ("Y" for year-only output ["{{ISOdate|2008-08-06|f=Y}}" will result in the output "6 August 2008") | empty | optional | |
form | allows to specify differing syntactic forms to apply to the date (e.g. in some Polish phrases the month must appear in genitive form instead of nominative, so you have to set form to gen | empty | 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.