Difference between revisions of "Template:Age in years/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Jonesey95
(doc note)
blackwiki>Jonesey95
(update docs to reflect fix to template code)
Line 6: Line 6:
 
<tt><nowiki>{{Age in years|1900|1950}}</nowiki></tt> yields {{Age in years|1900|1950}}.
 
<tt><nowiki>{{Age in years|1900|1950}}</nowiki></tt> yields {{Age in years|1900|1950}}.
  
At present, the template says that someone born in 2000 is currently 15 years old (in 2015), but that is not necessarily true. Someone born in 2000 is currently either 15 years old (if they have already had a birthday this year) or 14 years old (if they have not yet had a birthday this year). As such, this template should not be used for ages of humans or animals.
+
Note that the template provides an age range: during the year 2015, someone born in 2000 is either 14 or 15 years old, depending on whether they have passed their birth date in the later year.  
  
 
== See also ==
 
== See also ==

Revision as of 01:53, 2 June 2015

Usage

{{Age in years|2000}} yields 25–26. {{Age in years|1900|1950}} yields 49–50.

Note that the template provides an age range: during the year 2015, someone born in 2000 is either 14 or 15 years old, depending on whether they have passed their birth date in the later year.

See also