Template:Age: Difference between revisions
No edit summary |
({{tfd}}) |
||
Line 1: | Line 1: | ||
<includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly><noinclude> | {{tfd|Template:Age}}<includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly><noinclude> | ||
{{tiw|age}}. | {{tiw|age}}. |
Revision as of 07:02, 2 July 2006
This template returns the number of full years elapsed at one date since another date or since today (UTC).
- Syntax:
- {{Age|year1|month1|day1|year2|month2|day2}}
- {{Age|year1|month1|day1}}
Examples:
- {{age|1989|7|23|2003|7|14}} gives Template:Tfd13
- {{age|1989|7|23}} gives Template:Tfd35
See also Template:Tiw and Template:Tiw.