Template:Age range: Difference between revisions
Appearance
w>WOSlinker ←Created page with '<includeonly>{{age |{{max|{{{from1|{{{from|}}}}}}|{{{from2|{{{from|}}}}}}}}-12-31 |{{min|{{{to1|{{{to|}}}}}}|{{{to2|{{{to|}}}}}}}}-01-01 }}–{{age |{{min|{{{from1|{{{from|}}}}}}|{{{from2|{{{from|}}}}}}}}-01-01 |{{max|{{{to1|{{{to|}}}}}}|{{{to2|{{{to|}}}}}}}}-12-31 }}</includeonly><noinclude> {{documentation}} </noinclude>' |
m 1 revision imported |
||
(No difference)
| |||
Latest revision as of 13:40, 19 January 2026
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>