Jump to content

Template:Age: Difference between revisions

49 bytes removed ,  18 years ago
rm superfluous
(move cluttering box down)
(rm superfluous)
Line 1: Line 1:
<includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly><noinclude>
<includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly><noinclude>


This template returns the number of full years elapsed at one date since another date or since today (UTC time as set on the Wikipedia server).
{{tiw|age}}.
 
This template returns the number of full years elapsed at one date since another date or since today (UTC).


; Syntax<nowiki>:</nowiki>
; Syntax<nowiki>:</nowiki>
Line 7: Line 9:
: <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki></tt>''year1''<tt><nowiki>|</nowiki></tt>''month1''<tt><nowiki>|</nowiki></tt>''day1''<tt><nowiki>}}</nowiki></tt>
: <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki></tt>''year1''<tt><nowiki>|</nowiki></tt>''month1''<tt><nowiki>|</nowiki></tt>''day1''<tt><nowiki>}}</nowiki></tt>


{{Template documentation}}
[[Category:Date math|{{PAGENAME}}]]
[[Category:Date math|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
</noinclude>
</noinclude>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.