Template:Other date

From WikiEducator
Jump to: navigation, search

[edit]

Documentation


(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.

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(1939-01) until February 1945(1945-02) [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date)
between {{other date|between|1939-09-01|1945-08-02}} between 1 September 1939(1939-09-01) and 2 August 1945(1945-08-02) [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date)
<
b
before
{{other date|<|1945-03-02}} before 2 March 1945(1945-03-02) [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date)
>
a
after
{{other date|>|1939-04-01}} after 1 April 1939(1939-04-01) [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date)
from {{other date|from|1939-04-01}} from 1 April 1939(1939-04-01) [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date)
~
ca
circa
{{other date|ca|1939-05-01}} ca. 1 May 1939(1939-05-01) [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date)
by {{other date|by|1939-05-01}} by 1 May 1939(1939-05-01) [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date)
or {{other date|or|1939|1940}} 1939(1939) or 1940(1940) [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date)
and
&
{{other date|and|1939|1940}} 1939(1939) and 1940(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(1939-09) [YYYY]-[MM]
mid
middle
{{other date|mid|1939-10}} mid October 1939(1939-10) [YYYY]-[MM]
end
late
{{other date|late|1939-11}} late November 1939(1939-11) [YYYY]-[MM]
firsthalf
1half
{{other date|firsthalf|1939-12}} 1st half of December 1939(1939-12) [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date)
secondhalf
2half
{{other date|secondhalf|1939-12}} 2nd half of December 1939(1939-12) [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date)
Julian {{other date|Julian|1863-02-17|1863-03-01}} 17 February 1863(1863-02-17) (1 March 1863(1863-03-01) in Julian calendar) [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.

This page in other languages: catalàTemplate:LanguageSelector/InterLanguageSpacerčeštinaTemplate:LanguageSelector/InterLanguageSpacerdanskTemplate:LanguageSelector/InterLanguageSpacerDeutschTemplate:LanguageSelector/InterLanguageSpacerEnglishTemplate:LanguageSelector/InterLanguageSpacerespañolTemplate:LanguageSelector/InterLanguageSpacersuomiTemplate:LanguageSelector/InterLanguageSpacerfrançaisTemplate:LanguageSelector/InterLanguageSpacermagyar
This page in other languages: हिन्दीTemplate:LanguageSelector/InterLanguageSpaceritalianoTemplate:LanguageSelector/InterLanguageSpacerPlattdüütschTemplate:LanguageSelector/InterLanguageSpacerNederlandsTemplate:LanguageSelector/InterLanguageSpacerpolskiTemplate:LanguageSelector/InterLanguageSpacerрусскийTemplate:LanguageSelector/InterLanguageSpacerไทยTemplate:LanguageSelector/InterLanguageSpacervèneto

{{{1}}} Code Output
- {{other date|-|1999|2000}}
{{other date|-|1999-01|2000-02}}
{{other date|-|1999-01-01|2000-02-01}}

from 1999(1999) until 2000(2000)
from January 1999(1999-01) until February 2000(2000-02)
from 1 January 1999(1999-01-01) until 1 February 2000(2000-02-01)

between {{other date|between|1999|2000}}
{{other date|between|1999-02|2000-03}}
{{other date|between|1999-02-01|2000-03-01}}

between 1999(1999) and 2000(2000)
between February 1999(1999-02) and March 2000(2000-03)
between 1 February 1999(1999-02-01) and 1 March 2000(2000-03-01)

<
b
before
{{other date|<|2000}}
{{other date|b|2000-03}}
{{other date|before|2000-03-01}}

before 2000(2000)
before March 2000(2000-03)
before 1 March 2000(2000-03-01)

>
a
after
{{other date|>|1999}}
{{other date|a|1999-04}}
{{other date|after|1999-04-01}}

after 1999(1999)
after April 1999(1999-04)
after 1 April 1999(1999-04-01)

by {{other date|by|1999}}
{{other date|by|1999-04}}
{{other date|by|1999-04-01}}

by 1999(1999)
by April 1999(1999-04)
by 1 April 1999(1999-04-01)

from {{other date|from|1999}}
{{other date|from|1999-04}}
{{other date|from|1999-04-01}}

from 1999(1999)
from April 1999(1999-04)
from 1 April 1999(1999-04-01)

~
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(1999)
ca. May 1999(1999-05)
ca. 1 May 1999(1999-05-01)
ca. between 1999(1999) and 2000(2000)
ca. between May 1999(1999-05) and June 2000(2000-06)
ca. between 1 May 1999(1999-05-01) and 1 June 2000(2000-06-01)

or {{other date|or|1999|2000}}
{{other date|or|1999-06|2000-07}}
{{other date|or|1999-06-01|2000-07-1}}

1999(1999) or 2000(2000)
June 1999(1999-06) or July 2000(2000-07)
1 June 1999(1999-06-01) or 2000-07-1

and
&
{{other date|&|1999|2000}}
{{other date|and|1999-06|2000-07}}
{{other date|and|1999-06-01|2000-07-01}}

1999(1999) and 2000(2000)
June 1999(1999-06) and July 2000(2000-07)
1 June 1999(1999-06-01) and 2000-07-1

s
decade
{{other date|s|2000}}

2000s

century {{other date|century|1}}
{{other date|century|20}}

Template:Ordinal century
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
Summer 1999
Fall 1999
Winter 1999

begining
early
{{other date|early|1999-08}}
{{other date|begining|1999}}

early August 1999(1999-08)

mid
middle
{{other date|mid|1999-10}}
{{other date|middle|1999}}

mid October 1999(1999-10)
mid 1999(1999)

end
late
{{other date|end|1999-11}}
{{other date|late|1999}}

late November 1999(1999-11)
late 1999(1999)

firsthalf
1half
{{other date|firsthalf|1999-11}}
{{other date|1half|1999}}

1st half of November 1999(1999-11)
1st half of 1999(1999)

secondhalf
2half
{{other date|secondhalf|1999-11}}
{{other date|2half|1999}}

2nd half of November 1999(1999-11)
2nd half of 1999(1999)

Julian {{other date|Julian|1865-01-19|1865-01-07}}

19 January 1865(1865-01-19) (7 January 1865(1865-01-07) in Julian calendar)

? {{other date|?}}

Date unknown