قالب:Other date


Template documentation[view] [edit] [history] [purge]


This template allows to specify a range of non-trivial date notations in a format that is localizable.

Usage

{{Other date|1=|2=}}

Parameters

Parameter name Description Default value required or optional?

parameter #1 (1) type of date notation. See examples below for list of allowed options. Pages using incorrect option will be added to Category:Pages using Other date template with incorrect parameter. empty required
parameter #2 (2) a date in ISO 8601 format "YYYY-MM-DD", or "YYYY-MM", or "YYYY", e.g. "2006-01-15" for "15 January 2006". empty required
parameter #3 (3) depends on {{{1}}}. If used than it is either:
  • a date in ISO 8601 format. See Parameter #2 for details
  • era. See Parameter "era" for details
empty optional
era Era: empty optional
lang language code (only needs to be provided if the language shall be fixed and independent of the user's preferences) language code of the user language 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

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) Other date template supports at the moment: Danish, English, Estonian, German, Low German, Polish, Romanian, Spanish, and Swedish languages. Translations into other languages are needed. Since the template is protected new translations have to be added by administrators. Please use the talk page to request additions to the template. In case of large additions, like new language, the easiest way is to copy current {{Other date}} to {{Other date/sandbox}}, do changer there and than request coping content of {{Other date/sandbox}} to {{Other date}}.

Examples

This page in other languages : Catalan | Czech | Danish | German | English | Spanish | Finnish | French | Hebrew | Hungarian
This page in other languages : Hindi | Italian | Low German | Dutch | Polish | روسية | Swedish | Thai | Venetian | Romanian

date notations with two dates

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

from 1999 until 2000
from 1999 until 2000
from 1999 until 2000

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

between 1999 and 2000
between 1999 and 2000
between 1999 and 2000

~
ca
circa
{{other date|~|1999|2000}}
{{other date|ca|1999-05|2000-06}}
{{other date|circa|1999-05-01|2000-06-1}}

circa between 1999 and 2000
circa between 1999 and 2000
circa between 1999 and 2000

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

1999 or 2000
1999 or 2000
1999 or 2000

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

1999 and 2000
1999 and 2000
1999 and 2000

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

1865 (1865 in Julian calendar)

Islamic {{other date|islamic|1486|892}}
{{other date|islamic|1486}}
1486  AD (891  AH)
1486  AD (891  AH)
era parameter {{other date|or|985|986|era=BC}}

985 or 986 BC

date notations with single date

Date notations with single date can use the second date for era, like BC or AD.

{{{1}}} parameter Example Code Output Example Code with era Output with era
<
b
before
{{other date|<|2000}}
{{other date|b|2000-03}}
{{other date|before|2000-03-01}}
before 2000
before 2000
before 2000
{{other date|<|99|BC}} before 99 BC
>
a
after
{{other date|>|1999}}
{{other date|a|1999-04}}
{{other date|after|1999-04-01}}
after 1999
after 1999
after 1999
{{other date|>|99|BC}} after 99 BC
by {{other date|by|1999}}
{{other date|by|1999-04}}
{{other date|by|1999-04-01}}
by 1999
by 1999
by 1999
{{other date|by|99|BC}} by 99 BC
from {{other date|from|1999}}
{{other date|from|1999-04}}
{{other date|from|1999-04-01}}
from 1999
from 1999
from 1999
{{other date|from|99|BC}} from 99 BC
~
ca
circa
{{other date|~|1999}}
{{other date|ca|1999-05}}
{{other date|circa|1999-05-01}}
circa 1999
circa 1999
circa 1999
{{other date|~|99|era=BC}} circa 99 BC
s
decade
{{other date|s|1960}}
{{other date|s|1800}}
1960s
1800s
{{other date|s|960|BCE}} 960s BC
century {{other date|century|1}}
{{other date|century|20}}
1st century
20 century
{{other date|century|1|BC}} 1st century BC
millennium {{other date|millennium|1}} 1st millennium {{other date|millennium|2|BC}} 2nd millennium BC
turn of the decade {{other date|turn of the decade|1920}}
{{other date|turn of the decade|1800}}
late 1910s and early 1920s
late 1790s and early 1800s
{{other date|turn of the decade|920|BC}} late 920s and early 910s BC
turn of the century {{other date|turn of the century|2}}
{{other date|turn of the century|20}}
turn of the 1/2 nd century
turn of the 19/20 century
{{other date|turn of the century|2|BC}} turn of the 2/1 st century BC
turn of the year {{other date|turn of the year|1992}} late 1991 and early 1992 {{other date|turn of the year|922|BC}} late 922 and early 921 BC
spring {{other date|spring|1999}} قالب:Season {{other date|spring|99|AD}} قالب:Season AD
summer {{other date|summer|1999}} قالب:Season {{other date|summer|99|BC}} قالب:Season BC
fall
autumn
{{other date|fall|1999}}
{{other date|autumn|1999}}
قالب:Season
قالب:Season
{{other date|fall|99|AD}} قالب:Season AD
winter {{other date|winter|1999}} قالب:Season {{other date|winter|99|BC}} قالب:Season BC
beginning
early
{{other date|early|1999-08}}
{{other date|beginning|1999}}
early 1999
early 1999
{{other date|early|99|BC}} early 99 BC
mid
middle
{{other date|mid|1999-10}}
{{other date|middle|1999}}
mid 1999
mid 1999
{{other date|mid|99|BC}} mid 99 BC
end
late
{{other date|end|1999-11}}
{{other date|late|1999}}
late 1999
late 1999
{{other date|end|99|BCE}} late 99 BC
firsthalf
1half
1sthalf
first half
1st half
{{other date|firsthalf|1999-11}}
{{other date|1half|1999}}
first half of 1999
first half of 1999
{{other date|firsthalf|99|BC}} first half of 99 BC
secondhalf
2half
2ndhalf
second half
2nd half
{{other date|secondhalf|1999-11}}
{{other date|2half|1999}}
second half of 1999
second half of 1999
{{other date|secondhalf|99|BCE}} second half of 99 BC
1quarter
quarter1
1stquarter
1st quarter
{{other date|1quarter|1815-09}}
{{other date|1quarter|1815}}
first quarter of 1815
first quarter of 1815
{{other date|1quarter|99|BC}} first quarter of 99 BC
2quarter
quarter2
2ndquarter
2nd quarter
{{other date|2quarter|1815-09}}
{{other date|2quarter|1815}}
second quarter of 1815
second quarter of 1815
{{other date|2quarter|99|BC}} second quarter of 99 BC
3quarter
quarter3
3rdquarter
3rd quarter
{{other date|3quarter|1815-09}}
{{other date|3quarter|1815}}
third quarter of 1815
third quarter of 1815
{{other date|3quarter|99|BC}} third quarter of 99 BC
4quarter
quarter4
4thquarter
4th quarter
{{other date|4quarter|1815-09}}
{{other date|4quarter|1815}}
fourth quarter of 1815
fourth quarter of 1815
{{other date|4quarter|99|BC}} fourth quarter of 99 BC
BC
BCE
{{other date|BC|44-03-15}}
{{other date|BC|44}}
44 BC
44 BC
CE
AD
{{other date|AD|944-03}}
{{other date|CE|944}}
944 AD
944 AD
?
unknown
{{other date|?}}
{{other date|unknown}}
تاريخ غير معروف
تاريخ غير معروف
{{other date|?||BC}} تاريخ غير معروف BC
year unknown {{other date|year unknown}} year unknown {{other date|year unknown||BC}} year unknown BC