Module:I18n/date/doc
< Module:I18n/date
Révision datée du 21 janvier 2016 à 12:58 par Morgan (discussion | contributions) (1 révision importée : import de doc manquantes à certains modules)
Ceci est la page de documentation pour Module:I18n/date
This template is used on a very large number of pages. To avoid large-scale disruption and unnecessary server load, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. Please consider discussing any changes on the talk page before implementing them. |
Translations used by Module:Date.
Translations are stored in 2 tables:
- p.DateLang - matches individual languages with specific date format used bo one or more languages. All unlisted languages default to English format. Languages like "de-formal" follows regular language fallback chain and would default to German, and only if that does not exist then to English.
- p.DateFormat - Date format parameter which will be passed to {{#time:}} parser function, which are described here. It depends on the language and which parts of the date need to be displayed.
- Different forms are:
- YMDHMS = stands for YYYY:MM:DD, HH:MM:SS format or equivalent
- YMDHM = stands for YYYY:MM:DD, HH:MM format or equivalent
- YMD = stands for YYYY:MM:DD format or equivalent
- YM = stands for YYYY:MM (year-month) format or equivalent
- MD = stands for MM:DD (month-day) format or equivalent
- Y = stands for YYYY (year only) format or equivalent
- M = stands for month name only
To do: occasionally compare with translatewiki's Pagetriage-info-timestamp-date-format which holds similar info for YMD dates using some Google encoding.