Jump to content

Template:Age range/doc: Difference between revisions

From NicheWork
w>WOSlinker
Created page with '{{Documentation subpage}} == Usage == This template returns the number of full years between two specified year ranges. == Example == <syntaxhighlight lang="wikitext">{{age range|from1=1900|from2=1910|to1=1980|to2=1990}}</syntaxhighlight> {{age range|from1=1900|from2=1910|to1=1980|to2=1990}} <syntaxhighlight lang="wikitext">{{age range|from1=1900|from2=1910|to=1980}}</syntaxhighlight> {{age range|from1=1900|from2=1910|to1=1980}} == TemplateData == <tem...'
 
m 1 revision imported
 
(No difference)

Latest revision as of 13:42, 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>

See also