FANDOM


({{SPW|is not on}})
(use different birthday)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{SPW|is not on}}
 
 
 
;Description
 
;Description
 
: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=1929
|birth_month=4
+
|birth_month=1
|birth_day=19
+
|birth_day=15
 
}}</pre> gives...
 
}}</pre> gives...
 
:{{Age
 
:{{Age
|birth_year=1984
+
|birth_year=1929
|birth_month=4
+
|birth_month=1
|birth_day=19
+
|birth_day=15
}}<includeonly>
+
}}</blockquote>
  +
<blockquote><pre>
  +
{{Age
  +
|1929
  +
|1
  +
|15
  +
}}</pre> gives...
  +
:{{Age
  +
|1929
  +
|1
  +
|15
  +
}}</blockquote><includeonly>
 
[[Category:Utility templates|{{PAGENAME}}]]</includeonly><noinclude>
 
[[Category:Utility templates|{{PAGENAME}}]]</includeonly><noinclude>
 
[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
 
[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 03:11, October 18, 2019

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