Template:WeekDiff: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>{{#expr:{{{4}}}*52+{{{5}}}*(4+(1/3))+{{{6}}}/7-({{{1}}}*52+{{{2}}}*(4+(1/3))+{{{3}}}/7)round0}} weeks</includeonly>
<includeonly>{{#expr:{{{4}}}*52+{{{5}}}*(4+(1/3))+{{{6}}}/7-({{{1}}}*52+{{{2}}}*(4+(1/3))+{{{3}}}/7)round0 weeks}}</includeonly><noinclude>
This templates allows you to (approximately) calculate the amount of weeks between two dates.


<noinclude>{{WeekDiff|2397|5|18|2398|6|6}}</noinclude>
For example, <nowiki>{{WeekDiff|2397|5|18|2398|6|6}}</nowiki> produces '''{{WeekDiff|2397|5|18|2398|6|6}}'''.
 
'''NOTE:''' This does not error check at all.</noinclude>
960

edits

Navigation menu