Template:Date/doc: Difference between revisions

From Wikimedia Foundation Governance Wiki
Content deleted Content added
m 1 revision imported from meta:Template:Date/doc
mNo edit summary
Tag: 2017 source edit
Line 45: Line 45:
<includeonly>
<includeonly>
[[Category:User interface language dependent templates|Date]]
[[Category:User interface language dependent templates|Date]]
[[Category:Date computing template|Date]]
[[Category:Date computing templates|Date]]
</includeonly>
</includeonly>

Revision as of 22:22, 29 September 2023

Gives a date in the language with a specified code (the default for that code is the result of Template:Uselang, which is en).

Note that this translated date may have a lowercase initial (unless its first term is always capitalized, like month names in English), so that it can be used in the middle of a sentence. At start of a sentence or paragraph (but not at start of an item in an enumerated list that is part of a larger sentence), you may need to embed the template transclusion in a {{UCFIRST: }} parser call.

Parameters

Parameter name Description Default value
1 number of the year empty
2 number of month in the year empty
3 number of day in the month empty
lang
4
language code language code of the user language
form allows to specify differing syntactic forms to apply to the date (e.g. in some Polish phrases the month must appear in genitive form instead of nominative, so you have to set form to gen) empty

Examples

Does not check existence, except for the month number:

Required

Localization

The i18n-method used is branching to translations in the template itself.

See also