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
No edit summary
No edit summary
Line 26: Line 26:
|relieson={{tl|ISOdate}}, {{tl|LangSwitch}}
|relieson={{tl|ISOdate}}, {{tl|LangSwitch}}
}}
}}
==Localization==
 
''Other date'' template supports at the moment: Danish, English, German, Low German, Polish, Spanish, and Swedish languages. Translations into other languages are needed.  
''Other date'' template supports at the moment: Danish, English, German, Low German, Polish, Spanish, and Swedish languages. Translations into other languages are needed.  


{{tl|Other date/test}}
== Examples ==
== Examples ==
{|border="1" style="right"
{{Other date/test}}
|-
! Option
! Code
! Output
! Expected date format
|-
| <tt>-</tt>
| <nowiki> {{other date|-|1939-01|1945-02}} </nowiki>
| {{other date|-|1939-01|1945-02}}
| [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] ([[w:ISO 8601|ISO 8601]] date)
|-
| <tt>between</tt>
| <nowiki> {{other date|between|1939-09-01|1945-08-02}} </nowiki>
| {{other date|between|1939-09-01|1945-08-02}}
| [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] ([[w:ISO 8601|ISO 8601]] date)
|-
| <tt><<br>b<br>before</tt>
| <nowiki> {{other date|<|1945-03-02}} </nowiki>
| {{other date|<|1945-03-02}}
| [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] ([[w:ISO 8601|ISO 8601]] date)
|-
| <tt>><br>a<br>after</tt>
| <nowiki> {{other date|>|1939-04-01}} </nowiki>
| {{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)
|-
| <tt>~<br>ca<br>[[circa]]</tt>
| <nowiki> {{other date|ca|1939-05-01}} </nowiki>
| {{other date|ca|1939-05-01}}
| [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] ([[w:ISO 8601|ISO 8601]] date)
|-
| <tt>by</tt>
| <nowiki> {{other date|by|1939-05-01}} </nowiki>
| {{other date|by|1939-05-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<br>&</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<br>[[:Category:Decades|decade]]</tt>
| <nowiki> {{other date|s|1940}} </nowiki>
| {{other date|s|1940}}
| [YYY0] (starting year of the decade)
|-
| <tt>[[:Category:Centuries|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 "spring", "summer", "fall", "autumn", "winter"<br> <nowiki>{{{3}}}</nowiki> must be a four-digit year
|-
| <tt>begining<br>early</tt>
| <nowiki> {{other date|early|1939-09}} </nowiki>
| {{other date|early|1939-09}}
| [YYYY]-[MM]
|-
| <tt>mid<br>middle</tt>
| <nowiki> {{other date|mid|1939-10}} </nowiki>
| {{other date|mid|1939-10}}
| [YYYY]-[MM]
|-
| <tt>end<br>late</tt>
| <nowiki> {{other date|late|1939-11}} </nowiki>
| {{other date|late|1939-11}}
| [YYYY]-[MM]
|-
| <tt>firsthalf<br>1half</tt>
| <nowiki> {{other date|firsthalf|1939-12}} </nowiki>
| {{other date|firsthalf|1939-12}}
| [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] ([[w:ISO 8601|ISO 8601]] date)
|-
| <tt>secondhalf<br>2half</tt>
| <nowiki> {{other date|secondhalf|1939-12}} </nowiki>
| {{other date|secondhalf|1939-12}}
| [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] ([[w:ISO 8601|ISO 8601]] date)
|-
| <tt>[[Julian calendar|Julian]]</tt>
| <nowiki> {{other date|Julian|1863-02-17|1863-03-01}} </nowiki>
| {{other date|Julian|1863-02-17|1863-03-01}}
| [YYYY]-[MM]-[DD], [YYYY]-[MM] or [YYYY] ([[w:ISO 8601|ISO 8601]] date)
|-
| <tt>?</tt>
| <nowiki> {{other date|?}} </nowiki>
| {{other date|?}}
| No date
|-
|}
 


<includeonly>
<includeonly>

Revision as of 01:08, 25 May 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

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

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)

Other date template supports at the moment: Danish, English, German, Low German, Polish, Spanish, and Swedish languages. Translations into other languages are needed.

Examples

Template:Other date/test


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