Jump to content

Template:Start and end dates and age/doc: Difference between revisions

From the Vrienden Universe, a fictional wiki
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..."
 
Remove links to missing wanted templates
 
Line 87: Line 87:


== Use in microformats ==
== Use in microformats ==
{{UF-date-part}}


== Tracking categories ==
== Tracking categories ==

Latest revision as of 15:55, 12 June 2026

When not to use this template

[edit source]

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

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

Examples

[edit source]
  • 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

[edit source]
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

[edit source]

Tracking categories

[edit source]

See also

[edit source]