Difference between revisions of "Template:Age in weeks"

From blackwiki
Jump to navigation Jump to search
blackwiki>M.C.
(Undid revision 146591481 by MC Snowy (talk))
blackwiki>CBDunkerson
(Using floor parserfunction directly rather than through template)
Line 1: Line 1:
 
<noinclude>This template returns the number of weeks 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 weeks|month1= |day1= |year1= |month2= |day2= | year2=}}</nowiki>'''
 
<noinclude>This template returns the number of weeks 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 weeks|month1= |day1= |year1= |month2= |day2= | year2=}}</nowiki>'''
</noinclude><includeonly>{{floor|{{#expr:
+
</noinclude><includeonly>{{#expr:floor {{#expr:
 
           (
 
           (
 
         + {{Gregorian serial date
 
         + {{Gregorian serial date

Revision as of 01:40, 23 July 2008

This template returns the number of weeks 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: {{Age in weeks|month1= |day1= |year1= |month2= |day2= | year2=}}