From Fedora Project Wiki

Revision as of 20:06, 4 June 2008 by Wwoods (talk | contribs) (New page: <!-- from Wikipedia's Template:Date/doc. Covered by the GFDL. --> <span class="wpAutoDate" style="color:#000033">{{#time:j F Y}}</span> ==Usage== * <tt><nowiki>{{</nowiki>[[Template:date|...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

26 December 2024

Usage

  • {{date|<some date>}} causes <some date> to be dynamically reformatted according to reformatting rules.*
  • When no <date> parameter is specified, it displays the current date, which changes to tomorrow's date when you view it tomorrow, and so on. Again, the date is subject to reformatting rules.*

This template cannot be substituted. To fix today's date use {{subst:today}}, which will emit {{date|2024-12-26}} and so wrap the date for further processing by {{date}}.

* Reformatting would ideally occur according to a user's date-style preferences, or using some sane and human-friendly default when a user is not-logged-in or when no date-style preference has been set. However, this functionality (not to be confused with wikilinking of dates) is disabled pending resolution of bug #4582. In the meanwhile, {{date}} will display dates in 'day month year' format (e.g. 26 December 2024) for dates between 1970 and 2038. Dates between 1901 and 1969 will be displayed incorrectly (see bugzilla:11686). Dates outside these ranges should appear unadjusted.

Examples

  • With no <date> parameter:
    • {{date}} appears as 26 December 2024
  • <date>s with a year:
    • {{date|2001-09-15}} appears as 15 September 2001
    • {{date|January 15, 2001}} appears as 15 January 2001
    • {{date|15 January 2001}} appears 15 January 2001
    • {{date|Jan 15, 2001}} appears as 15 January 2001
    • {{date|15 Jan 2001}} appears 15 January 2001
  • <date>s without a year:
    • {{date|January 15}} appears as 15 January
    • {{date|15 January}} appears as 15 January
    • {{date|Jan 15}} appears as 15 January
    • {{date|15 Jan}} appears as 15 January

See also