Template:Other date/doc
Lisää toimintoja
(Tämä osa dokumentaatiosta on saatavilla vain osalla kielistä.)
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).
Malline asettaa automaattisesti seuraavat luokat:
- 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
Käyttö
{{Other date |1= |2= }}
Mallineen parametrit
| Parametri | Kuvaus | Oletusarvo | Tila | |
|---|---|---|---|---|
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 | pakollinen |
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 | pakollinen |
3 | date 2 | Depends on type. If used than it is a date in ISO 8601 format. See Parameter #2 for details. | empty | valinnainen |
era | era |
| empty | valinnainen |
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 | valinnainen |
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) | valinnainen |
|
<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).
| |||||||||||||||||||||||||||||||||||
Lisätietoja
Malline on tarkoitettu käytettäväksi seuraavissa nimiavaruuksissa: kaikki nimiavaruudet
The template is intended to be used by the following user groups: kaikki käyttäjät
Relies on:
See also
(Tämä osa dokumentaatiosta on saatavilla vain osalla kielistä.)
== Lokalisaatio ==
(Tämä osa dokumentaatiosta on saatavilla vain osalla kielistä.)
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}} |
1999–2000 |
?
|
{{other date|?|1800|1825}} |
Tuntematon päiväys[1] |
between
|
{{other date|between|1999|2000}} {{other date|between|1999-02|2000-03}} {{other date|between|1999-02-01|2000-03-01}} |
vuosien 1999 ja 2000 välisenä aikana |
~
|
{{other date|~|1999|2000}} {{other date|ca|1999-05|2000-06}} {{other date|circa|1999-05-01|2000-06-1}} |
suunnilleen vuosien 1999 ja 2000 välisenä aikana |
or
|
{{other date|or|1999|2000}} {{other date|or|1999-06|2000-07}} {{other date|or|1999-06-01|2000-07-1}} |
1999 tai 2000 |
and
|
{{other date|&|1999|2000}} {{other date|and|1999-06|2000-07}} {{other date|and|1999-06-01|2000-07-01}} |
1999 ja 2000 |
Julian
|
{{other date|Julian|1865-01-19|1865-01-07}} |
19. tammikuuta 1865 (7. tammikuuta 1865 juliaanisen kalenterin mukaan) |
Islamic
|
{{other date|islamic|1486|892}} {{other date|islamic|1486}} |
1486 jaa. (892 AH) 1486 jaa. (891 AH) |
era parameter
|
{{other date|or|985|986|era=BC}} |
985 tai 986 eaa. |
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}} |
ennen vuotta 2000 ennen maaliskuuta 2000 ennen 1. maaliskuutata 2000 |
{{other date|<|99|era=BC}} | ennen vuotta 99 eaa. |
>
|
{{other date|>|1999}} {{other date|a|1999-04}} {{other date|after|1999-04-01}} |
vuoden 1999 jälkeen huhtikuun 1999 jälkeen 1. huhtikuunta 1999 jälkeen |
{{other date|>|99|era=BC}} | vuoden 99 jälkeen eaa. |
by
|
{{other date|by|1999}} {{other date|by|1999-04}} {{other date|by|1999-04-01}} |
vuoteen 1999 mennessä huhtikuuhun 1999 mennessä 1. huhtikuuhunta 1999 mennessä |
{{other date|by|99|era=BC}} | vuoteen 99 mennessä eaa. |
from
|
{{other date|from|1999}} {{other date|from|1999-04}} {{other date|from|1999-04-01}} |
vuodesta 1999 alkaen huhtikuusta 1999 alkaen 1. huhtikuustata 1999 alkaen |
{{other date|from|99|era=BC}} | vuodesta 99 alkaen eaa. |
until
|
{{other date|until|1999}} {{other date|until|1999-04}} {{other date|until|1999-04-01}} |
until 1999 until huhtikuu 1999 until 1. huhtikuuta 1999 |
{{other date|until|99|era=BC}} | until 99 eaa. |
~
|
{{other date|~|1999}} {{other date|ca|1999-05}} {{other date|circa|1999-05-01}} |
suunnilleen vuonna 1999 suunnilleen toukokuussa 1999 suunnilleen 1. toukokuussata 1999 |
{{other date|~|99|era=BC}} | suunnilleen vuonna 99 eaa. |
s
|
{{other date|s|1960}} {{other date|decade|1800}} |
1960-luvulla 1800-luvulla |
{{other date|s|960|era=BCE}} | 960-luvulla eaa. |
century
|
{{other date|century|1}} {{other date|century|20}} |
0-luvulla 1900-luvulla |
{{other date|century|1|era=BC}} | 0-luvulla eaa. |
millennium
|
{{other date|millennium|1}} | 1 millennium | {{other date|millennium|2|era=BC}} | 2 millennium eaa. |
turn of the decade
|
{{other date|turn of the decade|1920}} {{other date|turn of the decade|1800}} |
1910-luvun loppu ja 1920-luvun alku 1790-luvun loppu ja 1800-luvun alku |
{{other date|turn of the decade|920|era=BC}} | 920-luvun loppu ja 910-luvun alku eaa. |
turn of the century
|
{{other date|turn of the century|2}} {{other date|turn of the century|20}} |
0-luvun loppu ja 100-luvun alku 1800-luvun loppu ja 1900-luvun alku |
{{other date|turn of the century|2|era=BC}} | 100-luvun loppu ja 0-luvun alku eaa. |
turn of the year
|
{{other date|turn of the year|1992}} | vuoden 1991 loppu ja vuoden 1992 alku | {{other date|turn of the year|922|era=BC}} | vuoden 922 loppu ja vuoden 921 alku eaa. |
spring
|
{{other date|spring|1999}} | Kevät 1999 | {{other date|spring|99|era=AD}} | Kevät 99 jaa. |
summer
|
{{other date|summer|1999}} | Kesä 1999 | {{other date|summer|99|era=BC}} | Kesä 99 eaa. |
fall
|
{{other date|fall|1999}} {{other date|autumn|1999}} |
Syksy 1999 Syksy 1999 |
{{other date|fall|99|era=AD}} | Syksy 99 jaa. |
winter
|
{{other date|winter|1999}} | Talvi 1999 | {{other date|winter|99|era=BC}} | Talvi 99 eaa. |
beginning
|
{{other date|early|1999-08}} {{other date|beginning|1999}} |
elokuun 1999 alku vuoden 1999 alku |
{{other date|early|99|era=BC}} | vuoden 99 alku eaa. |
mid
|
{{other date|mid|1999-10}} {{other date|middle|1999}} |
lokakuun 1999 puoliväli vuoden 1999 puoliväli |
{{other date|mid|99|era=BC}} | vuoden 99 puoliväli eaa. |
end
|
{{other date|end|1999-11}} {{other date|late|1999}} |
marraskuun 1999 loppu vuoden 1999 loppu |
{{other date|end|99|era=BCE}} | vuoden 99 loppu eaa. |
firsthalf
|
{{other date|firsthalf|1999-11}} {{other date|1half|1999}} |
marraskuun 1999 alkupuolisko vuoden 1999 alkupuolisko |
{{other date|firsthalf|99|era=BC}} | vuoden 99 alkupuolisko eaa. |
secondhalf
|
{{other date|secondhalf|1999-11}} {{other date|2half|1999}} |
marraskuun 1999 loppupuolisko vuoden 1999 loppupuolisko |
{{other date|secondhalf|99|era=BCE}} | vuoden 99 loppupuolisko eaa. |
1quarter
|
{{other date|1quarter|1815-09}} {{other date|1quarter|1815}} |
syyskuun 1815 ensimmäinen neljännes vuoden 1815 ensimmäinen neljännes |
{{other date|1quarter|99|era=BC}} | vuoden 99 ensimmäinen neljännes eaa. |
2quarter
|
{{other date|2quarter|1815-09}} {{other date|2quarter|1815}} |
syyskuun 1815 toinen neljännes vuoden 1815 toinen neljännes |
{{other date|2quarter|99|era=BC}} | vuoden 99 toinen neljännes eaa. |
3quarter
|
{{other date|3quarter|1815-09}} {{other date|3quarter|1815}} |
syyskuun 1815 kolmas neljännes vuoden 1815 kolmas neljännes |
{{other date|3quarter|99|era=BC}} | vuoden 99 kolmas neljännes eaa. |
4quarter
|
{{other date|4quarter|1815-09}} {{other date|4quarter|1815}} |
syyskuun 1815 viimeinen neljännes vuoden 1815 viimeinen neljännes |
{{other date|4quarter|99|era=BC}} | vuoden 99 viimeinen neljännes eaa. |
BC
|
{{other date|BC|44-03-15}} {{other date|BCE|44}} |
15. maaliskuuta 44 eaa. 44 eaa. |
||
AD
|
{{other date|AD|944-03}} {{other date|CE|944}} |
maaliskuu 944 jaa. 944 jaa. |
||
?
|
{{other date|?|2015}} | Tuntematon päiväys[1] | {{other date|?|2015|era=BC}} | Tuntematon päiväys eaa.[1] |
date notations without date
| {{{1}}} parameter | Example Code | Output | Example Code with era | Output with era |
|---|---|---|---|---|
?
|
{{other date|?}} {{other date|unknown}} |
Tuntematon päiväys Tuntematon päiväys |
{{other date|?||era=BC}} | Tuntematon päiväys eaa. |
year unknown
|
{{other date|year unknown}} | tuntematon vuosi | {{other date|year unknown|era=BC}} | tuntematon vuosi eaa. |
compound constructions
| Example Code | Output | Example Code with era | Output with era |
|---|---|---|---|
| {{Other date|2half|{{Other date|century|15}}}} | 1400-luvulla loppupuolisko | {{Other date|2half|{{Other date|century|15}}|era=BC}} | 1400-luvulla loppupuolisko eaa. |
| {{otherdate|mid|{{otherdate|decade|1980}}}} | 1980-luvulla puoliväli | {{otherdate|mid|{{otherdate|decade|1980}}|era=BC}} | 1980-luvulla puoliväli eaa. |