Template:Issue: Difference between revisions

From Diskmags Catalog
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 25: Line 25:


<div class="pagination">
<div class="pagination">
   {{#vardefine:title|{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}| No.}}}} }}
   [[{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}| No.}}}} No.{{#expr: {{#replace:{{PAGENAME}}|{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}| No.}}}} No.|}} - 1}}|previous issue]]
  {{#vardefine:number|{{#replace:{{PAGENAME}}|{{#var:title}} No.|}} }}
   [[{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}| No.}}}} No.{{#expr: {{#replace:{{PAGENAME}}|{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}| No.}}}} No.|}} + 1}}|next issue]]
   {{#vardefine:prevNumber|{{#expr: {{#var:number}} - 1}} }}
  {{#vardefine:nextNumber|{{#expr: {{#var:number}} + 1}} }}
 
  [[{{#var:title}} No.{{#var:prevNumber}}|Previous issue]]
  [[{{#var:title}} No.{{#var:nextNumber}}|Next issue]]
</div>
</div>


[[Category:Issue]]
[[Category:Issue]]
</includeonly>
</includeonly>

Revision as of 19:29, 3 December 2024

This is the "Issue" template.

It should be called in the following format:

{{Issue
}}

Edit the page to see the template text.