960
edits
mNo edit summary |
mNo edit summary |
||
Line 6: | Line 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. | 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>{{MonthDiff|2395|9|5|{{CurrentStarYear}}|{{CURRENTMONTH}}|{{CURRENTDAY2}} | For example, <code><nowiki>{{MonthDiff|2395|9|5|{{CurrentStarYear}}|{{CURRENTMONTH}}|{{CURRENTDAY2}}}}</nowiki></code> produces '''{{MonthDiff|2395|9|5|{{CurrentStarYear}}|{{CURRENTMONTH}}|{{CURRENTDAY2}}}}'''. | ||
If you want to seperate the years and months with a character or word, simply add another argument to the template: <code><nowiki>{{MonthDiff|2394|2|12|2396|15|4|,}}</nowiki></code> which produces '''{{MonthDiff|2394|2|12|2396|7|15|,}}'''. Or use <code><nowiki>{{MonthDiff|2394|2|12|2396|15|4| and}}</nowiki></code> to get '''{{MonthDiff|2392|2|12|2396|12|4| and}}'''. | |||
'''NOTE:''' This does not error check at all.</noinclude> | '''NOTE:''' This does not error check at all.</noinclude> |
edits