Template:AgeYears/doc

From Hattrick
< Template:AgeYears
Revision as of 18:30, 27 May 2013 by Lirion (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Explanation
Calculates the Hattrick years that have passed from a date x until now (and rounds them). Typical use: automatical player age display, hence the name.
Syntax
{{Age | YEAR | MONTH | DAY }}
Examples
{{AgeYears|2010|10|10}} produces 35
{{AgeYears|2009|10|10}} produces 39
{{AgeYears|2008|10|10}} produces 42
{{AgeYears|2002|10|10}} produces 62