Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Age: Difference between revisions

Template page
More languages
Shane (talk | contribs)
No edit summary
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|{{PAGENAME}}|''year1''|''month1''|''day1''|''year2''|''month2''|''day2''}}
:{{tlp|{{ILDIKO FERENCZI}}|''1988''|''6''|''10''|''1988''|''6''|''10''}}
:{{tlp|{{PAGENAME}}|''year1''|''month1''|''day1''}}
:{{tlp|{{ILDIKO FERENCZI }}|''1988''|''6''|''10''}}


;Examples
;Examples
*<nowiki>{{age|1989|7|23|2003|7|14}}</nowiki> gives {{age|1989|7|23|2003|7|14}}
*<nowiki>{{age|1988|7|23|2003|7|14}}</nowiki> gives {{age|1988|7|23|2003|7|14}}
*<nowiki>{{age|1989|7|23}}</nowiki> gives {{age|1989|7|23}}
*<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