Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Other date: Difference between revisions

Template page
polish translation
No edit summary
Line 4: Line 4:
       |en=from {{ISOdate|{{{2|}}}|en}} until {{ISOdate|{{{3|}}}|en}}
       |en=from {{ISOdate|{{{2|}}}|en}} until {{ISOdate|{{{3|}}}|en}}
       |nds={{ISOdate|{{{2|}}}|nds}} bet {{ISOdate|{{{3|}}}|nds}}
       |nds={{ISOdate|{{{2|}}}|nds}} bet {{ISOdate|{{{3|}}}|nds}}
       |pl=od {{ISOdate|{{{2|}}}|nds}} do {{ISOdate|{{{3|}}}|nds}}
       |pl=od {{ISOdate|{{{2|}}}|pl}} do {{ISOdate|{{{3|}}}|pl}}
       |lang={{{4|}}}
       |lang={{{4|}}}
   }}
   }}
Line 12: Line 12:
       |hi={{ISOdate|{{{2|}}}|hi}} और {{ISOdate|{{{3|}}}|hi}} के बीच
       |hi={{ISOdate|{{{2|}}}|hi}} और {{ISOdate|{{{3|}}}|hi}} के बीच
       |nds=twischen {{ISOdate|{{{2|}}}|nds}} un {{ISOdate|{{{3|}}}|nds}}
       |nds=twischen {{ISOdate|{{{2|}}}|nds}} un {{ISOdate|{{{3|}}}|nds}}
       |pl=między {{ISOdate|{{{2|}}}|nds}} a {{ISOdate|{{{3|}}}|nds}}
       |pl=między {{ISOdate|{{{2|}}}|pl}} a {{ISOdate|{{{3|}}}|pl}}
       |lang={{{4|}}}
       |lang={{{4|}}}
   }}
   }}

Revision as of 03:30, 25 April 2009

Template documentation[ view · edit · history · purge ]
This documentation is transcluded from Template:Other date/doc.

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= }}

Template parameters

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 sourcing circumstances 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

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).

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
type1

Type of date notation. See examples on the template's page for list of allowed options.

Linerequired
date 12

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.

Linerequired
date 23

Depends on type. If used than it is a date in ISO 8601 format. See Parameter #2 for details.

Lineoptional
certaintycertainty

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.

Lineoptional
eraera

Era: BC (Before Christ), BCE (Before Common Era), CE (Common Era), AD (Anno Domini), BP (Before Present) or AH (Anno Hegirae – Islamic calendar)

Lineoptional
languagelang

Language code (only needs to be provided if the language shall be fixed and independent of the user's preferences)

Default
(language code of the user language)
Lineoptional

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

from 1999 until 2000
from January 1999 until February 2000
from 1 January 1999 until 1 February 2000

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

unknown[1]

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 February 1999 and March 2000
between 1 February 1999 and 1 March 2000

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

ca. between 1999 and 2000
ca. between May 1999 and June 2000
ca. between 1 May 1999 and 1 June 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
June 1999 or July 2000
1 June 1999 or 1 July 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
June 1999 and July 2000
1 June 1999 and 1 July 2000

Julian {{other date|Julian|1865-01-19|1865-01-07}}
Islamic {{other date|islamic|1486|892}}
{{other date|islamic|1486}}

era parameter {{other date|or|985|986|era=BC}}

985 or 986

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 March 2000
before 1 March 2000
{{other date|<|99|era=BC}} before 0099
>
a
after
{{other date|>|1999}}
{{other date|a|1999-04}}
{{other date|after|1999-04-01}}
after 1999
after April 1999
after 1 April 1999
{{other date|>|99|era=BC}} after 0099
by {{other date|by|1999}}
{{other date|by|1999-04}}
{{other date|by|1999-04-01}}


{{other date|by|99|era=BC}}
from {{other date|from|1999}}
{{other date|from|1999-04}}
{{other date|from|1999-04-01}}


{{other date|from|99|era=BC}}
until {{other date|until|1999}}
{{other date|until|1999-04}}
{{other date|until|1999-04-01}}


{{other date|until|99|era=BC}}
~
ca
circa
{{other date|~|1999}}
{{other date|ca|1999-05}}
{{other date|circa|1999-05-01}}
ca. 1999
ca. May 1999
ca. 1 May 1999
{{other date|~|99|era=BC}} ca. 0099
s
decade
{{other date|s|1960}}
{{other date|decade|1800}}
1960s
1800s
{{other date|s|960|era=BCE}} 960s
century {{other date|century|1}}
{{other date|century|20}}
1 century
20 century
{{other date|century|1|era=BC}} 1 century
millennium {{other date|millennium|1}} {{other date|millennium|2|era=BC}}
turn of the decade {{other date|turn of the decade|1920}}
{{other date|turn of the decade|1800}}

{{other date|turn of the decade|920|era=BC}}
turn of the century {{other date|turn of the century|2}}
{{other date|turn of the century|20}}

{{other date|turn of the century|2|era=BC}}
turn of the year {{other date|turn of the year|1992}} {{other date|turn of the year|922|era=BC}}
spring {{other date|spring|1999}} {{other date|spring|99|era=AD}}
summer {{other date|summer|1999}} {{other date|summer|99|era=BC}}
fall
autumn
{{other date|fall|1999}}
{{other date|autumn|1999}}

{{other date|fall|99|era=AD}}
winter {{other date|winter|1999}} {{other date|winter|99|era=BC}}
beginning
early
{{other date|early|1999-08}}
{{other date|beginning|1999}}

{{other date|early|99|era=BC}}
mid
middle
{{other date|mid|1999-10}}
{{other date|middle|1999}}

{{other date|mid|99|era=BC}}
end
late
{{other date|end|1999-11}}
{{other date|late|1999}}

{{other date|end|99|era=BCE}}
firsthalf
1half
1sthalf
first half
1st half
{{other date|firsthalf|1999-11}}
{{other date|1half|1999}}

{{other date|firsthalf|99|era=BC}}
secondhalf
2half
2ndhalf
second half
2nd half
{{other date|secondhalf|1999-11}}
{{other date|2half|1999}}

{{other date|secondhalf|99|era=BCE}}
1quarter
quarter1
1stquarter
1st quarter
{{other date|1quarter|1815-09}}
{{other date|1quarter|1815}}

{{other date|1quarter|99|era=BC}}
2quarter
quarter2
2ndquarter
2nd quarter
{{other date|2quarter|1815-09}}
{{other date|2quarter|1815}}

{{other date|2quarter|99|era=BC}}
3quarter
quarter3
3rdquarter
3rd quarter
{{other date|3quarter|1815-09}}
{{other date|3quarter|1815}}

{{other date|3quarter|99|era=BC}}
4quarter
quarter4
4thquarter
4th quarter
{{other date|4quarter|1815-09}}
{{other date|4quarter|1815}}

{{other date|4quarter|99|era=BC}}
BC
BCE
{{other date|BC|44-03-15}}
{{other date|BCE|44}}

AD
CE
{{other date|AD|944-03}}
{{other date|CE|944}}

? {{other date|?|2015}} unknown[1] {{other date|?|2015|era=BC}} unknown[1]

date notations without date

{{{1}}} parameter Example Code Output Example Code with era Output with era
?
unknown
{{other date|?}}
{{other date|unknown}}
unknown
{{other date|?||era=BC}} unknown
year unknown {{other date|year unknown}} {{other date|year unknown|era=BC}}

compound constructions

Example Code Output Example Code with era Output with era
{{Other date|2half|{{Other date|century|15}}}} {{Other date|2half|{{Other date|century|15}}|era=BC}}
{{otherdate|mid|{{otherdate|decade|1980}}}} {{otherdate|mid|{{otherdate|decade|1980}}|era=BC}}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.