FANDOM


(Remove Template:SPW and/or interlanguage links; they have been added to Template:Documentation)
(update docs)
Line 2: Line 2:
 
:This template returns the current age of someone with a given birthdate.
 
:This template returns the current age of someone with a given birthdate.
 
;Sample output
 
;Sample output
<pre>
+
<blockquote><pre>
 
{{Age
 
{{Age
 
|birth_year=1984
 
|birth_year=1984
Line 12: Line 12:
 
|birth_month=4
 
|birth_month=4
 
|birth_day=19
 
|birth_day=19
}}<includeonly>
+
}}</blockquote>
  +
<blockquote><pre>
  +
{{Age
  +
|1984
  +
|4
  +
|19
  +
}}</pre> gives...
  +
:{{Age
  +
|1984
  +
|4
  +
|19
  +
}}</blockquote><includeonly>
 
[[Category:Utility templates|{{PAGENAME}}]]</includeonly><noinclude>
 
[[Category:Utility templates|{{PAGENAME}}]]</includeonly><noinclude>
 
[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
 
[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Revision as of 02:20, October 18, 2019

Description
This template returns the current age of someone with a given birthdate.
Sample output
{{Age
|birth_year=1984
|birth_month=4
|birth_day=19
}}
gives...
36
{{Age
|1984
|4
|19
}}
gives...
36
Community content is available under CC-BY-SA unless otherwise noted.