Open main menu

Changes

Fix to work at end of long months
{{#time:F Y|{{#time:Y-m-d|{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}} +1 month}}<noinclude>{{Documentation}}

<!--

Before this marvelous edit by [[User:MSGJ|MSGJ]] this template was dependend on two other templates (Month+1 and NextYear) and looked like this:

{{Month+1}} {{#ifeq:{{CURRENTMONTHNAME}}|December|{{NextYear}}|{{CURRENTYEAR}}}}

If we'd want this template not to be dependend upon those two other templates, it should look like this:

{{#switch:{{{1|{{CURRENTMONTHNAME}}}}}
|January=February
|February=March
|March=April
|April=May
|May=June
|June=July
|July=August
|August=September
|September=October
|October=November
|November=December
|December=January
|#default={{CURRENTMONTHNAME}}
}} {{#ifeq:{{CURRENTMONTHNAME}}|December|{{#expr: {{{1|{{CURRENTYEAR}}}}}+1}}|{{CURRENTYEAR}}}}

-->

</noinclude>
Anonymous user