Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Start date

Permanently protected template
From Wikipedia, the free encyclopedia
Template documentation[view] [edit] [history] [purge]
WarningThis template is used onapproximately 521,000 pages.
To avoid major disruption and server load, any changes should be tested in the template's/sandbox or/testcases subpages, or in your ownuser subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on thetalk page before implementing them.
iconThis templateshould not be used incitation templates such asCitation Style 1 andCitation Style 2, because it includes markup that will pollute theCOinS metadata they produce; seeWikipedia:COinS.
This template usesLua:

{{Start date}} 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 emitmicroformats.It should be used only once in each such template andnever 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
  • Outsidemicroformat-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, orZ forUTC (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

  • {{Start date|1993}} → 1993 (1993)
  • {{Start date|1993|02}} → February 1993 (1993-02)
  • {{Start date|1993|02|24}} → February 24, 1993 (1993-02-24)
  • {{Start date|1993|02|24|08|30}} → 08:30, February 24, 1993 (1993-02-24T08:30:00)
  • {{Start date|1993|02|24|08|7=+01:00}} → 08:00, February 24, 1993 (+01:00) (1993-02-24T08:00:00+01:00)
  • {{Start date|1993|02|24|08|7=−07:00}} → 08:00, February 24, 1993 (−07:00) (1993-02-24T08:00:00−07:00)
  • {{Start date|1993|02|24|08|30|23}} → 08:30:23, February 24, 1993 (1993-02-24T08:30:23)
  • {{Start date|1993|02|24|08|30|23|Z}} → 08:30:23, February 24, 1993 (UTC) (1993-02-24T08:30:23Z)
  • {{Start date|1993|02|24|08|30|23|+01:00}} → 08:30:23, February 24, 1993 (+01:00) (1993-02-24T08:30:23+01:00)
  • {{Start date|1993|02|24|08|30|23|−07:00}} → 08:30:23, February 24, 1993 (−07:00) (1993-02-24T08:30:23−07:00)
  • {{Start date|1993|02|24|df=y}} → 24 February 1993 (1993-02-24)
  • {{Start date|1993|02|24|08|30|df=yes}} → 08:30, 24 February 1993 (1993-02-24T08:30:00)

Notes

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

  • c.{{Start date|1900}} → c. 1900 (1900)
  • {{Start date|1993|02|24}}, no later than 15:00 UTC → February 24, 1993 (1993-02-24), no later than 15:00 UTC

TemplateData

This is theTemplateData for this template used byTemplateWizard,VisualEditor and other tools.See a monthly parameter usage report forTemplate:Start date in articles based on its TemplateData.

TemplateData for Start date

Date that an event or entity started or was created

Template parameters[Edit template data]

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
yesy
Lineoptional

Use in microformats

This template also returns the date, hidden by CSS, in theISO 8601 format needed by one or more of the followingmicroformats:

usually, but not always, within infobox or similar templates, or tables.

Its use in hCard is for organizations, venues and similar; use{{Birth date}} or{{Birth date and age}} for people.

Similarly,{{End date}} returns the date ashCalendar's (class="dtend").

Seethe microformats project for further details.

Limitation

This template has no provision to deal with a date in a non-Gregorian calendar. Also,ISO 8601 requires mutual agreement among those exchanging information before using years outside the range 1583–9999 CE. Therefore, use of this template for non-Gregorian dates or dates outside that range constitutes afalse claim of conformance to the ISO 8601 standard.

Any editor encountering such usage should change the date to plain text with no template; or if not confident in doing so, raise the matter on this template's talk page.

Examples with hidden output

  • {{Start date|2016|12|31}} → December 31, 2016 (2016-12-31)
    December&nbsp;31,&nbsp;2016<span style="display: none;">&nbsp;(<span class="bday dtstart published updated itvstart">2016-12-31</span>)</span>


  • {{Start date|2016|12|31|08|30|23|+01:00}} → 08:30:23, December 31, 2016 (+01:00) (2016-12-31T08:30:23+01:00)
    08:30:23,&#32;December&nbsp;31,&nbsp;2016&#32;(+01:00)<span style="display: none;">&nbsp;(<span class="bday dtstart published updated itvstart">2016-12-31T08:30:23+01:00</span>)</span>

Tracking categories

See also

Birth, death and age templates
birth, death, age
Birth templates Description / use 
{{Birth date}}To display a birth date and related hidden metadata.
{{Birth date text}}
{{Birth date and age}}{{Birth date}} with suffix '(ageN)'.
{{Birth date and age2}}{{Birth date and age}} plus age as of a specified date.
{{Birth-date and age}}As{{Birth date and age}}, but accepts dates in text form ('15 June 1950', 'June 15, 1950', 'June 1950', etc.).
{{Birth date and age in years and days}}{{Birth date and age}}, but with the age displayed in years and days rather than just years.
{{Birth year and age}}Year of birth and approximate age.
{{Birth based on age as of date}}To display approximate birth year and current age given a particular date (e.g. when a dated reference mentions the age of a person), only works for living people.
{{Birth based on age as of dates}}To display approximate birth year and current age given several particular dates (e.g. when a dated reference mentions the age of a person), only works for living people.
{{Birth based on age at death}}To display approximate birth year based on age at death, or on age at a specific date if death date isn't known.
Death templates Description / use 
{{Death date}}To display a death date and related hidden metadata.
{{Death date text}}
{{Death date and age}}{{Death date}} with suffix '(agedN)'; also called with{{event date and age}}.
{{Death-date and age}}As{{Death date and age}}, but accepts dates in text form ('15 June 1950', 'June 15, 1950', 'June 1950', etc.).
{{Death date and given age}}To display a death date and specified age.
{{Death year and age}}To display a year of, and approximate age at death.
age only
Conventional age templates Description / use 
{{Age in years, months, weeks and days}}Number of complete years, months, weeks and days between two dates.
{{Age in years, months and days}}Number of complete years, months and days between two dates.
{{Age in years and months}}Number of complete years and remaining months between two dates.
{{Age in years and days}}Number of complete years and remaining days between two dates.
{{Age in years and days nts}}{{Age in years and days}} with output formatted for use innumber sortable tables.
{{Age in decimal years}}Number of years between two dates, rounded to the specified number of decimal places.
{{Age in years}}Number of years between two dates.
{{Age in years nts}}{{Age in years}} with output formatted for use in number sortable tables.
{{Age in months}}Number of months between two dates.
{{Age in weeks and days}}Number of weeks and days between two dates.
{{Age in weeks}}Number of weeks between two dates.
{{Age in days}}Age in days between two dates.
{{Age in days nts}}{{Age in days}} with output formatted for use in number sortable tables.
Reverse-determined age template Description / use 
{{Age}}Age based on number of complete years between two dates.
{{Age nts}}{{Age}} with output formatted for use innumber sortable tables.
{{Age as of date}}Current age (in years) from a known age at a specified date.
{{Age for infant}}Current age for infant: months and days up to one year, years and months up to three years, and years beyond age 3.
start / end dates
Date-focused templates Description / use 
{{Start date}} /{{End date}}
{{Start date text}} /{{End date text}}
{{Start date and age}}
{{End date and age}}
miscellaneous
Template Description / use 
{{OldStyleDate}}Dates inJulian calendar.
{{OldStyleDateDY}}As{{OldStyleDate}} but used when Julian /Gregorian dates fall in different years.
{{OldStyleDateNY}}As{{OldStyleDate}} but without the year.
{{Unidentified for}}
{{Missing for}}
The abovedocumentation istranscluded fromTemplate:Start date/doc.(edit |history)
Editors can experiment in this template'ssandbox(edit |diff) andtestcases(edit) pages.
Add categories to the/doc subpage.Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Start_date&oldid=1279926731"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp