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