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

From blackwiki
Jump to navigation Jump to search
blackwiki>Samsara
(unclear why this was removed)
m (15 revisions imported)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Documentation subpage}} {{high-use|1,500+}}
+
{{Documentation subpage}}
<!-- Categories and interwikis go at the bottom of this page. -->
+
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
 +
{{High-use|3300}}
 +
{{Lua|Module:Age}}
  
 
== 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.  
Line 11: Line 13:
 
* [[Wikipedia:Age calculation templates]].
 
* [[Wikipedia:Age calculation templates]].
  
<includeonly>
+
{{Birth, death and age templates|age}}
<!-- Categories and interwikis go here: -->
+
 
 +
<includeonly>{{sandbox other||
 +
<!-- Categories below this line and interwikis at Wikidata -->
 
[[Category:Date mathematics templates]]
 
[[Category:Date mathematics templates]]
 
[[Category:Date-computing templates]]
 
[[Category:Date-computing templates]]
</includeonly>
+
 
 +
}}</includeonly>

Latest revision as of 12:36, 18 October 2020

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