Jump to content

Template:Start and end dates and age/doc

From the Vrienden Universe, a fictional wiki
Revision as of 20:45, 9 March 2026 by Walter61 (talk | contribs) (Created page with "== 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". * dates outside the range given under below. * other, secondary dates * outside -emitting templates—if in doubt, see the parent template's documentation * more than one date in any parent template == Usage == {{tlx|Start and end dates and age|{{var|YYYY}}|{{var|MM}}|{{var|DD}}|{{var|YYYY}}|{{var|MM}}|{{var|DD}}|{{var|ag...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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".
  • dates outside the range given under below.
  • other, secondary dates
  • outside -emitting templates—if in doubt, see the parent template's documentation
  • more than one date in any parent template

Usage

{{tlx|Start and end dates and age|YYYY|MM|DD|YYYY|MM|DD|agein|formatting}

Examples

  • Standard: {{Start and end dates and age|1939|9|1|1945|9|2}} → September 1, 1939 – September 2, 1945 (1939-09-01 – 1945-09-02) (6 years and 1 day)
  • Day first: {{Start and end dates and age|1939|9|1|1945|9|2|df=yes}} → 1 September 1939 – 2 September 1945 (1939-09-01 – 1945-09-02) (6 years and 1 day)
  • Same year: {{Start and end dates and age|1939|9|1|1939|10|2}} → September 1 – October 2, 1939 (1939-09-01 – 1939-10-02) (1 month and 1 day)
  • Same month and year: {{Start and end dates and age|1939|9|1|1939|9|2}} → September 1–2, 1939 (1939-09-01 – 1939-09-02) (1 day)
  • Present range: {{Start and end dates and age|1939|9|1|present}} → September 1, 1939 – present (1939-09-01 – present) (Error: Second date should be year, month, day)

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Start and end dates and age in articles based on its TemplateData.

TemplateData for Start and end dates and age

Date that an event or entity started or was created and when it ended or was destroyed

Template parameters

ParameterDescriptionTypeStatus
YYYY1

Start year

Example
1939
Numberrequired
MM2

Start month

Example
9
Numberoptional
DD3

Start day of month

Example
1
Numberoptional
YYYY4

end year

Example
1945
Numberoptional
MM5

End month

Example
9
Numberoptional
DD6

End day of month

Example
2
Numberoptional
agein7

Unites used for listing the age, such as years (y), months (m), weeks (w), and days (d)

Example
ymwd
Stringoptional
formatting8

Formatting to be placed between the dates and the age, such as spacing or a line break

Example
<br/>
Stringoptional
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

Tracking categories

See also