Template:Other date/doc: Difference between revisions
More actions
Danish was added |
+from |
||
| Line 52: | Line 52: | ||
| <nowiki> {{other date|>|1939-04-01}} </nowiki> | | <nowiki> {{other date|>|1939-04-01}} </nowiki> | ||
| {{other date|>|1939-04-01}} | | {{other date|>|1939-04-01}} | ||
| [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] ([[w:ISO 8601|ISO 8601]] date) | |||
|- | |||
| <tt>from</tt> | |||
| <nowiki> {{other date|from|1939-04-01}} </nowiki> | |||
| {{other date|from|1939-04-01}} | |||
| [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] ([[w:ISO 8601|ISO 8601]] date) | | [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] ([[w:ISO 8601|ISO 8601]] date) | ||
|- | |- | ||
Revision as of 17:21, 8 April 2010
This template allows to specify a range of non-trivial date notations in a format that is localizable.
Usage
{{Other date |1= |2= |4= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | type of date notation | empty | required | |
2 | depends on {{{1}}} | empty | optional | |
3 | depends on {{{1}}} | empty | optional | |
4 | language code (only needs to be provided if the language shall be fixed and independant from the user's preferences) | value of {{int:Lang}} | optional | |
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:
{{ISOdate}}, {{LangSwitch}}
See also
Localization
To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation " (xx being the code of your language)
Examples
| {{{1}}} | Code | Output | Expected date format |
|---|---|---|---|
| - | {{other date|-|1939-01|1945-02}} | from January 1939 until February 1945 | [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
| between | {{other date|between|1939-09-01|1945-08-02}} | between 1 September 1939 and 2 August 1945 | [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
| < b before |
{{other date|<|1945-03-02}} | before 2 March 1945 | [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
| > a after |
{{other date|>|1939-04-01}} | after 1 April 1939 | [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
| from | {{other date|from|1939-04-01}} | from 1 April 1939 | [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
| ~ ca circa |
{{other date|ca|1939-05-01}} | circa 1 May 1939 | [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
| by | {{other date|by|1939-05-01}} | by 1 May 1939 | [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
| or | {{other date|or|1939|1940}} | 1939 or 1940 | [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
| and & |
{{other date|and|1939|1940}} | 1939 and 1940 | [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
| s decade |
{{other date|s|1940}} | 1940s | [YYY0] (starting year of the decade) |
| century | {{other date|century|20}} | 20th century | [cc] (century as two-digit number). 1900's = 20th century |
| season | {{other date|season|fall|1939}} | Error in Module:Complex date: season is not recognized. | {{{2}}} can be "spring", "summer", "fall", "autumn", "winter" {{{3}}} must be a four-digit year |
| begining early |
{{other date|early|1939-09}} | early September 1939 | [YYYY]-[MM] |
| mid middle |
{{other date|mid|1939-10}} | mid October 1939 | [YYYY]-[MM] |
| end late |
{{other date|late|1939-11}} | late November 1939 | [YYYY]-[MM] |
| firsthalf 1half |
{{other date|firsthalf|1939-12}} | first half of December 1939 | [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
| secondhalf 2half |
{{other date|secondhalf|1939-12}} | second half of December 1939 | [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
| Julian | {{other date|Julian|1863-02-17|1863-03-01}} | 17 February 1863 (1 March 1863 in Julian calendar) | [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date) |
| ? | {{other date|?}} | Unknown date | No date |
Localization
Other date template supports at the moment: Danish, English, German, Low German, Polish and Spanish languages. Translations into other languages are needed. See template:Other date/test for outputs in multiple languages.