Template:TopicNavigation: Difference between revisions
From International Robin Hood Bibliography
mNo edit summary |
m (Text replacement - "introtemplate=BeforeNav|" to "introtemplate=BeforeNavigation|") |
||
Line 1: | Line 1: | ||
<noinclude><div class="no-img">This template displays the navigation link at the foot of IRHB's main topic landing pages (Allusions, Analogues etc.) It takes no variables.</div></noinclude><includeonly>{{#vardefine:utitle|{{#replace:{{uc:{{PAGENAME}}}}|'|'}}}}<div id="dplcatlinks" class="subcategory"><div id="dplcatarea"> | <noinclude><div class="no-img">This template displays the navigation link at the foot of IRHB's main topic landing pages (Allusions, Analogues etc.) It takes no variables.</div></noinclude><includeonly>{{#vardefine:utitle|{{#replace:{{uc:{{PAGENAME}}}}|'|'}}}}<div id="dplcatlinks" class="subcategory"><div id="dplcatarea"> | ||
{{#ifeq:{{PAGENAME}}|Main Page|{{#ask: [[Category:Topics]]|order=ascending|searchlabel=|format=template|introtemplate= | {{#ifeq:{{PAGENAME}}|Main Page|{{#ask: [[Category:Topics]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNavigation|template=Nav|outrotemplate=Next|link=none|limit=1|offset=0|sort=Utitle}}|{{#ask: [[Category:Topics]][[Utitle::<<{{#var:utitle}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNavigation|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}}[[Main_Page|Home]]{{#ask: [[Category:Topics]][[Utitle::>>{{#var:utitle}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNavigation|template=Nav|outrotemplate=Next|link=none|limit=1|sort=Utitle}}}} | ||
</div></div> | </div></div> | ||
{{#ifeq:{{PAGENAME}}|Main Page|[[Category:IRHB]]|[[Category:Topics]] | {{#ifeq:{{PAGENAME}}|Main Page|[[Category:IRHB]]|[[Category:Topics]] | ||
[[Category:{{PAGENAME}}-topics]]}} | [[Category:{{PAGENAME}}-topics]]}} | ||
{{#set:Utitle={{#var:utitle}}}}</includeonly> | {{#set:Utitle={{#var:utitle}}}}</includeonly> |
Revision as of 11:13, 7 January 2021
This template displays the navigation link at the foot of IRHB's main topic landing pages (Allusions, Analogues etc.) It takes no variables.