Due to persistent vandalism, account creation has been suspended. If you would like an account, please contact Charlie Reams on Apterous.

Difference between revisions of "Template:Episodecat"

From Countdown
m
(I think this is right. This should cause it to update automatically, but I'll have to put into use first.)
Line 1: Line 1:
 
<div style="float:right; border: 2px outset black; margin: 4pt 8pt 4pt 8pt;">
 
<div style="float:right; border: 2px outset black; margin: 4pt 8pt 4pt 8pt;">
{{#if:{{{previous|}}}|[[:Category:Episodes in Series {{{previous}}}|&lt; Previous]] &#124;}}{{#if:{{{next|}}}|[[:Category:Episodes in Series {{{next}}}| Next &gt;]]}}
+
{{#ifexist:Category:Episodes in Series {{#expr: {{{previous}}} - 1|[[:Category:Episodes in Series {{#expr: {{{previous}}} - 1 }}|&lt; Previous]] &#124;|}}}}{{#ifexist:Category:Episodes in Series {{#expr: {{{next|}}} + 1|[[:Category:Episodes in Series {{#expr: {{{next}}} + 1 }}| Next &gt;]]|}}}}
 
</div><noinclude>[[Category:Templates|Episodecat]]</noinclude>
 
</div><noinclude>[[Category:Templates|Episodecat]]</noinclude>

Revision as of 20:38, 5 January 2017