Jump to content

Template:Age in days: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
allow unnamed pars
 
(14 intermediate revisions by 11 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke:age|age_generic|template=age_days}}</includeonly><noinclude>{{documentation}}</noinclude>
<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>'''
</noinclude><includeonly>{{#expr:
+ {{Gregorian serial date
|month = {{{month2|{{{5|{{CURRENTMONTH}}}}}}}}
|day = {{{day2|{{{6|{{CURRENTDAY}}}}}}}}
|year = {{{year2|{{{4|{{CURRENTYEAR}}}}}}}}
}}
- {{Gregorian serial date
|month = {{{month1|{{{2|{{CURRENTMONTH}}}}}}}}
|day = {{{day1|{{{3|{{CURRENTDAY}}}}}}}}
|year = {{{year1|{{{1|{{CURRENTYEAR}}}}}}}}
}} }}</includeonly><noinclude>[[Category:Date mathematics templates|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[nl:Sjabloon:Aantal dagen]]
[[ru:Шаблон:Days between]]
</noinclude>

Latest revision as of 16:55, 1 January 2022