Template:Other date/doc

De OpenMedia
Dreceres ràpides: navegació, cerca

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

{{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) 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 | Russian | 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 until
from until
from until

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

between and
between and
between and

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

between circa and circa
between circa and circa
between circa and circa

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

or
or
or

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

and
and
and

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

( in Julian calendar)

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

or  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
before
before
{{other date|<|99|BC}} before  BC
>
a
after
{{other date|>|1999}}
{{other date|a|1999-04}}
{{other date|after|1999-04-01}}
after
after
after
{{other date|>|99|BC}} after  BC
by {{other date|by|1999}}
{{other date|by|1999-04}}
{{other date|by|1999-04-01}}
by
by
by
{{other date|by|99|BC}} by  BC
from {{other date|from|1999}}
{{other date|from|1999-04}}
{{other date|from|1999-04-01}}
from
from
from
{{other date|from|99|BC}} from  BC
~
ca
circa
{{other date|~|1999}}
{{other date|ca|1999-05}}
{{other date|circa|1999-05-01}}
circa
circa
circa
{{other date|~|99|era=BC}} circa  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
20th 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 th 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}} Spring 1999 {{other date|spring|99|AD}} Spring 99 AD
summer {{other date|summer|1999}} Summer 1999 {{other date|summer|99|BC}} Summer 99 BC
fall
autumn
{{other date|fall|1999}}
{{other date|autumn|1999}}
Autumn 1999
Autumn 1999
{{other date|fall|99|AD}} Autumn 99 AD
winter {{other date|winter|1999}} Winter 1999 {{other date|winter|99|BC}} Winter 99 BC
beginning
early
{{other date|early|1999-08}}
{{other date|beginning|1999}}
early
early
{{other date|early|99|BC}} early  BC
mid
middle
{{other date|mid|1999-10}}
{{other date|middle|1999}}
mid
mid
{{other date|mid|99|BC}} mid  BC
end
late
{{other date|end|1999-11}}
{{other date|late|1999}}
late
late
{{other date|end|99|BCE}} late  BC
firsthalf
1half
1sthalf
first half
1st half
{{other date|firsthalf|1999-11}}
{{other date|1half|1999}}
first half of
first half of
{{other date|firsthalf|99|BC}} first half of  BC
secondhalf
2half
2ndhalf
second half
2nd half
{{other date|secondhalf|1999-11}}
{{other date|2half|1999}}
second half of
second half of
{{other date|secondhalf|99|BCE}} second half of  BC
1quarter
quarter1
1stquarter
1st quarter
{{other date|1quarter|1815-09}}
{{other date|1quarter|1815}}
first quarter of
first quarter of
{{other date|1quarter|99|BC}} first quarter of  BC
2quarter
quarter2
2ndquarter
2nd quarter
{{other date|2quarter|1815-09}}
{{other date|2quarter|1815}}
second quarter of
second quarter of
{{other date|2quarter|99|BC}} second quarter of  BC
3quarter
quarter3
3rdquarter
3rd quarter
{{other date|3quarter|1815-09}}
{{other date|3quarter|1815}}
third quarter of
third quarter of
{{other date|3quarter|99|BC}} third quarter of  BC
4quarter
quarter4
4thquarter
4th quarter
{{other date|4quarter|1815-09}}
{{other date|4quarter|1815}}
fourth quarter of
fourth quarter of
{{other date|4quarter|99|BC}} fourth quarter of  BC
BC
BCE
{{other date|BC|44-03-15}}
{{other date|BC|44}}
 BC
 BC
CE
AD
{{other date|AD|944-03}}
{{other date|CE|944}}
 AD
 AD
?
unknown
{{other date|?}}
{{other date|unknown}}
Data desconeguda
Data desconeguda
{{other date|?||BC}} Data desconeguda BC
year unknown {{other date|year unknown}} year unknown {{other date|year unknown||BC}} year unknown BC