Template:Finmonth: Difference between revisions

From Nottinghack Wiki
Jump to navigation Jump to search
m Reverted edits by Lwk (talk) to last revision by Jon
Tag: Rollback
No edit summary
Line 1: Line 1:
For the previous month see [[{{#explode:{{SUBPAGENAME}}| |0}} {{Month prev|{{#explode:{{SUBPAGENAME}}| |1}} {{#explode:{{SUBPAGENAME}}| |2}}}}|{{Month prev|{{#explode:{{SUBPAGENAME}}| |1}} {{#explode:{{SUBPAGENAME}}| |2}}}}]], for the next month see [[{{#explode:{{SUBPAGENAME}}| |0}} {{Month next|{{#explode:{{SUBPAGENAME}}| |1}} {{#explode:{{SUBPAGENAME}} | |2}}}}|{{Month next|{{#explode:{{SUBPAGENAME}}| |1}} {{#explode:{{SUBPAGENAME}}| |2}}}}]].<noinclude>
<includeonly>
For the previous month see [[{{#explode:{{SUBPAGENAME}}| |0}} {{#ifexpr:{{#explode:{{#explode:{{SUBPAGENAME}}| |1}}|-|1}} = 1 |{{#expr:{{#explode:{{#explode:{{SUBPAGENAME}}| |1}}|-|0}} - 1}}|{{#explode:{{#explode:{{SUBPAGENAME}}| |1}}|-|0}}}}-{{padleft:{{MonthNumPrev|{{#explode:{{#explode:{{SUBPAGENAME}}| |1}}|-|1}}}}|2|0}} {{MonthNamePrev|{{#explode:{{SUBPAGENAME}}| |2}}}}]], for the next month see [[{{#explode:{{SUBPAGENAME}}| |0}} {{#ifexpr:{{#explode:{{#explode:{{SUBPAGENAME}}| |1}}|-|1}} = 12|{{#expr:{{#explode:{{#explode:{{SUBPAGENAME}}| |1}}|-|0}} + 1}}|{{#explode:{{#explode:{{SUBPAGENAME}}| |1}}|-|0}}}}-{{padleft:{{MonthNumNext|{{#explode:{{#explode:{{SUBPAGENAME}}| |1}}|-|1}}}}|2|0}} {{MonthNameNext|{{#explode:{{SUBPAGENAME}}| |2}}}}]].
</includeonly>
 
<noinclude>
==Documentation==
==Documentation==
Template to give links for previous and next month based on page name, in format: Word Month YEAR.
Template to give links for previous and next month based on page name, in format: Word YYYY-MM Month.
[[Category:Templates highlighting]]
[[Category:Templates highlighting]]
</noinclude>
</noinclude>

Revision as of 19:47, 27 November 2025


Documentation

Template to give links for previous and next month based on page name, in format: Word YYYY-MM Month.