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

From blackwiki
Jump to navigation Jump to search
imported>Daviddwd
m (Update to TemplateData)
imported>Daviddwd
Line 66: Line 66:
 
"label": "Day first?",
 
"label": "Day first?",
 
"description": "if 'y' or 'yes', day comes before month",
 
"description": "if 'y' or 'yes', day comes before month",
"type": "string"
+
"type": "string",
 +
"aliases": [
 +
"dayfirst"
 +
]
 
}
 
}
}
+
},
 +
"description": "Represents a range of dates, and calculates the number of elapsed days in between"
 
}
 
}
 
</templatedata>
 
</templatedata>

Revision as of 22:52, 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}}

Represents a range of dates, and calculates the number of elapsed days in between

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 dayfirst

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

Stringoptional