Module:Dates/locales/doc
< Module:Dates | locales
Jump to navigation
Jump to search
This is a documentation subpage for Module:Dates/locales. It contains usage information, categories and other content or metadata that is not part of the original module page. |
This is a documentation subpage for Module:Dates/locales. It contains usage information, categories and other content or metadata that is not part of the original module page. |
This table maps ISO language code or IETF language tags to date and date range formats used by {{Event date}} (via Module:Dates). The formats in this module are loosely based on CLDR, specifically the sections “medium”, “MMMd/d”, “MMMd/M”, and “yMMMd/y”.
Structure
A format date contains four keys:
sameDay
– for when something lasts only one daysameMonth
– for when something lasts multiple days within the same monthsameYear
– for when something ends in a different month than it starteddifferent
– for when something ends in a different year than it started
Each key is set to a table containing one or two format strings. The first string determines the return value’s overall format. If specified, the second string formats the end date, which is then inserted into the main formatted string, replacing the …
placeholder.
The format string syntax (other than the …
placeholder) is described in the ParserFunctions extension's documentation.
See also
- {{Dm}}