Difference between revisions of "Template:Date range/doc"
Jump to navigation
Jump to search
imported>Daviddwd (←Created page with '{{Documentation subpage}} ==== To use ==== :{{Tlx|Date range|Year of event start|Month of event start|Day of event start|Year of event end|Month of event end|Da...') |
imported>Daviddwd |
||
| Line 24: | Line 24: | ||
"label": "Start year", | "label": "Start year", | ||
"type": "number", | "type": "number", | ||
| − | |||
"description": "Year the event started", | "description": "Year the event started", | ||
| − | "example": "1920" | + | "example": "1920", |
| + | "required": true | ||
}, | }, | ||
"2": { | "2": { | ||
| Line 34: | Line 34: | ||
"label": "Start month", | "label": "Start month", | ||
"type": "string", | "type": "string", | ||
| − | |||
"description": "Month the event started", | "description": "Month the event started", | ||
| − | "example": "June" | + | "example": "June", |
| + | "required": true | ||
}, | }, | ||
"3": { | "3": { | ||
| Line 54: | Line 54: | ||
"label": "End year", | "label": "End year", | ||
"type": "number", | "type": "number", | ||
| − | |||
"description": "Year the event ended", | "description": "Year the event ended", | ||
| − | "example": "1969" | + | "example": "1969", |
| + | "required": true | ||
}, | }, | ||
"5": { | "5": { | ||
| Line 66: | Line 66: | ||
"description": "Month the event ended", | "description": "Month the event ended", | ||
"example": "April", | "example": "April", | ||
| − | " | + | "required": true |
}, | }, | ||
"6": { | "6": { | ||
Revision as of 17:10, 7 December 2018
| 40px | This is a documentation subpage for Template:Date range. It contains usage information, categories and other content that is not part of the original template page. |
To use
{{Date range|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|1996|April|20|2002|June|9}}
yields
20 April, 1996 – 9 June 2002
Template Data
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Date range
Represents a range of dates.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Start year | 1 year1 | Year the event started
| Number | required |
| Start month | 2 month1 | Month the event started
| String | required |
| Start day | 3 day1 | Day the event started
| String | suggested |
| End year | 4 year2 | Year the event ended
| Number | required |
| End month | 5 month2 | Month the event ended
| String | required |
| 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 |
See also
{{Date range and age}}{{Date range and age in years, months, weeks and days}}{{Age in years, months, weeks and days}}- Wikipedia:Age calculation templates