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

Template page
No edit summary
No edit summary
Line 3: Line 3:
|1d=date in ISO 8601 format
|1d=date in ISO 8601 format
|1stat=required
|1stat=required
|2=2
|2d=language code (only needs to be provided if the language shall be fixed and independant from the user's preferences)
|2def=value of <nowiki>{{int:Lang}}</nowiki>
|name=ISOdate
|name=ISOdate
|desc=Takes a date in [[:en:ISO 8601|ISO 8601]] format (YYYY-MM-DD, e.g. "{{#time: Y-m-d }}") and hands it over to {{tl|date}} to display it in localised format.
|desc=Takes a date in [[:en:ISO 8601|ISO 8601]] format (YYYY-MM-DD, e.g. "{{#time: Y-m-d }}") and hands it over to {{tl|date}} to display it in localised format.

Revision as of 01:10, 31 March 2009

Takes a date in ISO 8601 format (YYYY-MM-DD, e.g. "2026-08-21") and hands it over to {{Date}} to display it in localised format.

This template is needed to catch some flaws of the automatic conversion by {{#time: }} for non-full dates (e.g. "77-09" for September 77 AD, which would throw an error with {{#time: }})

Usage

{{ISOdate |1= |2= }}

Template parameters

ParameterDescriptionDefaultStatus
1date in ISO 8601 formatemptyrequired
2language 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

See also

Localization

This template is not intended to be localized.

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