Modèle:Date/doc
This is a documentation subpage for . It contains usage information, categories, interlanguage links and other content that is not part of the original modèle page. |
This template is used to show a date in the language set in the preferences.
You can leave out parts of the data.
Sommaire
Usage
{{Date |month= |day= |year= |hour= |minute= |second= }}
Examples:
- Modèle:Xpdoc
- Modèle:Xpdoc
- Modèle:Xpdoc - alternative way to get nominative case
- Modèle:Xpdoc
- Modèle:Xpdoc
- Modèle:Xpdoc
- Modèle:Xpdoc
- Modèle:Xpdoc
- Modèle:Xpdoc
- Modèle:Xpdoc
- Modèle:Xpdoc
- Modèle:Xpdoc
Microformat
The template returns the date, embed in a <time> element with attribute datetime that contain the date in the ISO 8601 format needed by the hCalendar (class="dtstart"
) microformat. See the microformats project.
⧼templatedata-doc-params⧽
Parameter | Description | Default | Status | |
---|---|---|---|---|
month 2 | month | month | empty | optional |
day 3 | day | day | empty | optional |
lang 4 | language | language | language code of the user language | optional |
case | case | case | empty | optional |
year 1 | year | year | empty | optional |
hour | hour | hour | empty | optional |
class | class | class | dtstart | optional |
minute | minute | minute | empty | optional |
second | second | second | empty | optional |
trim_year trim year | trim year | trim or pad the leading zeros in year number | 100-999 | 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:
Module:Date
⧼Seealso⧽
{{ISOdate}} – Template used to parse the date in {{information}}
{{other date}} - Allows to specify a range of non-trivial date notations in a format that is localizable
Localize the date format at Module:I18n/date or request assistance at Template talk:Date or Module talk:I18n/date