Jump to content

Template:Age in days: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m Protected Template:Age in days: This will likely be used in a bunch of tables, so we don't want vandals messing with it. [edit=sysop:move=sysop]
 
(17 intermediate revisions by 11 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 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