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/doc: Difference between revisions

Template page
cats
No edit summary
Line 16: Line 16:
|usergroup=all
|usergroup=all
|usage-notes=
|usage-notes=
Possible values for <nowiki>{{{1}}}</nowiki>:
* "<tt>-</tt>": from <nowiki>{{{2}}}</nowiki> until <nowiki>{{{3}}}</nowiki> (<nowiki>{{{2}}}</nowiki> and <nowiki>{{{3}}}</nowiki> can be ISO 8601 dates)
* "<tt>between</tt>": between <nowiki>{{{2}}}</nowiki> and <nowiki>{{{3}}}</nowiki> (<nowiki>{{{2}}}</nowiki> and <nowiki>{{{3}}}</nowiki> can be ISO 8601 dates)
* "<tt>s</tt>": decade (<nowiki>{{{2}}}</nowiki>s), <nowiki>{{{2}}}</nowiki> must be a four-digit year (starting year of the decade)
* "<tt>century</tt>": century (<nowiki>{{{2}}}</nowiki>th century), <nowiki>{{{2}}}</nowiki> must be a two-digit number
* "<tt>ca</tt>": circa <nowiki>{{{2}}}</nowiki>
* "<tt>season</tt>": season <nowiki>{{{2}}}</nowiki> of the year <nowiki>{{{3}}}</nowiki> (can be "summer", "fall", "spring", "winter", <nowiki>{{{3}}}</nowiki> must be a four-digit year)
* "<tt><</tt>": before <nowiki>{{{2}}}</nowiki> (<nowiki>{{{2}}}</nowiki> can be an ISO 8601 date)
* "<tt>></tt>": after <nowiki>{{{2}}}</nowiki> (<nowiki>{{{2}}}</nowiki> can be an ISO 8601 date)
* "<tt>or</tt>": <nowiki>{{{2}}}</nowiki> or <nowiki>{{{3}}}</nowiki> (<nowiki>{{{2}}}</nowiki> and <nowiki>{{{3}}}</nowiki> can be ISO 8601 dates)
* "<tt>and</tt>": <nowiki>{{{2}}}</nowiki> and <nowiki>{{{3}}}</nowiki> (<nowiki>{{{2}}}</nowiki> and <nowiki>{{{3}}}</nowiki> can be ISO 8601 dates)
* "<tt>?</tt>": unknown date
|type=formatting
|type=formatting
|example=
|example=
Line 39: Line 26:
|relieson={{tl|ISOdate}}, {{tl|LangSwitch}}
|relieson={{tl|ISOdate}}, {{tl|LangSwitch}}
}}
}}
== Examples ==
{|border="1" style="right"
|-
! <nowiki>{{{1}}}</nowiki>
! Code
! Output
! Expected date format
|-
| <tt>-</tt>
| <nowiki> {{other date|-|1939-09-01|1945-09-02}} </nowiki>
| {{other date|-|1939-09-01|1945-09-02}}
| [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] ([[w:ISO 8601|ISO 8601]] date)
|-
| <tt>between</tt>
| <nowiki> {{other date|between|1939-09|1945-09}} </nowiki>
| {{other date|between|1939-09|1945-09}}
| [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] ([[w:ISO 8601|ISO 8601]] date)
|-
| <tt><</tt>
| <nowiki> {{other date|<|1945-09-02}} </nowiki>
| {{other date|<|1945-09-02}}
| [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] ([[w:ISO 8601|ISO 8601]] date)
|-
| <tt>></tt>
| <nowiki> {{other date|>|1939-09-01}} </nowiki>
| {{other date|>|1939-09-01}}
| [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] ([[w:ISO 8601|ISO 8601]] date)
|-
| <tt>ca</tt>
| <nowiki> {{other date|ca|1939-09-01}} </nowiki>
| {{other date|ca|1939-09-01}}
| [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] ([[w:ISO 8601|ISO 8601]] date)
|-
| <tt>or</tt>
| <nowiki> {{other date|or|1939|1940}} </nowiki>
| {{other date|or|1939|1940}}
| [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] ([[w:ISO 8601|ISO 8601]] date)
|-
| <tt>and</tt>
| <nowiki> {{other date|and|1939|1940}} </nowiki>
| {{other date|and|1939|1940}}
| [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] ([[w:ISO 8601|ISO 8601]] date)
|-
| <tt>s</tt>
| <nowiki> {{other date|s|1940}} </nowiki>
| {{other date|s|1940}}
| [YYY0] (starting year of the decade)
|-
| <tt>century</tt>
| <nowiki> {{other date|century|20}} </nowiki>
| {{other date|century|20}}
| [cc] (century as two-digit number). 1900's = {{other date|century|20}}
|-
| <tt>season</tt>
| <nowiki> {{other date|season|fall|1939}} </nowiki>
| {{other date|season|fall|1939}}
| <nowiki>{{{2}}}</nowiki> can be "summer", "fall", "spring", "winter", <nowiki>{{{3}}}</nowiki> must be a four-digit year
|-
| <tt>?</tt>
| <nowiki> {{other date|?}} </nowiki>
| {{other date|?}}
| No date
|-
|}
<includeonly>
<includeonly>
[[Category:Time, date and calendar templates|{{PAGENAME}}]]
[[Category:Time, date and calendar templates|{{PAGENAME}}]]
[[Category:User interface language dependent templates|{{PAGENAME}}]]
[[Category:User interface language dependent templates|{{PAGENAME}}]]
</includeonly>
</includeonly>

Revision as of 13:24, 9 June 2009

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

ParameterDescriptionDefaultStatus
1type of date notationemptyrequired
2depends on {{{1}}}emptyoptional
3depends on {{{1}}}emptyoptional
4language 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}}

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-09-01|1945-09-02}} from 1 September 1939 until 2 September 1945
date QS:P,+1950-00-00T00:00:00Z/7,P580,+1939-09-01T00:00:00Z/11,P582,+1945-09-02T00:00:00Z/11
[YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date)
between {{other date|between|1939-09|1945-09}} between September 1939 and September 1945
date QS:P,+1950-00-00T00:00:00Z/7,P1319,+1939-09-00T00:00:00Z/10,P1326,+1945-09-00T00:00:00Z/10
[YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date)
< {{other date|<|1945-09-02}} before 2 September 1945
date QS:P,+1945-09-02T00:00:00Z/7,P1326,+1945-09-02T00:00:00Z/11
[YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date)
> {{other date|>|1939-09-01}} after 1 September 1939
date QS:P,+1939-09-01T00:00:00Z/7,P1319,+1939-09-01T00:00:00Z/11
[YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date)
ca {{other date|ca|1939-09-01}} circa 1 September 1939
date QS:P,+1939-09-01T00:00:00Z/11,P1480,Q5727902
[YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date)
or {{other date|or|1939|1940}} 1939 or 1940
date QS:P,+1950-00-00T00:00:00Z/7,P1319,+1939-00-00T00:00:00Z/9,P1326,+1940-00-00T00:00:00Z/9
[YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date)
and {{other date|and|1939|1940}} 1939 and 1940
date QS:P,+1950-00-00T00:00:00Z/7,P580,+1939-00-00T00:00:00Z/9,P582,+1940-00-00T00:00:00Z/9
[YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] (ISO 8601 date)
s {{other date|s|1940}} 1940s
date QS:P,+1940-00-00T00:00:00Z/8
[YYY0] (starting year of the decade)
century {{other date|century|20}} 20th century
date QS:P,+1950-00-00T00:00:00Z/7
[cc] (century as two-digit number). 1900's = 20th century
date QS:P,+1950-00-00T00:00:00Z/7
season {{other date|season|fall|1939}} Error in Module:Complex date: season is not recognized. {{{2}}} can be "summer", "fall", "spring", "winter", {{{3}}} must be a four-digit year
? {{other date|?}} Unknown date No date


Cookies help us deliver our services. By using our services, you agree to our use of cookies.