Actions

Template

Difference between revisions of "IssueExists"

From Sonic Retro

 
Line 49: Line 49:
 
{{#var:link}}
 
{{#var:link}}
  
[[Category:Sonic Retro templates]]
+
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 19:20, 1 January 2022


Template for checking if a next or previous issue exists. Built mainly for comics, but could be for anything. If it can't find a page, it prints nothing.

To get the output you have to use
{{#var:link}}
otherwise when using it as a link, it tries to shove a div tag in there and doesn't format properly.

Examples

{{IssueExists|Sonic the Hedgehog 034 (Archie)|next}}
{{#var:link}}

Sonic the Hedgehog 035 (Archie)


{{IssueExists|Sonic the Hedgehog 034 (Archie)|prev}}
{{#var:link}}

Sonic the Hedgehog 033 (Archie)


{{IssueExists|Sonic the Hedgehog 432 (Archie)|prev}}
{{#var:link}}


{{IssueExists|Sonic the Comic 006|prev}}
{{#var:link}}

Sonic the Comic 005