Difference between revisions of "Template:Age in weeks"
Jump to navigation
Jump to search
blackwiki>M.C. (rvt) |
blackwiki>M.C. |
||
| 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>{{#expr: | + | </noinclude><includeonly>{{floor|{{#expr: |
| − | + | ( | |
+ {{Gregorian serial date | + {{Gregorian serial date | ||
|month = {{{month2|{{CURRENTMONTH}}}}} | |month = {{{month2|{{CURRENTMONTH}}}}} | ||
| Line 13: | Line 13: | ||
}} | }} | ||
) | ) | ||
| − | / 7 | + | / 7 |
| − | + | }} }}</includeonly><noinclude>[[Category:Date mathematics templates|{{PAGENAME}}]] | |
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]</noinclude> | [[Category:Templates using ParserFunctions|{{PAGENAME}}]]</noinclude> | ||
Revision as of 19:30, 23 July 2007
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=}}