FANDOM


(New page: ;Description :This template returns the current age of someone with a given birthdate. ;Sample output <pre> {{Age |birth_year=1984 |birth_month=4 |birth_day=19 }}</pre> gives... :{{Age |bi...)
 
(use different birthday)
 
(5 intermediate revisions by 5 users not shown)
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=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
}}
+
}}</blockquote>
+
<blockquote><pre>
<includeonly>[[Category:Utility templates|{{PAGENAME}}</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
+
{{Age
  +
|1929
  +
|1
  +
|15
  +
}}</pre> gives...
  +
:{{Age
  +
|1929
  +
|1
  +
|15
  +
}}</blockquote><includeonly>
  +
[[Category:Utility templates|{{PAGENAME}}]]</includeonly><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.