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

From blackwiki
Jump to navigation Jump to search
blackwiki>Samsara
(unclear why this was removed)
blackwiki>Zyxw
m (Since <tt> is obsolete in HTML5, replace with <kbd> – see HTML element#tt and Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB)
Line 3: Line 3:
  
 
== Usage ==
 
== Usage ==
<tt><nowiki>{{Age in years|2000}}</nowiki></tt> yields {{Age in years|2000}}.
+
<kbd><nowiki>{{Age in years|2000}}</nowiki></kbd> yields {{Age in years|2000}}.
<tt><nowiki>{{Age in years|1900|1950}}</nowiki></tt> yields {{Age in years|1900|1950}}.
+
<kbd><nowiki>{{Age in years|1900|1950}}</nowiki></kbd> yields {{Age in years|1900|1950}}.
  
 
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.  
 
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.  

Revision as of 05:18, 5 August 2018

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