Template:Age/doc

From Hattrick
< Template:Age
Revision as of 18:32, 27 May 2013 by Lirion (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Explanation
Calculates the Hattrick time (years and days) that has passed from a date x until now. Typical use: automatical player age display, hence the name. For years only, use Template:AgeYears.
Syntax
{{Age | YEAR | MONTH | DAY }}
Examples
{{Age|2010|10|10}} produces 31 years and 83 days
{{Age|2009|10|10}} produces 35 years and 0 days
{{Age|2008|10|10}} produces 38 years and 29 days
{{Age|2002|10|10}} produces 57 years and 93 days