Jump to content

Template:Age in days: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
mNo edit summary
 
(24 intermediate revisions by 15 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke:age|age_generic|template=age_days}}</includeonly><noinclude>{{documentation}}</noinclude>
<noinclude>
This template returns the number of days that have elapsed 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 math|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
</noinclude>

Latest revision as of 16:55, 1 January 2022