Template:Other date/doc
(this part of the documentation is only available in some languages)
This template allows to specify a range of non-trivial date notations in a format that is localizable.
Contents
Usage
{{Other date|1=|2=|4=}}
Parameters
Parameter name | Description (this part of the documentation is only available in some languages) | Default value | required or optional?
|
---|---|---|---|
parameter #1 (1) | type of date notation | empty | required |
parameter #2 (2) | depends on {{{1}}} | empty | optional |
parameter #3 (3) | depends on {{{1}}} | empty | optional |
parameter #4 (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}}
See also
(this part of the documentation is only available in some languages)
{{Lifetime date}}
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)
Examples
Option | Code | Output | Expected date format |
---|---|---|---|
- | {{other date|-|1939-01|1945-02}} | from January 1939 | until February 1945[YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
between | {{other date|between|1939-09-01|1945-08-02}} | between 1 September 1939 | and 2 August 1945[YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
< b before |
{{other date|<|1945-03-02}} | before 2 March 1945 | [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
> a after |
{{other date|>|1939-04-01}} | after 1 April 1939 | [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
from | {{other date|from|1939-04-01}} | from 1 April 1939 | [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
~ ca circa |
{{other date|ca|1939-05-01}} | ca. 1 May 1939 | [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
by | {{other date|by|1939-05-01}} | by 1 May 1939 | [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
or | {{other date|or|1939|1940}} | 1939 | or 1940[YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
and & |
{{other date|and|1939|1940}} | 1939 | and 1940[YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
s decade |
{{other date|s|1940}} | 1940s | [YYY0] (starting year of the decade) |
century | {{other date|century|20}} | Template:Ordinal century | [cc] (century as two-digit number). 1900's = Template:Ordinal century |
season | {{other date|season|fall|1939}} | Fall 1939 | {{{2}}} can be "spring", "summer", "fall", "autumn", "winter" {{{3}}} must be a four-digit year |
begining early |
{{other date|early|1939-09}} | early September 1939 | [YYYY]-[MM] |
mid middle |
{{other date|mid|1939-10}} | mid October 1939 | [YYYY]-[MM] |
end late |
{{other date|late|1939-11}} | late November 1939 | [YYYY]-[MM] |
firsthalf 1half |
{{other date|firsthalf|1939-12}} | 1st half of December 1939 | [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
secondhalf 2half |
{{other date|secondhalf|1939-12}} | 2nd half of December 1939 | [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
Julian | {{other date|Julian|1863-02-17|1863-03-01}} | 17 February 1863Julian calendar) | (1 March 1863 in[YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
? | {{other date|?}} | Date unknown | No date |
Localization
Other date template supports at the moment: Danish, English, German, Low German, Polish and Spanish languages. Translations into other languages are needed.
{{{1}}} | Code | Output |
---|---|---|
- | {{other date|-|1999|2000}} {{other date|-|1999-01|2000-02}} {{other date|-|1999-01-01|2000-02-01}} |
from 1999 |
between | {{other date|between|1999|2000}} {{other date|between|1999-02|2000-03}} {{other date|between|1999-02-01|2000-03-01}} |
between 1999 |
< b before |
{{other date|<|2000}} {{other date|b|2000-03}} {{other date|before|2000-03-01}} |
before 2000 |
> a after |
{{other date|>|1999}} {{other date|a|1999-04}} {{other date|after|1999-04-01}} |
after 1999 |
by | {{other date|by|1999}} {{other date|by|1999-04}} {{other date|by|1999-04-01}} |
by 1999 |
from | {{other date|from|1999}} {{other date|from|1999-04}} {{other date|from|1999-04-01}} |
from 1999 |
~ ca circa |
{{other date|~|1999}} {{other date|ca|1999-05}} {{other date|circa|1999-05-01}} {{other date|~|1999|2000}} {{other date|ca|1999-05|2000-06}} {{other date|circa|1999-05-01|2000-06-1}} |
ca. 1999 |
or | {{other date|or|1999|2000}} {{other date|or|1999-06|2000-07}} {{other date|or|1999-06-01|2000-07-1}} |
1999 |
and & |
{{other date|&|1999|2000}} {{other date|and|1999-06|2000-07}} {{other date|and|1999-06-01|2000-07-01}} |
1999 |
s decade |
{{other date|s|2000}} |
2000s |
century | {{other date|century|1}} {{other date|century|20}} |
Template:Ordinal century |
season | {{other date|season|spring|1999}} {{other date|season|summer|1999}} {{other date|season|fall|1999}} {{other date|season|winter|1999}} |
Spring 1999 |
begining early |
{{other date|early|1999-08}} {{other date|begining|1999}} |
early August 1999 |
mid middle |
{{other date|mid|1999-10}} {{other date|middle|1999}} |
mid October 1999 |
end late |
{{other date|end|1999-11}} {{other date|late|1999}} |
late November 1999 |
firsthalf 1half |
{{other date|firsthalf|1999-11}} {{other date|1half|1999}} |
1st half of November 1999 |
secondhalf 2half |
{{other date|secondhalf|1999-11}} {{other date|2half|1999}} |
2nd half of November 1999 |
Julian | {{other date|Julian|1865-01-19|1865-01-07}} |
19 January 1865Julian calendar) (7 January 1865 in |
? | {{other date|?}} |
Date unknown |