Template:Other date/doc

Uit Test Wiki

__EXPECTED_UNCONNECTED_PAGE__

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:

Usage

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

⧼templatedata-doc-params⧽

ParameterDescriptionDefaultStatus
1typeType 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.emptyrequired
2date 1A 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.emptyrequired
3date 2Depends on type. If used than it is a date in ISO 8601 format. See Parameter #2 for details.emptyoptional
eraera emptyoptional
certaintycertaintyCertainty 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 Lua error in Module:Wikidata_label at line 274: attempt to index field 'wikibase' (a nil value). (P1480) qualifier when used to describe a date.emptyoptional
langlanguageLanguage 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
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

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
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. <nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateDataCommons-specific information

<templatedata> {"description":{"en":"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)."},"format":"inline","params":{"1":{"deprecated":false,"description":{"en":"Type of date notation. See examples on the template's page for list of allowed options."},"label":{"en":"type"},"required":true,"suggested":false,"type":"line"},"2":{"deprecated":false,"description":{"en":"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."},"label":{"en":"date 1"},"required":true,"suggested":false,"type":"line"},"3":{"deprecated":false,"description":{"en":"Depends on type. If used than it is a date in ISO 8601 format. See Parameter #2 for details."},"label":{"en":"date 2"},"required":false,"suggested":false,"type":"line"},"certainty":{"deprecated":false,"description":{"en":"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 P1480 qualifier when used to describe a date."},"label":{"en":"certainty"},"required":false,"suggested":false,"type":"line"},"era":{"deprecated":false,"description":{"en":"Era: BC (Before Christ), BCE (Before Common Era), CE (Common Era), AD (Anno Domini), BP (Before Present) or AH (Anno Hegirae – Islamic calendar)"},"label":{"en":"era"},"required":false,"suggested":false,"type":"line"},"lang":{"default":"(language code of the user language)","deprecated":false,"description":"Language code (only needs to be provided if the language shall be fixed and independent of the user's preferences)","label":{"en":"language"},"required":false,"suggested":false,"type":"line"}},"sets":[]} </templatedata>

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:

⧼Seealso⧽

== 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
-
from-until
{{other date|-|1999|2000}}
{{other date|-|1999-01|2000-02}}
{{other date|-|1999-01-01|2000-02-01}}

1999 tot 2000
januari 1999 tot februari 2000
1 januari 1999 tot 1 februari 2000

? {{other date|?|1800|1825}}

Datum onbekend<ref name="between">reported bug</ref>

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

tussen 1999 en 2000
tussen februari 1999 en maart 2000
tussen 1 februari 1999 en 1 maart 2000

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

ca. 1999 tot 2000
ca. mei 1999 tot juni 2000
ca. 1 mei 1999 tot 1 juni 2000

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

1999 of 2000
juni 1999 of juli 2000
1 juni 1999 of 1 juli 2000

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

1999 en 2000
juni 1999 en juli 2000
1 juni 1999 en 1 juli 2000

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

19 januari 1865 (7 januari 1865 volgens de Juliaanse kalender)

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

985 of 986 v.Chr.

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}}
voor 2000
date QS:P,+2000-00-00T00:00:00Z/7,P1326,+2000-00-00T00:00:00Z/9

voor maart 2000
date QS:P,+2000-03-00T00:00:00Z/7,P1326,+2000-03-00T00:00:00Z/10

voor 1 maart 2000
date QS:P,+2000-03-01T00:00:00Z/7,P1326,+2000-03-01T00:00:00Z/11
{{other date|<|99|era=BC}} voor 99 v.Chr.
>
a
after
{{other date|>|1999}}
{{other date|a|1999-04}}
{{other date|after|1999-04-01}}
na 1999
date QS:P,+1999-00-00T00:00:00Z/7,P1319,+1999-00-00T00:00:00Z/9

na april 1999
date QS:P,+1999-04-00T00:00:00Z/7,P1319,+1999-04-00T00:00:00Z/10

na 1 april 1999
date QS:P,+1999-04-01T00:00:00Z/7,P1319,+1999-04-01T00:00:00Z/11
{{other date|>|99|era=BC}} na 99 v.Chr.
by {{other date|by|1999}}
{{other date|by|1999-04}}
{{other date|by|1999-04-01}}
tegen 1999
date QS:P,+1999-00-00T00:00:00Z/7,P1326,+1999-00-00T00:00:00Z/9

tegen april 1999
date QS:P,+1999-04-00T00:00:00Z/7,P1326,+1999-04-00T00:00:00Z/10

tegen 1 april 1999
date QS:P,+1999-04-01T00:00:00Z/7,P1326,+1999-04-01T00:00:00Z/11
{{other date|by|99|era=BC}} tegen 99 v.Chr.
from {{other date|from|1999}}
{{other date|from|1999-04}}
{{other date|from|1999-04-01}}
vanaf 1999
date QS:P,+1999-00-00T00:00:00Z/7,P580,+1999-00-00T00:00:00Z/9

vanaf april 1999
date QS:P,+1999-04-00T00:00:00Z/7,P580,+1999-04-00T00:00:00Z/10

vanaf 1 april 1999
date QS:P,+1999-04-01T00:00:00Z/7,P580,+1999-04-01T00:00:00Z/11
{{other date|from|99|era=BC}} vanaf 99 v.Chr.
until {{other date|until|1999}}
{{other date|until|1999-04}}
{{other date|until|1999-04-01}}
tot 1999
date QS:P,+1999-00-00T00:00:00Z/7,P582,+1999-00-00T00:00:00Z/9

tot april 1999
date QS:P,+1999-04-00T00:00:00Z/7,P582,+1999-04-00T00:00:00Z/10

tot 1 april 1999
date QS:P,+1999-04-01T00:00:00Z/7,P582,+1999-04-01T00:00:00Z/11
{{other date|until|99|era=BC}} tot 99 v.Chr.
~
ca
circa
{{other date|~|1999}}
{{other date|ca|1999-05}}
{{other date|circa|1999-05-01}}
ca. 1999
date QS:P,+1999-00-00T00:00:00Z/9,P1480,Q5727902

ca. mei 1999
date QS:P,+1999-05-00T00:00:00Z/10,P1480,Q5727902

ca. 1 mei 1999
date QS:P,+1999-05-01T00:00:00Z/11,P1480,Q5727902
{{other date|~|99|era=BC}} ca. 99 v.Chr.
s
decade
{{other date|s|1960}}
{{other date|decade|1800}}
jaren 1960
date QS:P,+1960-00-00T00:00:00Z/8

jaren 1800
date QS:P,+1800-00-00T00:00:00Z/8
{{other date|s|960|era=BCE}} jaren 960 v.Chr.
date QS:P,-960-00-00T00:00:00Z/8
century {{other date|century|1}}
{{other date|century|20}}
1e eeuw
date QS:P,+050-00-00T00:00:00Z/7

20e eeuw
date QS:P,+1950-00-00T00:00:00Z/7
{{other date|century|1|era=BC}} 1e eeuw v.Chr.
date QS:P,-050-00-00T00:00:00Z/7
millennium {{other date|millennium|1}} 1e millennium
date QS:P,+0500-00-00T00:00:00Z/6
{{other date|millennium|2|era=BC}} 2e millennium v.Chr.
date QS:P,-1500-00-00T00:00:00Z/6
turn of the decade {{other date|turn of the decade|1920}}
{{other date|turn of the decade|1800}}
eind 1910e/begin 1920e decennium
eind 1790e/begin 1800e decennium
{{other date|turn of the decade|920|era=BC}} eind 920e/begin 910e decennium v.Chr.
turn of the century {{other date|turn of the century|2}}
{{other date|turn of the century|20}}
eind 1e/begin 2e eeuw
eind 19e/begin 20e eeuw
{{other date|turn of the century|2|era=BC}} eind 2e/begin 1e eeuw v.Chr.
turn of the year {{other date|turn of the year|1992}} eind 1991 en begin 1992 {{other date|turn of the year|922|era=BC}} eind 922 en begin 921 v.Chr.
spring {{other date|spring|1999}} voorjaar 1999
date QS:P,+1999-00-00T00:00:00Z/9,P4241,Q40720559
{{other date|spring|99|era=AD}} voorjaar 99 n.Chr.
summer {{other date|summer|1999}} zomer 1999
date QS:P,+1999-00-00T00:00:00Z/9,P4241,Q40720564
{{other date|summer|99|era=BC}} zomer 99 v.Chr.
fall
autumn
{{other date|fall|1999}}
{{other date|autumn|1999}}
herfst 1999
date QS:P,+1999-00-00T00:00:00Z/9,P4241,Q40720568

herfst 1999
date QS:P,+1999-00-00T00:00:00Z/9,P4241,Q40720568
{{other date|fall|99|era=AD}} herfst 99 n.Chr.
winter {{other date|winter|1999}} winter 1999
date QS:P,+1999-00-00T00:00:00Z/9,P4241,Q40720553
{{other date|winter|99|era=BC}} winter 99 v.Chr.
beginning
early
{{other date|early|1999-08}}
{{other date|beginning|1999}}
begin augustus 1999
date QS:P,+1999-08-00T00:00:00Z/10,P4241,Q40719727

begin 1999
date QS:P,+1999-00-00T00:00:00Z/9,P4241,Q40719727
{{other date|early|99|era=BC}} begin 99 v.Chr.
mid
middle
{{other date|mid|1999-10}}
{{other date|middle|1999}}
midden oktober 1999
date QS:P,+1999-10-00T00:00:00Z/10,P4241,Q40719748

midden 1999
date QS:P,+1999-00-00T00:00:00Z/9,P4241,Q40719748
{{other date|mid|99|era=BC}} midden 99 v.Chr.
end
late
{{other date|end|1999-11}}
{{other date|late|1999}}
eind november 1999
date QS:P,+1999-11-00T00:00:00Z/10,P4241,Q40719766

eind 1999
date QS:P,+1999-00-00T00:00:00Z/9,P4241,Q40719766
{{other date|end|99|era=BCE}} eind 99 v.Chr.
firsthalf
1half
1sthalf
first half
1st half
{{other date|firsthalf|1999-11}}
{{other date|1half|1999}}
eerste helft november 1999
date QS:P,+1999-11-00T00:00:00Z/10,P4241,Q40719687

eerste helft 1999
date QS:P,+1999-00-00T00:00:00Z/9,P4241,Q40719687
{{other date|firsthalf|99|era=BC}} eerste helft 99 v.Chr.
secondhalf
2half
2ndhalf
second half
2nd half
{{other date|secondhalf|1999-11}}
{{other date|2half|1999}}
tweede helft november 1999
date QS:P,+1999-11-00T00:00:00Z/10,P4241,Q40719707

tweede helft 1999
date QS:P,+1999-00-00T00:00:00Z/9,P4241,Q40719707
{{other date|secondhalf|99|era=BCE}} tweede helft 99 v.Chr.
1quarter
quarter1
1stquarter
1st quarter
{{other date|1quarter|1815-09}}
{{other date|1quarter|1815}}
eerste kwart september 1815
date QS:P,+1815-09-00T00:00:00Z/10,P4241,Q40690303

eerste kwart 1815
date QS:P,+1815-00-00T00:00:00Z/9,P4241,Q40690303
{{other date|1quarter|99|era=BC}} eerste kwart 99 v.Chr.
2quarter
quarter2
2ndquarter
2nd quarter
{{other date|2quarter|1815-09}}
{{other date|2quarter|1815}}
tweede kwart september 1815
date QS:P,+1815-09-00T00:00:00Z/10,P4241,Q40719649

tweede kwart 1815
date QS:P,+1815-00-00T00:00:00Z/9,P4241,Q40719649
{{other date|2quarter|99|era=BC}} tweede kwart 99 v.Chr.
3quarter
quarter3
3rdquarter
3rd quarter
{{other date|3quarter|1815-09}}
{{other date|3quarter|1815}}
derde kwart september 1815
date QS:P,+1815-09-00T00:00:00Z/10,P4241,Q40719662

derde kwart 1815
date QS:P,+1815-00-00T00:00:00Z/9,P4241,Q40719662
{{other date|3quarter|99|era=BC}} derde kwart 99 v.Chr.
4quarter
quarter4
4thquarter
4th quarter
{{other date|4quarter|1815-09}}
{{other date|4quarter|1815}}
vierde kwart september 1815
date QS:P,+1815-09-00T00:00:00Z/10,P4241,Q40719674

vierde kwart 1815
date QS:P,+1815-00-00T00:00:00Z/9,P4241,Q40719674
{{other date|4quarter|99|era=BC}} vierde kwart 99 v.Chr.
BC
BCE
{{other date|BC|44-03-15}}
{{other date|BCE|44}}
15 maart 44 v.Chr.
44 v.Chr.
AD
CE
{{other date|AD|944-03}}
{{other date|CE|944}}
maart 944 n.Chr.
944 n.Chr.
? {{other date|?|2015}} Datum onbekend<ref name="between" /> {{other date|?|2015|era=BC}} Datum onbekend v.Chr.<ref name="between" />

<references />

date notations without date

{{{1}}} parameter Example Code Output Example Code with era Output with era
?
unknown
{{other date|?}}
{{other date|unknown}}
Datum onbekend
Datum onbekend
{{other date|?||era=BC}} Datum onbekend v.Chr.
year unknown {{other date|year unknown}} zonder jaar {{other date|year unknown|era=BC}} zonder jaar v.Chr.

compound constructions

Example Code Output Example Code with era Output with era
{{Other date|2half|{{Other date|century|15}}}} tweede helft 15e eeuw
date QS:P,+1450-00-00T00:00:00Z/7
{{Other date|2half|{{Other date|century|15}}|era=BC}} tweede helft 15e eeuw
date QS:P,+1450-00-00T00:00:00Z/7
v.Chr.
{{otherdate|mid|{{otherdate|decade|1980}}}} midden jaren 1980
date QS:P,+1980-00-00T00:00:00Z/8
{{otherdate|mid|{{otherdate|decade|1980}}|era=BC}} midden jaren 1980
date QS:P,+1980-00-00T00:00:00Z/8
v.Chr.