Template:Date
[edit]
Documentation
(this part of the documentation is only available in some languages)
This template is used to show the date of publication or upload in the language set in the preferences.
You can leave out parts of the data.
Contents
Usage
{{Date|1=|2=|3=|4=|form=}}
(this part of the documentation is only available in some languages)
Date example: 9 January 2009
{{Date|2009|1|9}}
Result, date in the language of your preferences: 9 {{MediaWiki:January/<lang>}} 2009
Microformat
{{Date}} also returns the date, hidden by CSS, in the ISO 8601 format needed by the hCalendar (class="dtstart"
) microformat. See the microformats project.
Parameters
Parameter name | Description (this part of the documentation is only available in some languages) | Default value | required or optional?
|
---|---|---|---|
parameter #1 (1) | number of the year | empty | optional |
parameter #2 (2) | number of month in the year | empty | optional |
parameter #3 (3) | number of day in the month | empty | optional |
parameter #4 (4) | 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 |
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: the Template namespace
The template is intended to be used by the following user groups: all users
Relies on:
{{I18n month}}, {{formatnum}}
See also
(this part of the documentation is only available in some languages)
{{ISOdate}} – Template used to parse the date in {{information}}; {{other date}}
Localization
To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx=Your translation" (xx being the code of your language)