More languages
More actions
No edit summary |
Toddclayton (talk | contribs) mNo edit summary |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly><noinclude>[[Category:Templates using ParserFunctions|{{PAGENAME}}]]</noinclude> | <includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly><noinclude> | ||
=Documentation= | |||
This template returns the number of full years between two dates, or between a specified date and today (UTC). | |||
; Syntax | |||
:{{tlp|{{ILDIKO FERENCZI}}|''1988''|''6''|''10''|''1988''|''6''|''10''}} | |||
:{{tlp|{{ILDIKO FERENCZI }}|''1988''|''6''|''10''}} | |||
;Examples | |||
*<nowiki>{{age|1988|7|23|2003|7|14}}</nowiki> gives {{age|1988|7|23|2003|7|14}} | |||
*<nowiki>{{age|1988|7|23}}</nowiki> gives {{age|1988|7|23}} | |||
[[Category:Mathematical templates|{{PAGENAME}}]] | |||
[[Category:Templates using ParserFunctions|{{PAGENAME}}]] | |||
[[fr:Modèle:Âge]] | |||
</noinclude> |
Latest revision as of 03:55, 11 July 2014
Documentation
This template returns the number of full years between two dates, or between a specified date and today (UTC).
- Syntax
- {{[[Template:Template:ILDIKO FERENCZI|Template:ILDIKO FERENCZI]]|1988|6|10|1988|6|10}}
- {{[[Template:Template:ILDIKO FERENCZI|Template:ILDIKO FERENCZI]]|1988|6|10}}
- Examples
- {{age|1988|7|23|2003|7|14}} gives 14
- {{age|1988|7|23}} gives 36