Template:Other date: Difference between revisions
More actions
m fix minor error |
+uk |
||
| Line 249: | Line 249: | ||
|sl=pred {{IfNum | {{{2|}}} | letom}} {{ISOdate|1={{{2|}}}|2=sl|form=ins}} | |sl=pred {{IfNum | {{{2|}}} | letom}} {{ISOdate|1={{{2|}}}|2=sl|form=ins}} | ||
|sv=före {{ISOdate|1={{{2|}}}|2=sv}} | |sv=före {{ISOdate|1={{{2|}}}|2=sv}} | ||
|uk=до {{ISOdate|1={{{2|}}}|2=uk|form=gen}} <!-- If in YYYY-MM form then month needs Genitive case --> | |||
|vi=trước {{ISOdate|1={{{2|}}}|2=vi}} | |vi=trước {{ISOdate|1={{{2|}}}|2=vi}} | ||
|zh=在{{ISOdate|1={{{2|}}}|2=zh}}之前 | |zh=在{{ISOdate|1={{{2|}}}|2=zh}}之前 | ||
| Line 280: | Line 281: | ||
|sl=od {{IfNum | {{{2|}}}| leta}} {{ISOdate|1={{{2|}}}|2=sl|form=gen}} | |sl=od {{IfNum | {{{2|}}}| leta}} {{ISOdate|1={{{2|}}}|2=sl|form=gen}} | ||
|sv=från {{ISOdate|1={{{2|}}}|2=sv}} | |sv=från {{ISOdate|1={{{2|}}}|2=sv}} | ||
|uk=з {{ISOdate|1={{{2|}}}|2=uk|form=gen}} | |||
|vi=từ {{ISOdate|1={{{2|}}}|2=vi}} | |vi=từ {{ISOdate|1={{{2|}}}|2=vi}} | ||
|lang={{{lang|}}} | |lang={{{lang|}}} | ||
| Line 315: | Line 317: | ||
|sl=po {{IfNum | {{{2|}}} | letu}} {{ISOdate|1={{{2|}}}|2=sl|form=loc}} | |sl=po {{IfNum | {{{2|}}} | letu}} {{ISOdate|1={{{2|}}}|2=sl|form=loc}} | ||
|sv=efter {{ISOdate|1={{{2|}}}|2=sv}} | |sv=efter {{ISOdate|1={{{2|}}}|2=sv}} | ||
|uk=після {{ISOdate|1={{{2|}}}|2=uk|form=gen}} <!-- If in YYYY-MM form than month needs Genitive case --> | |||
|vi=sau {{ISOdate|1={{{2|}}}|2=vi}} | |vi=sau {{ISOdate|1={{{2|}}}|2=vi}} | ||
|zh=在{{ISOdate|1={{{2|}}}|2=zh}}之后 | |zh=在{{ISOdate|1={{{2|}}}|2=zh}}之后 | ||
| Line 352: | Line 355: | ||
|sl={{IfNum | {{{2|}}} | zgodnje leto | zgodnji}} {{ISOdate|1={{{2|}}}|2=sl}} | |sl={{IfNum | {{{2|}}} | zgodnje leto | zgodnji}} {{ISOdate|1={{{2|}}}|2=sl}} | ||
|sv=början av {{ISOdate|1={{{2|}}}|2=sv}} | |sv=början av {{ISOdate|1={{{2|}}}|2=sv}} | ||
|uk=поч. {{ISOdate|1={{{2|}}}|2=uk|form=gen}} <!-- Need Genitive case --> | |||
|vi=đầu năm {{ISOdate|1={{{2|}}}|2=vi}} | |vi=đầu năm {{ISOdate|1={{{2|}}}|2=vi}} | ||
|lang={{{lang|}}} | |lang={{{lang|}}} | ||
| Line 386: | Line 390: | ||
|sl=sredina {{IfNum | {{{2|}}} | leta}} {{ISOdate|1={{{2|}}}|2=sl|form=gen}} | |sl=sredina {{IfNum | {{{2|}}} | leta}} {{ISOdate|1={{{2|}}}|2=sl|form=gen}} | ||
|sv=mitten av {{ISOdate|1={{{2|}}}|2=sv}} | |sv=mitten av {{ISOdate|1={{{2|}}}|2=sv}} | ||
|uk=сер. {{ISOdate|1={{{2|}}}|2=uk|form=gen}} <!-- Need Genitive case --> | |||
|vi=giữa năm {{ISOdate|1={{{2|}}}|2=vi}} | |vi=giữa năm {{ISOdate|1={{{2|}}}|2=vi}} | ||
|lang={{{lang|}}} | |lang={{{lang|}}} | ||
| Line 420: | Line 425: | ||
|sl=pozno {{IfNum | {{{2|}}} | leta}} {{ISOdate|1={{{2|}}}|2=sl|form=gen}} | |sl=pozno {{IfNum | {{{2|}}} | leta}} {{ISOdate|1={{{2|}}}|2=sl|form=gen}} | ||
|sv=slutet av {{ISOdate|1={{{2|}}}|2=sv}} | |sv=slutet av {{ISOdate|1={{{2|}}}|2=sv}} | ||
|uk=кін. {{ISOdate|1={{{2|}}}|2=uk|form=gen}} <!-- Need Genitive case --> | |||
|vi=cuối năm {{ISOdate|1={{{2|}}}|2=vi}} | |vi=cuối năm {{ISOdate|1={{{2|}}}|2=vi}} | ||
|lang={{{lang|}}} | |lang={{{lang|}}} | ||
| Line 454: | Line 460: | ||
|sl=prva polovica {{IfNum | {{{2|}}} | leta}} {{ISOdate|1={{{2|}}}|2=sl|form=gen}} | |sl=prva polovica {{IfNum | {{{2|}}} | leta}} {{ISOdate|1={{{2|}}}|2=sl|form=gen}} | ||
|sv=första halvan av {{ISOdate|1={{{2|}}}|2=sv}} | |sv=första halvan av {{ISOdate|1={{{2|}}}|2=sv}} | ||
|uk=I пол. {{ISOdate|1={{{2|}}}|2=uk|form=gen}} <!-- Need Genitive case --> | |||
|vi=nửa đầu năm {{ISOdate|1={{{2|}}}|2=vi}} | |vi=nửa đầu năm {{ISOdate|1={{{2|}}}|2=vi}} | ||
|lang={{{lang|}}} | |lang={{{lang|}}} | ||
| Line 488: | Line 495: | ||
|sl=druga polovica {{IfNum | {{{2|}}} | leta}} {{ISOdate|1={{{2|}}}|2=sl|form=gen}} | |sl=druga polovica {{IfNum | {{{2|}}} | leta}} {{ISOdate|1={{{2|}}}|2=sl|form=gen}} | ||
|sv=andra halvan av {{ISOdate|1={{{2|}}}|2=sv}} | |sv=andra halvan av {{ISOdate|1={{{2|}}}|2=sv}} | ||
|uk=II пол. {{ISOdate|1={{{2|}}}|2=uk|form=gen}} <!-- Need Genitive case --> | |||
|vi=nửa cuối năm {{ISOdate|1={{{2|}}}|2=vi}} | |vi=nửa cuối năm {{ISOdate|1={{{2|}}}|2=vi}} | ||
|lang={{{lang|}}} | |lang={{{lang|}}} | ||
| Line 506: | Line 514: | ||
|sl= prva četrtina {{IfNum | {{{2|}}} | leta}} {{ISOdate|1={{{2|}}}|2=sl|form=gen}} | |sl= prva četrtina {{IfNum | {{{2|}}} | leta}} {{ISOdate|1={{{2|}}}|2=sl|form=gen}} | ||
|sv=första kvartalet av {{ISOdate|1={{{2|}}}|2=sv}} | |sv=första kvartalet av {{ISOdate|1={{{2|}}}|2=sv}} | ||
|uk= I чв. {{ISOdate|1={{{2|}}}|2=uk|form=gen}} | |||
|vi= quý 1 năm {{ISOdate|1={{{2|}}}|2=vi}} | |vi= quý 1 năm {{ISOdate|1={{{2|}}}|2=vi}} | ||
|lang={{{lang|}}} | |lang={{{lang|}}} | ||
| Line 523: | Line 532: | ||
|sl= druga četrtina {{IfNum | {{{2|}}} | leta}} {{ISOdate|1={{{2|}}}|2=sl|form=gen}} | |sl= druga četrtina {{IfNum | {{{2|}}} | leta}} {{ISOdate|1={{{2|}}}|2=sl|form=gen}} | ||
|sv= andra kvartalet av {{ISOdate|1={{{2|}}}|2=sv}} | |sv= andra kvartalet av {{ISOdate|1={{{2|}}}|2=sv}} | ||
|uk= II чв. {{ISOdate|1={{{2|}}}|2=uk|form=gen}} | |||
|vi= quý 2 năm {{ISOdate|1={{{2|}}}|2=vi}} | |vi= quý 2 năm {{ISOdate|1={{{2|}}}|2=vi}} | ||
|lang={{{lang|}}} | |lang={{{lang|}}} | ||
| Line 540: | Line 550: | ||
|ru= третья четверть {{ISOdate|1={{{2|}}}|2=ru|form=gen}} | |ru= третья четверть {{ISOdate|1={{{2|}}}|2=ru|form=gen}} | ||
|sv= tredje kvartalet av {{ISOdate|1={{{2|}}}|2=sv}} | |sv= tredje kvartalet av {{ISOdate|1={{{2|}}}|2=sv}} | ||
|uk= III чв. {{ISOdate|1={{{2|}}}|2=uk|form=gen}} | |||
|vi= quý 3 năm {{ISOdate|1={{{2|}}}|2=vi}} | |vi= quý 3 năm {{ISOdate|1={{{2|}}}|2=vi}} | ||
|lang={{{lang|}}} | |lang={{{lang|}}} | ||
| Line 557: | Line 568: | ||
|sl= zadnja četrtina {{IfNum | {{{2|}}} | leta}} {{ISOdate|1={{{2|}}}|2=sl|form=gen}} | |sl= zadnja četrtina {{IfNum | {{{2|}}} | leta}} {{ISOdate|1={{{2|}}}|2=sl|form=gen}} | ||
|sv= fjärde kvartalet av {{ISOdate|1={{{2|}}}|2=sv}} | |sv= fjärde kvartalet av {{ISOdate|1={{{2|}}}|2=sv}} | ||
|uk= IV чв. {{ISOdate|1={{{2|}}}|2=uk|form=gen}} | |||
|vi= quý 4 năm {{ISOdate|1={{{2|}}}|2=vi}} | |vi= quý 4 năm {{ISOdate|1={{{2|}}}|2=vi}} | ||
|lang={{{lang|}}} | |lang={{{lang|}}} | ||
| Line 592: | Line 604: | ||
|sl={{{2|}}}-ta leta | |sl={{{2|}}}-ta leta | ||
|sv={{{2|}}}-talet{{#switch:{{{2|}}}|1300|1400|1500|1600|1700|1800|1900|2000|2100= (decennium)}} | |sv={{{2|}}}-talet{{#switch:{{{2|}}}|1300|1400|1500|1600|1700|1800|1900|2000|2100= (decennium)}} | ||
|ru={{{2|}}}-і роки | |||
|vi=thập niên {{{2|}}} | |vi=thập niên {{{2|}}} | ||
|zh={{{2|}}}年代 | |zh={{{2|}}}年代 | ||
| Line 629: | Line 642: | ||
|sl={{Ordinal|{{{2|}}}|lang=sl}}. stoletje | |sl={{Ordinal|{{{2|}}}|lang=sl}}. stoletje | ||
|sv={{#expr:{{{2|}}} - 1}}00-talet | |sv={{#expr:{{{2|}}} - 1}}00-talet | ||
|uk={{Roman year|{{{2|}}}}} ст. | |||
|vi=thế kỷ {{{2|}}} | |vi=thế kỷ {{{2|}}} | ||
|zh={{{2|}}}世纪 | |zh={{{2|}}}世纪 | ||
| Line 650: | Line 664: | ||
|sl={{Ordinal|{{{2|}}}|lang=sl}}. tisočletje | |sl={{Ordinal|{{{2|}}}|lang=sl}}. tisočletje | ||
|sv={{Ordinal|{{{2|}}}|lang=sv}} årtusendet | |sv={{Ordinal|{{{2|}}}|lang=sv}} årtusendet | ||
|uk={{Roman year|{{{2|}}}}} тис. | |||
|vi=thiên niên kỷ {{{2|}}} | |vi=thiên niên kỷ {{{2|}}} | ||
|zh={{#switch: {{lc:{{{era|{{{2|}}}}}} }} | bp|bc|bce|before present=<!-- added in template:Era-->|#default=第}}{{{2|}}}千年 | |zh={{#switch: {{lc:{{{era|{{{2|}}}}}} }} | bp|bc|bce|before present=<!-- added in template:Era-->|#default=第}}{{{2|}}}千年 | ||
| Line 667: | Line 682: | ||
|sl=pozno {{Ordinal|{{{2|}}} }}. in zgodnje {{Ordinal|{{#expr:{{{2|}}}-1}} }}. stoletje | |sl=pozno {{Ordinal|{{{2|}}} }}. in zgodnje {{Ordinal|{{#expr:{{{2|}}}-1}} }}. stoletje | ||
|sv={{{2|}}}/{{Ordinal|{{#expr:{{{2|}}}-1}} }} årtusendets sekelskifte | |sv={{{2|}}}/{{Ordinal|{{#expr:{{{2|}}}-1}} }} årtusendets sekelskifte | ||
|uk=кін. {{Roman year|{{{2|}}}}} ст. — поч. {{Roman year|{{#expr:{{{2|}}}-1}} }} ст. | |||
|vi=bước sang thế kỷ {{#expr:{{{2|}}}-1}} | |vi=bước sang thế kỷ {{#expr:{{{2|}}}-1}} | ||
|lang={{{lang|}}} | |lang={{{lang|}}} | ||
| Line 681: | Line 697: | ||
|sl=pozno {{Ordinal|{{#expr:{{{2|}}}-1}} }}. in zgodnje {{Ordinal|{{{2|}}} }}. stoletje | |sl=pozno {{Ordinal|{{#expr:{{{2|}}}-1}} }}. in zgodnje {{Ordinal|{{{2|}}} }}. stoletje | ||
|sv={{#expr:{{{2|}}}-1}}/{{Ordinal|{{{2|}}} }} årtusendets sekelskifte | |sv={{#expr:{{{2|}}}-1}}/{{Ordinal|{{{2|}}} }} årtusendets sekelskifte | ||
|uk=кін. {{Roman year|{{#expr:{{{2|}}}-1}} }} ст. — поч. {{Roman year|{{{2|}}}}} ст. | |||
|vi=bước sang thế kỷ {{{2|}}} | |vi=bước sang thế kỷ {{{2|}}} | ||
|lang={{{lang|}}} | |lang={{{lang|}}} | ||
Revision as of 14:46, 20 November 2014
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= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
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 | required |
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 | required |
3 | date 2 | Depends on type. If used than it is a date in ISO 8601 format. See Parameter #2 for details. | empty | optional |
era | era |
| empty | optional |
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 | optional |
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) | optional |
|
<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}} |
|
?
|
{{other date|?|1800|1825}} | |
between
|
{{other date|between|1999|2000}} {{other date|between|1999-02|2000-03}} {{other date|between|1999-02-01|2000-03-01}} |
|
~
|
{{other date|~|1999|2000}} {{other date|ca|1999-05|2000-06}} {{other date|circa|1999-05-01|2000-06-1}} |
|
or
|
{{other date|or|1999|2000}} {{other date|or|1999-06|2000-07}} {{other date|or|1999-06-01|2000-07-1}} |
|
and
|
{{other date|&|1999|2000}} {{other date|and|1999-06|2000-07}} {{other date|and|1999-06-01|2000-07-01}} |
|
Julian
|
{{other date|Julian|1865-01-19|1865-01-07}} | |
Islamic
|
{{other date|islamic|1486|892}} {{other date|islamic|1486}} |
Template:Era Template:Era |
era parameter
|
{{other date|or|985|986|era=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 |
|---|---|---|---|---|
<
|
{{other date|<|2000}} {{other date|b|2000-03}} {{other date|before|2000-03-01}} |
Template:Era Template:Era Template:Era |
{{other date|<|99|era=BC}} | Template:Era |
>
|
{{other date|>|1999}} {{other date|a|1999-04}} {{other date|after|1999-04-01}} |
Template:Era Template:Era Template:Era |
{{other date|>|99|era=BC}} | Template:Era |
by
|
{{other date|by|1999}} {{other date|by|1999-04}} {{other date|by|1999-04-01}} |
Template:Era Template:Era Template:Era |
{{other date|by|99|era=BC}} | Template:Era |
from
|
{{other date|from|1999}} {{other date|from|1999-04}} {{other date|from|1999-04-01}} |
Template:Era Template:Era Template:Era |
{{other date|from|99|era=BC}} | Template:Era |
until
|
{{other date|until|1999}} {{other date|until|1999-04}} {{other date|until|1999-04-01}} |
Template:Era Template:Era Template:Era |
{{other date|until|99|era=BC}} | Template:Era |
~
|
{{other date|~|1999}} {{other date|ca|1999-05}} {{other date|circa|1999-05-01}} |
Template:Era Template:Era Template:Era |
{{other date|~|99|era=BC}} | Template:Era |
s
|
{{other date|s|1960}} {{other date|decade|1800}} |
Template:Era Template:Era |
{{other date|s|960|era=BCE}} | Template:Era |
century
|
{{other date|century|1}} {{other date|century|20}} |
Template:Era Template:Era |
{{other date|century|1|era=BC}} | Template:Era |
millennium
|
{{other date|millennium|1}} | Template:Era | {{other date|millennium|2|era=BC}} | Template:Era |
turn of the decade
|
{{other date|turn of the decade|1920}} {{other date|turn of the decade|1800}} |
Template:Era Template:Era |
{{other date|turn of the decade|920|era=BC}} | Template:Era |
turn of the century
|
{{other date|turn of the century|2}} {{other date|turn of the century|20}} |
Template:Era Template:Era |
{{other date|turn of the century|2|era=BC}} | Template:Era |
turn of the year
|
{{other date|turn of the year|1992}} | Template:Era | {{other date|turn of the year|922|era=BC}} | Template:Era |
spring
|
{{other date|spring|1999}} | Template:Era | {{other date|spring|99|era=AD}} | Template:Era |
summer
|
{{other date|summer|1999}} | Template:Era | {{other date|summer|99|era=BC}} | Template:Era |
fall
|
{{other date|fall|1999}} {{other date|autumn|1999}} |
Template:Era Template:Era |
{{other date|fall|99|era=AD}} | Template:Era |
winter
|
{{other date|winter|1999}} | Template:Era | {{other date|winter|99|era=BC}} | Template:Era |
beginning
|
{{other date|early|1999-08}} {{other date|beginning|1999}} |
Template:Era Template:Era |
{{other date|early|99|era=BC}} | Template:Era |
mid
|
{{other date|mid|1999-10}} {{other date|middle|1999}} |
Template:Era Template:Era |
{{other date|mid|99|era=BC}} | Template:Era |
end
|
{{other date|end|1999-11}} {{other date|late|1999}} |
Template:Era Template:Era |
{{other date|end|99|era=BCE}} | Template:Era |
firsthalf
|
{{other date|firsthalf|1999-11}} {{other date|1half|1999}} |
Template:Era Template:Era |
{{other date|firsthalf|99|era=BC}} | Template:Era |
secondhalf
|
{{other date|secondhalf|1999-11}} {{other date|2half|1999}} |
Template:Era Template:Era |
{{other date|secondhalf|99|era=BCE}} | Template:Era |
1quarter
|
{{other date|1quarter|1815-09}} {{other date|1quarter|1815}} |
Template:Era Template:Era |
{{other date|1quarter|99|era=BC}} | Template:Era |
2quarter
|
{{other date|2quarter|1815-09}} {{other date|2quarter|1815}} |
Template:Era Template:Era |
{{other date|2quarter|99|era=BC}} | Template:Era |
3quarter
|
{{other date|3quarter|1815-09}} {{other date|3quarter|1815}} |
Template:Era Template:Era |
{{other date|3quarter|99|era=BC}} | Template:Era |
4quarter
|
{{other date|4quarter|1815-09}} {{other date|4quarter|1815}} |
Template:Era Template:Era |
{{other date|4quarter|99|era=BC}} | Template:Era |
BC
|
{{other date|BC|44-03-15}} {{other date|BCE|44}} |
Template:Era Template:Era |
||
AD
|
{{other date|AD|944-03}} {{other date|CE|944}} |
Template:Era Template:Era |
||
?
|
{{other date|?|2015}} | Template:Era[1] | {{other date|?|2015|era=BC}} | Template:Era[1] |
date notations without date
| {{{1}}} parameter | Example Code | Output | Example Code with era | Output with era |
|---|---|---|---|---|
?
|
{{other date|?}} {{other date|unknown}} |
Template:Era Template:Era |
{{other date|?||era=BC}} | Template:Era |
year unknown
|
{{other date|year unknown}} | Template:Era | {{other date|year unknown|era=BC}} | Template:Era |
compound constructions
| Example Code | Output | Example Code with era | Output with era |
|---|---|---|---|
| {{Other date|2half|{{Other date|century|15}}}} | Template:Era | {{Other date|2half|{{Other date|century|15}}|era=BC}} | Template:Era |
| {{otherdate|mid|{{otherdate|decade|1980}}}} | Template:Era | {{otherdate|mid|{{otherdate|decade|1980}}|era=BC}} | Template:Era |