Template:AgeYears/doc: Difference between revisions
From Hattrick
Jump to navigationJump to search
Created page with ';Syntax :<nowiki>{{Age | YEAR | MONTH | DAY }}</nowiki> ;Examples :<nowiki>{{AgeYears|2010|10|10}}</nowiki> produces {{AgeYears|2010|10|10}} :<nowiki>{{AgeYears|2009|10|10}}</now…' |
mNo edit summary |
||
| Line 1: | Line 1: | ||
;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 | ;Syntax | ||
:<nowiki>{{Age | YEAR | MONTH | DAY }}</nowiki> | :<nowiki>{{Age | YEAR | MONTH | DAY }}</nowiki> | ||
Latest revision as of 16:30, 27 May 2013
- 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 51
- {{AgeYears|2009|10|10}} produces 55
- {{AgeYears|2008|10|10}} produces 58
- {{AgeYears|2002|10|10}} produces 78