960
edits
mNo edit summary |
(Description.) |
||
Line 2: | Line 2: | ||
This templates allows you to (approximately) calculate the amount of weeks between two dates. | This templates allows you to (approximately) calculate the amount of weeks between two dates. | ||
For example, <nowiki>{{WeekDiff|2397|5|18|2397|6|6}}</nowiki> produces '''{{WeekDiff|2397|5|18|2397|6|6}}'''. | For example, <code><nowiki>{{WeekDiff|2397|5|18|2397|6|6}}</nowiki></code> produces '''{{WeekDiff|2397|5|18|2397|6|6}}'''. | ||
If you want to use the current date, use <code><nowiki>{{CurrentStarYear}}</nowiki></code> to get the current staryear. Use <code><nowiki>{{CURRENTMONTH}}</nowiki></code> to produce the current month, and <code><nowiki>{{CURRENTDAY2}}</nowiki></code> for the day of the month. | |||
For example, <code><nowiki>{{WeekDiff|2395|9|5|{{CurrentStarYear}}|{{CURRENTMONTH}}|{{CURRENTDAY2}}}}</nowiki></code> produces '''{{WeekDiff|2395|9|5|{{CurrentStarYear}}|{{CURRENTMONTH}}|{{CURRENTDAY2}}}}'''. | |||
'''NOTE:''' This does not error check at all.</noinclude> | '''NOTE:''' This does not error check at all.</noinclude> |
edits