Jump to content

Template:Age in days: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
rm "that have elapsed ", the template works also for future
 
(15 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|{{CURRENTMONTH}}}}}
|day = {{{day2|{{CURRENTDAY}}}}}
|year = {{{year2|{{CURRENTYEAR}}}}}
}}
- {{Gregorian serial date
|month = {{{month1|{{CURRENTMONTH}}}}}
|day = {{{day1|{{CURRENTDAY}}}}}
|year = {{{year1|{{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