Jump to content

Template:Age range

From NicheWork
Revision as of 13:40, 19 January 2026 by MarkAHershberger (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation


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