Template:AllusionsItemNavigation: Difference between revisions
From International Robin Hood Bibliography
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{#vardefine:Nav|{{#ifeq:{{#sub:{{PAGENAME}}|2|2}}|00|{{#expr:{{#sub:{{PAGENAME}}|0|4}}-99}}-{{#sub:{{PAGENAME}}|0|4}}|{{#sub:{{PAGENAME}}|0|2}}01-{{#expr: 1+ {{#sub:{{PAGENAME}}|0|2}}}}00}}}}<noinclude>This template creates the navigation links used at the foot of allusion pages. It takes no parameters.</noinclude><includeonly><div id="dplcatlinks" class="subcategory"><div id="dplcatarea"> | {{#vardefine:Nav|{{#ifeq:{{#sub:{{PAGENAME}}|2|2}}|00|{{#expr:{{#sub:{{PAGENAME}}|0|4}}-99}}-{{#sub:{{PAGENAME}}|0|4}}|{{#sub:{{PAGENAME}}|0|2}}01-{{#expr: 1+ {{#sub:{{PAGENAME}}|0|2}}}}00}}}}<noinclude>This template creates the navigation links used at the foot of allusion pages. It takes no parameters.</noinclude><includeonly><div id="dplcatlinks" class="subcategory"><div id="dplcatarea"> | ||
{{#ask: [[Category:Allusions]][[Utitle::<<{{#replace:{{uc:{{PAGENAME}}}}|'|'}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}}[[Allusions {{#var:Nav}} (links)|links]]<span class="navtxt">{{#var:Nav}}</span>[[Allusions {{#var:Nav}} (texts)| | {{#ask: [[Category:Allusions]][[Utitle::<<{{#replace:{{uc:{{PAGENAME}}}}|'|'}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}}[[Allusions {{#var:Nav}} (links)|links]]<span class="navtxt">{{#var:Nav}}</span>[[Allusions {{#var:Nav}} (texts)|texts]]{{#ask: [[Category:Allusions]][[Utitle::>>{{#replace:{{uc:{{PAGENAME}}}}|'|'}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Next|link=none|limit=1|sort=Utitle}} | ||
[[Allusions]]</div></div>[[Category:Allusions {{#ifeq:{{#sub:{{PAGENAME}}|2|2}}|00|{{#expr:{{#sub:{{PAGENAME}}|0|4}}-99}}-{{#sub:{{PAGENAME}}|0|4}}|{{#sub:{{PAGENAME}}|0|2}}01-{{#expr: 1+ {{#sub:{{PAGENAME}}|0|2}}}}00}}]][[Category:Allusions-topics]]{{#ifeq:{{#var:ExtraCat1}}|||[[Category:Allusions ({{{ExtraCat1}}})]]}}{{#ifeq:{{#var:ExtraCat2}}|||[[Category:Allusions ({{{ExtraCat2}}})]]}}{{#ifeq:{{#var:ExtraCat3}}|||[[Category:Allusions ({{{ExtraCat3}}})]]}}{{#ifeq:{{#var:ExtraCat4}}|||[[Category:Allusions ({{{ExtraCat4}}})]]}}{{#ifeq:{{#var:ExtraCat5}}|||[[Category:Allusions ({{{ExtraCat5}}})]]}}{{#set:Altitle={{#var:Title}}}}{{#set:Utitle={{#replace:{{uc:{{PAGENAME}}}}|'|'}}}}{{#set:Aldecade={{#var:Decade}}}}{{#set:Alquacent={{#var:TwoFirst}}{{#var:QCentury}}}}{{#set:Alhacent={{#var:TwoFirst}}{{#var:HCentury}}}}{{#set:Alcent={{#var:Century}}}}</includeonly> | [[Allusions]]</div></div>[[Category:Allusions {{#ifeq:{{#sub:{{PAGENAME}}|2|2}}|00|{{#expr:{{#sub:{{PAGENAME}}|0|4}}-99}}-{{#sub:{{PAGENAME}}|0|4}}|{{#sub:{{PAGENAME}}|0|2}}01-{{#expr: 1+ {{#sub:{{PAGENAME}}|0|2}}}}00}}]][[Category:Allusions-topics]]{{#ifeq:{{#var:ExtraCat1}}|||[[Category:Allusions ({{{ExtraCat1}}})]]}}{{#ifeq:{{#var:ExtraCat2}}|||[[Category:Allusions ({{{ExtraCat2}}})]]}}{{#ifeq:{{#var:ExtraCat3}}|||[[Category:Allusions ({{{ExtraCat3}}})]]}}{{#ifeq:{{#var:ExtraCat4}}|||[[Category:Allusions ({{{ExtraCat4}}})]]}}{{#ifeq:{{#var:ExtraCat5}}|||[[Category:Allusions ({{{ExtraCat5}}})]]}}{{#set:Altitle={{#var:Title}}}}{{#set:Utitle={{#replace:{{uc:{{PAGENAME}}}}|'|'}}}}{{#set:Aldecade={{#var:Decade}}}}{{#set:Alquacent={{#var:TwoFirst}}{{#var:QCentury}}}}{{#set:Alhacent={{#var:TwoFirst}}{{#var:HCentury}}}}{{#set:Alcent={{#var:Century}}}}</includeonly> |
Revision as of 09:54, 6 June 2018
This template creates the navigation links used at the foot of allusion pages. It takes no parameters.