Difference between revisions of "Template:ISO date/doc"

From blackwiki
Jump to navigation Jump to search
imported>Trödel
(update documentation)
imported>Trödel
m (update)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This template converts dates formatted as DD MMMM YYYY and as MMMM DD, YYYY to the correct ISO format for use in tables that are expected to be sortable by date
+
This template converts dates formatted as DD MMMM YYYY, MMMM YYYY to a date formatted as YYYY-MM-DD or YYYY-MM
 
=== Usage ===
 
=== Usage ===
 
This template only converts dates formated in one of these formats to an ISO date (a generalized version exists in the history but it will not work consistently because of the number of #time codes used in the calling template.
 
This template only converts dates formated in one of these formats to an ISO date (a generalized version exists in the history but it will not work consistently because of the number of #time codes used in the calling template.

Revision as of 23:19, 10 November 2008

This template converts dates formatted as DD MMMM YYYY, MMMM YYYY to a date formatted as YYYY-MM-DD or YYYY-MM

Usage

This template only converts dates formated in one of these formats to an ISO date (a generalized version exists in the history but it will not work consistently because of the number of #time codes used in the calling template.

Designed and used for Comparison of temples of The Church of Jesus Christ of Latter-day Saints until it can be generalized

The template accepts one parameter - either named or unnamed. For example:

  • {{ISO date|15 January 2001}} returns 2001-01-15
  • {{ISO date|date = 10 January 2001}} returns 2026-01-16

See also