Modèle:Date/doc

De Wiklou, le Wiki du Biclou
< Modèle:Date
Révision datée du 17 décembre 2015 à 04:36 par Jarekt (discussion)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à : navigation, rechercher

This template is used to show a date in the language set in the preferences.

You can leave out parts of the data.

Usage

{{Date |month= |day= |year= |hour= |minute= |second= }}

Examples:

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⧽

ParameterDescriptionDefaultStatus
month
2
monthmonthemptyoptional
day
3
daydayemptyoptional
lang
4
languagelanguagelanguage code of the user languageoptional
casecasecaseemptyoptional
year
1
yearyearemptyoptional
hourhourhouremptyoptional
classclassclassdtstartoptional
minuteminuteminuteemptyoptional
secondsecondsecondemptyoptional
trim_year
trim year
trim yeartrim or pad the leading zeros in year number100-999optional

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