Jump to content

Template:Age in days: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
or with unnames parameters:
Removing documentation to move it to a /doc subpage, per editprotected on talk by 16@r
Line 1: Line 1:
<includeonly>{{#expr:
<noinclude>{{Protected template}}
This template returns the number of days between two dates. If the second set of parameters is not included it will automatically calculate the days between a given date and today. To use type:
:<nowiki>{{age in days|month1= |day1= |year1= |month2= |day2= | year2=}},</nowiki> or with unnames parameters:
:<nowiki>{{age in days|year1|month1|day1|year2|month2|day2}}</nowiki> or
:<nowiki>{{age in days|year1|month1|day1}}</nowiki>

</noinclude><includeonly>{{#expr:
+ {{Gregorian serial date
+ {{Gregorian serial date
|month = {{{month2|{{{5|{{CURRENTMONTH}}}}}}}}
|month = {{{month2|{{{5|{{CURRENTMONTH}}}}}}}}
Line 15: Line 9:
|day = {{{day1|{{{3|{{CURRENTDAY}}}}}}}}
|day = {{{day1|{{{3|{{CURRENTDAY}}}}}}}}
|year = {{{year1|{{{1|{{CURRENTYEAR}}}}}}}}
|year = {{{year1|{{{1|{{CURRENTYEAR}}}}}}}}
}} }}</includeonly><noinclude>[[Category:Date mathematics templates|{{PAGENAME}}]]
}} }}</includeonly><noinclude>{{Documentation}}</noinclude>
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[nl:Sjabloon:Aantal dagen]]
[[ru:Шаблон:Days between]]
</noinclude>

Revision as of 19:04, 30 January 2008