Actions

Template

IssueExists

From Sonic Retro

Revision as of 19:20, 1 January 2022 by BSonirachi (talk | contribs) (Text replacement - "Category:Sonic Retro templates" to "Category:Templates")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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