Template:Other date/doc
Template page
More actions
This template allows to specify a range of non-trivial date notations in a format that is localizable.
Usage
{{Other date |1= |2= |4= }}
Possible values for {{{1}}}:
- "-": from {{{2}}} until {{{3}}} ({{{2}}} and {{{3}}} can be ISO 8601 dates)
- "between": between {{{2}}} and {{{3}}} ({{{2}}} and {{{3}}} can be ISO 8601 dates)
- "s": decade ({{{2}}}s), {{{2}}} must be a four-digit year (starting year of the decade)
- "century": century ({{{2}}}th century), {{{2}}} must be a two-digit number
- "ca": circa {{{2}}}
- "season": season {{{2}}} of the year {{{3}}} (can be "summer", "fall", "spring", "winter", {{{3}}} must be a four-digit year)
- "b": before {{{2}}} ({{{2}}} can be an ISO 8601 date)
- "a": after {{{2}}} ({{{2}}} can be an ISO 8601 date)
- "or": {{{2}}} or {{{3}}} ({{{2}}} and {{{3}}} can be ISO 8601 dates)
- "and": {{{2}}} and {{{3}}} ({{{2}}} and {{{3}}} can be ISO 8601 dates)
- "?": unknown date
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | type of date notation | empty | required | |
2 | depends on {{{1}}} | empty | optional | |
3 | depends on {{{1}}} | empty | optional | |
4 | language code (only needs to be provided if the language shall be fixed and independant from the user's preferences) | value of {{int:Lang}} | optional | |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
Relies on:
{{ISOdate}}, {{LangSwitch}}
Localization
To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation " (xx being the code of your language)