Template:Month prev: Difference between revisions

From Nottinghack Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
{{#switch: {{#explode:{{{1}}}| |0}} | February = January | March = February | April = March | May = April | June = May | July = June | August = July | September = August | October = September | November = October | December = November | January = December }} {{#ifeq:{{#explode:{{{1}}}| |0}}|January|{{#expr: {{#explode:{{{1}}}| |1}} - 1}}|{{#explode:{{{1}}}| |1}} }}<noinclude>
{{#ifeq:{{#explode:{{{1}}}| |1}}|January|{{#expr: {{#explode:{{{1}}}| |0}} - 1}}|{{#explode:{{{1}}}| |0}} }} {{#switch: {{#explode:{{{1}}}| |1}} | February = January | March = February | April = March | May = April | June = May | July = June | August = July | September = August | October = September | November = October | December = November | January = December }}<noinclude>
==Documentation==
==Documentation==
Template to return previous month from month passed to template in the format: Month YEAR.
Template to return previous month from month passed to template in the format: Month YEAR.
[[Category:Templates utility]]
[[Category:Templates utility]]
</noinclude>
</noinclude>

Latest revision as of 06:21, 25 October 2021

{{{1}}}

Documentation

Template to return previous month from month passed to template in the format: Month YEAR.