Template:Age

From Hattrick
Revision as of 12:02, 4 November 2010 by Lleida (talk | contribs) (correct rounder age in case days are more than 66)
Jump to navigationJump to search

[edit] Template documentation

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 33 years 101 days
{{Age|2009|10|10}} produces 37 years 18 days
{{Age|2008|10|10}} produces 40 years 47 days
{{Age|2002|10|10}} produces 59 years 111 days