Template:Age range/doc
Appearance
| icon | This is a documentation subpage for Template:Terminate sentence It may contain usage information, categories and other content that is not part of the original template page. |
Usage
This template returns the number of full years between two specified year ranges.
Example
{{age range|from1=1900|from2=1910|to1=1980|to2=1990}}
69–90
{{age range|from1=1900|from2=1910|to=1980}}
69–80
TemplateData
<templatedata>{ "description": "This template returns the number of full years between two specified year ranges.", "params": {
"from1": {
"label": "Year1 (\"from\" date)",
"description": "The first year of the \"from\" date",
"type": "number",
"required": false
},
"from2": {
"label": "Year2 (\"from\" date)",
"description": "The second year of the \"from\" date",
"type": "number",
"required": false
},
"from": {
"label": "Year (\"from\" date)",
"description": "If there is only one \"from\" year then use the from parameter instead of from1 and from2",
"type": "number",
"required": false
},
"to1": {
"label": "Year1 (\"to\" date)",
"description": "The first year of the \"to\" date",
"type": "number",
"required": false
},
"to2": {
"label": "Year2 (\"to\" date)",
"description": "The second year of the \"to\" date",
"type": "number",
"required": false
},
"to": {
"label": "Year (\"to\" date)",
"description": "If there is only one \"to\" year then use the to parameter instead of to1 and to2",
"type": "number",
"required": false
}
}} </templatedata>
See also