Template:Date range and age
Appearance
To use
[edit]{{Date range and age|Year of event start|Month of event start|Day of event start|Year of event end|Month of event end|Day of event end}}
For example:
{{Date range and age|1996|April|20|2002|June|9}}
yields
April 20, 1996 – June 9, 2002
(2241 days)
and
{{Date range and age|1996|April|20|2002|June|9|df=y}}
yields
20 April 1996 – 9 June 2002
(2241 days)
Template Data
[edit]This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Date range and age in articles based on its TemplateData.
TemplateData for Date range and age
Represents a range of dates, and calculates the number of elapsed days in between
Parameter | Description | Type | Status | |
---|---|---|---|---|
Start year | 1 year1 | Year the event started
| Number | suggested |
Start month | 2 month1 | Month the event started
| String | suggested |
Start day | 3 day1 | Day the event started
| String | suggested |
End year | 4 year2 | Year the event ended
| Number | suggested |
End month | 5 month2 | Month the event ended
| String | suggested |
End day | 6 day2 | Day of month the event ended
| String | suggested |
Day first? | df dayfirst | if 'y' or 'yes', day comes before month | String | optional |