Difference between revisions of "Template:Date range and age/doc"

From blackwiki
Jump to navigation Jump to search
imported>Daviddwd
m
imported>Daviddwd
m (Update to TemplateData)
Line 11: Line 11:
 
"label": "Start year",
 
"label": "Start year",
 
"type": "number",
 
"type": "number",
"suggested": true
+
"suggested": true,
 +
"description": "Year the event started",
 +
"example": "1920"
 
},
 
},
 
"2": {
 
"2": {
Line 19: Line 21:
 
"label": "Start month",
 
"label": "Start month",
 
"type": "string",
 
"type": "string",
"suggested": true
+
"suggested": true,
 +
"description": "Month the event started",
 +
"example": "June"
 
},
 
},
 
"3": {
 
"3": {
Line 27: Line 31:
 
"label": "Start day",
 
"label": "Start day",
 
"type": "string",
 
"type": "string",
"suggested": true
+
"suggested": true,
 +
"description": "Day the event started",
 +
"example": "9"
 
},
 
},
 
"4": {
 
"4": {
Line 35: Line 41:
 
"label": "End year",
 
"label": "End year",
 
"type": "number",
 
"type": "number",
"suggested": true
+
"suggested": true,
 +
"description": "Year the event ended",
 +
"example": "1969"
 
},
 
},
 
"5": {
 
"5": {
Line 42: Line 50:
 
],
 
],
 
"label": "End month",
 
"label": "End month",
"type": "string"
+
"type": "string",
 +
"description": "Month the event ended",
 +
"example": "April"
 
},
 
},
 
"6": {
 
"6": {
Line 49: Line 59:
 
],
 
],
 
"label": "End day",
 
"label": "End day",
"type": "string"
+
"type": "string",
 +
"description": "Day of month the event ended",
 +
"example": "20"
 
},
 
},
 
"df": {
 
"df": {

Revision as of 22:49, 3 December 2018

To use

{{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|df=y}}

No description.

Template parameters

ParameterDescriptionTypeStatus
Start year1 year1

Year the event started

Example
1920
Numbersuggested
Start month2 month1

Month the event started

Example
June
Stringsuggested
Start day3 day1

Day the event started

Example
9
Stringsuggested
End year4 year2

Year the event ended

Example
1969
Numbersuggested
End month5 month2

Month the event ended

Example
April
Stringoptional
End day6 day2

Day of month the event ended

Example
20
Stringoptional
Day first?df

if 'y' or 'yes', day comes before month

Stringoptional