Template:Start date/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Script error: No such module "Message box". Script error: No such module "High-use". Template:COinS safe Template:Lua

Template:Tlb returns the date (or date and time) that an event or entity started or was created, in a standard format. It also includes a hidden (by CSS) duplicate, machine-readable date (or date and time) in the ISO date format, for use inside templates or table rows that emit microformats. It should be used only once in each such template and never used outside such templates. The hidden date degrades gracefully when CSS is not available.

When not to use this template

Do not use this template for:

  • Dates that are uncertain, e.g., "before 4 April 1933", "around 18 November 1939", "19??".
  • Date ranges, e.g. "c. 1690–1712"
  • Dates outside the range given under "Limitation", below.
  • Other, secondary dates
  • Outside microformat-emitting templates or table rows; if in doubt, see the parent template's documentation
  • More than one date
  • Dates displayed using AM/PM format; this template only outputs 24-hour times
  • Dates that are not calendar dates, e.g. "12th century" or "present" or "TBA"

In the above situations, omit the template entirely, using untemplated text.

Usage

Parameters

  • The unnamed parameters, in order, represent the year (four digits; required parameter), month (one or two digits), day (one or two digits), hour in 24-hour time (one or two digits), minutes (one or two digits), seconds (one or two digits), and the time zone (see below).
  • When specifying time of day, MM (minutes), SS (seconds), and the time zone are optional
  • Time zone may be a numerical value, or Z for UTC (see examples)
  • |df=yes, an optional parameter, when set to |df=yes or |df=y displays the day before the month (e.g. "7 November 2004" instead of the default "November 7, 2004"). The order of parameters does not change (it remains YMD). This is primarily used in articles using DMY format for dates.

Examples

Notes

Place any additional non-numeric text outside of the template:

  • c. Template:Tlx → c. Script error: No such module "Date time".Script error: No such module "Check for unknown parameters".
  • Template:Tlx, no later than 15:00 UTC → Script error: No such module "Date time".Script error: No such module "Check for unknown parameters"., no later than 15:00 UTC

TemplateData

Template:TemplateData header

Date that an event or entity started or was created

Template parameters

ParameterDescriptionTypeStatus
YYYY1

Start year

Numberrequired
MM2

Start month

Numbersuggested
DD3

Start day of month

Numbersuggested
HH4

Start hours

Numberoptional
MM5

Start minutes

Default
0
Numberoptional
SS6

Start seconds

Default
0
Numberoptional
TZ7

Time zone offset, "+02:00", "-06:00" or "Z" for UTC

Lineoptional
Day firstdf

Set to 'yes' to show the day before the month name

Suggested values
yes y
Lineoptional

Use in microformats

Template:UF-date-part

Examples with hidden output

Template:Nowiki template demo

Template:Nowiki template demo

Tracking categories

See also

Template:Birth, death and age templates