Template:Other date
More actions
This template allows translation (localization) of many non-trivial phrases related to date description. This template has similar but more limited capabilities than {{Complex date}}. Please use {{Complex date}} instead of nesting {{Other date}} templates (calling {{Other date}} with inputs being other {{Other date}} templates).
The template automatically sets the following categories:
- Category:Pages using Complex date template with incorrect parameter (when errors are detected)
- Category:Unknown date (when dates are unknown, see also Template:Unknown)
- Category:Pages using Other date template with era
Usage
{{Other date |1= |2= }}
Parametrii formatului
| Parametru | Descriere | Implicit | Stare | |
|---|---|---|---|---|
1 | type | Type of date notation. See examples below for list of allowed options. Pages using incorrect option will be added to Category:Pages using Complex date template with incorrect parameter. | empty | obligatoriu |
2 | date 1 | A date in ISO 8601 format "YYYY-MM-DD", or "YYYY-MM", or "YYYY", e.g. "2006-01-15" for "15 January 2006" or a number for centuries and millennia. | empty | obligatoriu |
3 | date 2 | Depends on type. If used than it is a date in ISO 8601 format. See Parameter #2 for details. | empty | opțional |
era | era |
| empty | opțional |
certainty | certainty | Certainty of the statement. Supported values: possibly, probably, presumably and circa ("circa" can be also used as adjective). This parameter was added to allow compatibility with Wikidata's sourcing circumstances qualifier when used to describe a date. | empty | opțional |
lang | language | 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) | opțional |
|
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard. Existing template documentation Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information This template allows translation (localization) of many non-trivial phrases related to date description. This template has similar but more limited capabilities than {{Complex date}}. Please use {{Complex date}} instead of nesting {{Other date}} templates (calling {{Other date}} with inputs being other {{Other date}} templates).
| |||||||||||||||||||||||||||||||||||
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:
See also
== Localization ==
Please note that phrases without translations into desired language will be shown in English using red font, to add translations please request an edit to Module:I18n/complex date
Examples
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}} |
din 1999 până în 2000 |
?
|
{{other date|?|1800|1825}} |
Dată necunoscută[1] |
between
|
{{other date|between|1999|2000}} {{other date|between|1999-02|2000-03}} {{other date|between|1999-02-01|2000-03-01}} |
între 1999 și 2000 |
~
|
{{other date|~|1999|2000}} {{other date|ca|1999-05|2000-06}} {{other date|circa|1999-05-01|2000-06-1}} |
circa 1999 – 2000 |
or
|
{{other date|or|1999|2000}} {{other date|or|1999-06|2000-07}} {{other date|or|1999-06-01|2000-07-1}} |
1999 sau 2000 |
and
|
{{other date|&|1999|2000}} {{other date|and|1999-06|2000-07}} {{other date|and|1999-06-01|2000-07-01}} |
1999 și 2000 |
Julian
|
{{other date|Julian|1865-01-19|1865-01-07}} |
19 ianuarie 1865 (7 ianuarie 1865 în calendarul iulian) |
Islamic
|
{{other date|islamic|1486|892}} {{other date|islamic|1486}} |
1486 d.Hr. (892 AH) 1486 d.Hr. (891 AH) |
era parameter
|
{{other date|or|985|986|era=BC}} |
985 sau 986 î.Hr. |
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 |
|---|---|---|---|---|
<
|
{{other date|<|2000}} {{other date|b|2000-03}} {{other date|before|2000-03-01}} |
înainte de 2000 înainte de martie 2000 înainte de 1 martie 2000 |
{{other date|<|99|era=BC}} | înainte de 99 î.Hr. |
>
|
{{other date|>|1999}} {{other date|a|1999-04}} {{other date|after|1999-04-01}} |
după 1999 după aprilie 1999 după 1 aprilie 1999 |
{{other date|>|99|era=BC}} | după 99 î.Hr. |
by
|
{{other date|by|1999}} {{other date|by|1999-04}} {{other date|by|1999-04-01}} |
de 1999 de aprilie 1999 de 1 aprilie 1999 |
{{other date|by|99|era=BC}} | de 99 î.Hr. |
from
|
{{other date|from|1999}} {{other date|from|1999-04}} {{other date|from|1999-04-01}} |
din 1999 din aprilie 1999 din 1 aprilie 1999 |
{{other date|from|99|era=BC}} | din 99 î.Hr. |
until
|
{{other date|until|1999}} {{other date|until|1999-04}} {{other date|until|1999-04-01}} |
until 1999 until aprilie 1999 until 1 aprilie 1999 |
{{other date|until|99|era=BC}} | until 99 î.Hr. |
~
|
{{other date|~|1999}} {{other date|ca|1999-05}} {{other date|circa|1999-05-01}} |
circa 1999 circa mai 1999 circa 1 mai 1999 |
{{other date|~|99|era=BC}} | circa 99 î.Hr. |
s
|
{{other date|s|1960}} {{other date|decade|1800}} |
anii 1960 anii 1800 |
{{other date|s|960|era=BCE}} | anii 960 î.Hr. |
century
|
{{other date|century|1}} {{other date|century|20}} |
secolul al 1-lea secolul al 20-lea |
{{other date|century|1|era=BC}} | secolul al 1-lea î.Hr. |
millennium
|
{{other date|millennium|1}} | 1 millennium | {{other date|millennium|2|era=BC}} | 2 millennium î.Hr. |
turn of the decade
|
{{other date|turn of the decade|1920}} {{other date|turn of the decade|1800}} |
sfârșitul lui 1910 și începând cu 1920 sfârșitul lui 1790 și începând cu 1800 |
{{other date|turn of the decade|920|era=BC}} | sfârșitul lui 920 și începând cu 910 î.Hr. î.Hr. |
turn of the century
|
{{other date|turn of the century|2}} {{other date|turn of the century|20}} |
sfârșitul lui 1 și începând cu 2 sfârșitul lui 19 și începând cu 20 |
{{other date|turn of the century|2|era=BC}} | sfârșitul lui 2 și începând cu 1 î.Hr. î.Hr. |
turn of the year
|
{{other date|turn of the year|1992}} | sfârșitul lui 1991 și începând cu 1992 | {{other date|turn of the year|922|era=BC}} | sfârșitul lui 922 și începând cu 921 î.Hr. î.Hr. |
spring
|
{{other date|spring|1999}} | primăvara lui 1999 | {{other date|spring|99|era=AD}} | primăvara lui 99 d.Hr. |
summer
|
{{other date|summer|1999}} | vara lui 1999 | {{other date|summer|99|era=BC}} | vara lui 99 î.Hr. |
fall
|
{{other date|fall|1999}} {{other date|autumn|1999}} |
toamna lui 1999 toamna lui 1999 |
{{other date|fall|99|era=AD}} | toamna lui 99 d.Hr. |
winter
|
{{other date|winter|1999}} | iarna lui 1999 | {{other date|winter|99|era=BC}} | iarna lui 99 î.Hr. |
beginning
|
{{other date|early|1999-08}} {{other date|beginning|1999}} |
începând cu august 1999 începând cu 1999 |
{{other date|early|99|era=BC}} | începând cu 99 î.Hr. |
mid
|
{{other date|mid|1999-10}} {{other date|middle|1999}} |
mijlocul lui octombrie 1999 mijlocul lui 1999 |
{{other date|mid|99|era=BC}} | mijlocul lui 99 î.Hr. |
end
|
{{other date|end|1999-11}} {{other date|late|1999}} |
sfârșitul lui noiembrie 1999 sfârșitul lui 1999 |
{{other date|end|99|era=BCE}} | sfârșitul lui 99 î.Hr. |
firsthalf
|
{{other date|firsthalf|1999-11}} {{other date|1half|1999}} |
prima jumătate a lui noiembrie 1999 prima jumătate a lui 1999 |
{{other date|firsthalf|99|era=BC}} | prima jumătate a lui 99 î.Hr. |
secondhalf
|
{{other date|secondhalf|1999-11}} {{other date|2half|1999}} |
a doua jumătate a lui noiembrie 1999 a doua jumătate a lui 1999 |
{{other date|secondhalf|99|era=BCE}} | a doua jumătate a lui 99 î.Hr. |
1quarter
|
{{other date|1quarter|1815-09}} {{other date|1quarter|1815}} |
first quarter of septembrie 1815 first quarter of 1815 |
{{other date|1quarter|99|era=BC}} | first quarter of 99 î.Hr. |
2quarter
|
{{other date|2quarter|1815-09}} {{other date|2quarter|1815}} |
second quarter of septembrie 1815 second quarter of 1815 |
{{other date|2quarter|99|era=BC}} | second quarter of 99 î.Hr. |
3quarter
|
{{other date|3quarter|1815-09}} {{other date|3quarter|1815}} |
third quarter of septembrie 1815 third quarter of 1815 |
{{other date|3quarter|99|era=BC}} | third quarter of 99 î.Hr. |
4quarter
|
{{other date|4quarter|1815-09}} {{other date|4quarter|1815}} |
forth quarter of septembrie 1815 forth quarter of 1815 |
{{other date|4quarter|99|era=BC}} | forth quarter of 99 î.Hr. |
BC
|
{{other date|BC|44-03-15}} {{other date|BCE|44}} |
15 martie 44 î.Hr. 44 î.Hr. |
||
AD
|
{{other date|AD|944-03}} {{other date|CE|944}} |
martie 944 d.Hr. 944 d.Hr. |
||
?
|
{{other date|?|2015}} | Dată necunoscută[1] | {{other date|?|2015|era=BC}} | Dată necunoscută î.Hr.[1] |
date notations without date
| {{{1}}} parameter | Example Code | Output | Example Code with era | Output with era |
|---|---|---|---|---|
?
|
{{other date|?}} {{other date|unknown}} |
Dată necunoscută Dată necunoscută |
{{other date|?||era=BC}} | Dată necunoscută î.Hr. |
year unknown
|
{{other date|year unknown}} | year unknown | {{other date|year unknown|era=BC}} | year unknown î.Hr. |
compound constructions
| Example Code | Output | Example Code with era | Output with era |
|---|---|---|---|
| {{Other date|2half|{{Other date|century|15}}}} | a doua jumătate a lui secolul al 15-lea | {{Other date|2half|{{Other date|century|15}}|era=BC}} | a doua jumătate a lui secolul al 15-lea î.Hr. |
| {{otherdate|mid|{{otherdate|decade|1980}}}} | mijlocul lui anii 1980 | {{otherdate|mid|{{otherdate|decade|1980}}|era=BC}} | mijlocul lui anii 1980 î.Hr. |