Module:I18n/date/doc

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

CodeDiscussionEditHistoryLinksLink count Subpages:DocumentationTestsResultsSandboxLive code All modules

This is the documentation page for Module:I18n/date

Translations previously used by Module:DateI18n.

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.
Date formats
Format string Meaning
YMDHMS YYYY:MM:DD, HH:MM:SS format or equivalent
YMDHM YYYY:MM:DD, HH:MM format or equivalent
YMD YYYY:MM:DD format or equivalent
YM YYYY:MM (year-month) format or equivalent
MD MM:DD (month-day) format or equivalent
Y YYYY (year only) format or equivalent
M 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.