Difference between revisions of "IssueExists"
From Sonic Retro
BSonirachi (talk | contribs) m (Text replacement - "Category:Sonic Retro templates" to "Category:Templates") |
|||
Line 49: | Line 49: | ||
{{#var:link}} | {{#var:link}} | ||
− | [[Category: | + | [[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.
{{#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