Jump to content

Template:Previous Session: Difference between revisions

From greyhawk
mNo edit summary
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
This template creates a link to the previous session page.
This template creates a link to the previous session page.
</noinclude>
</noinclude>
{{#ifexpr:{{#replace:{{#replace:{{PAGENAME}}|{{NAMESPACEE}}:||}}|Session ||}} > 1
{{#iferror:{{#expr:{{#invoke:String|match|{{PAGENAME}}|%d+}}}}
| [[Session {{#expr:{{#replace:{{#replace:{{PAGENAME}}|{{NAMESPACEE}}:||}}|Session ||}} - 1}}]]
| (Invalid session name)
| {{#ifexpr:{{#invoke:String|match|{{PAGENAME}}|%d+}} > 1
| [[Session {{#expr:{{#invoke:String|match|{{PAGENAME}}|%d+}} - 1}}]]
| (No prior session)
| (No prior session)
}}
}}
}}

Latest revision as of 01:42, 14 March 2025

This template creates a link to the previous session page.

(Invalid session name)