Template:Age/doc: Difference between revisions
From Hattrick
Jump to navigationJump to search
No edit summary |
|||
| Line 1: | Line 1: | ||
;Syntax | ;Syntax | ||
:<nowiki>{{ | :<nowiki>{{Age | YEAR | MONTH | DAY }}</nowiki> | ||
;Examples | ;Examples | ||
:<nowiki>{{ | :<nowiki>{{Age|2010|10|10}}</nowiki> produces {{Age|2010|10|10}} | ||
:<nowiki>{{ | :<nowiki>{{Age|2009|10|10}}</nowiki> produces {{Age|2009|10|10}} | ||
:<nowiki>{{ | :<nowiki>{{Age|2008|10|10}}</nowiki> produces {{Age|2008|10|10}} | ||
:<nowiki>{{ | :<nowiki>{{Age|2002|10|10}}</nowiki> produces {{Age|2002|10|10}} | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> | ||
<includeonly>[[Category:Date-computing templates|{{PAGENAME}}]]</includeonly> | <includeonly>[[Category:Date-computing templates|{{PAGENAME}}]]</includeonly> | ||
Revision as of 20:17, 14 February 2011
- Syntax
- {{Age | YEAR | MONTH | DAY }}
- Examples
- {{Age|2010|10|10}} produces 51 years and 109 days
- {{Age|2009|10|10}} produces 55 years and 26 days
- {{Age|2008|10|10}} produces 58 years and 55 days
- {{Age|2002|10|10}} produces 78 years and 7 days