Jump to content

Шаблон:ISO end date/doc

Мавод аз Википедиа — донишномаи озод

This template converts dates to YYYY-MM-DD or YYYY-MM or YYYY as appropriate - see below for restrictions on input formats accepted.

Usage[вироиши манбаъ]

This template only converts dates formatted in one of the formats below to an ISO date

The template accepts one parameter - which must be unnamed. For example:

  • {{ISO date|15 January 2001}} returns 2001-01-15
  • {{ISO date|March 2003}} returns 2003-03

The date parameter must be in one of the following formats:

  • 15 January 2001
  • 15 Jan 2001
  • January 15, 2001
  • Jan 15, 2001
  • 15-01-2001
  • January 2001
  • Jan 2001
  • 2001

Formats for which it can not work because #time returns an error:

  • 01-15-2001
  • 1/2001

Use in microformats[вироиши манбаъ]

This template also wraps the date in the dtend classes needed by the hCalendar microformat - usually, but not always, within infobox or similar templates, or tables.

Note: due to the requirement exclusive "dtend" in hCalendar, and the accessibility problems that presents when a date is rendered (as seen without CSS) as 28 March 1999 (1999-03-29) or even 28 February 1999 (1999-03-01) or 31 December 1999 (2000-01-01), this template should not be used for whole-day dates.

See also[вироиши манбаъ]