Template:PlaceNamesItemNavigation: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
Line 1: Line 1:
<noinclude><div class="no-img">This template generates the navigation at the foot of item pages in the place-names section of IRHB. It takes no parameters but requires the following page parameters to be defined:
<noinclude><div class="no-img">This template generates the navigation at the foot of item pages in the place-names section of IRHB. It takes no parameters.</div></noinclude><includeonly><div id="dplcatlinks" class="subcategory"><div id="dplcatarea">
* '''Riding''' &ndash; must have value ''NONE'' if riding links are not to be displayed, otherwise ''East'', ''North'' or ''West''
{{#ifeq:{{#var:Riding}}|||<p>{{#ask:[[Category:{{#var:Riding}} Riding of Yorkshire place-names]][[Utitle::<<{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}}[[{{#var:Riding}} Riding of Yorkshire place-names]]{{#ask:[[Category:{{#var:Riding}} Riding of Yorkshire place-names]][[Utitle::>>{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Next|link=none|limit=1|sort=Utitle}}</p>}}
* '''Utitle''' &ndash; all-Uppercase, punctuation-free version of ''<nowiki>{{PAGENAME}}</nowiki>''
* '''County''' &ndash; the county in which the place-name in question is located
* '''GreaterLondon''' &ndash; If this variable does not have an empty value, links for London will be included.


 
{{#ask:[[Category:{{#var:County}} place-names]][[Utitle::<<{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}}[[{{#var:County}} place-names]]{{#ask:[[Category:{{#var:County}} place-names]][[Utitle::>>{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Next|link=none|limit=1|sort=Utitle}}
These page variables are declared and initialized with default values in boilerplate text.
{{#ifeq: {{#var:GreaterLondon}}|||<p>{{#ask:[[Category:London place-names]][[Utitle::<<{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}}[[London place-names]]{{#ask:[[Category:London place-names]][[Utitle::>>{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Next|link=none|limit=1|sort=Utitle}}</p>}}
 
{{#ask:[[Category:English place-names]][[Utitle::<<{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}}[[Place-names]]{{#ask:[[Category:English place-names]][[Utitle::>>{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Next|link=none|limit=1|sort=Utitle}}</div></div>
 
The template uses the following templates:
* '''[[template:BeforeNav|BeforeNav]]'''
* '''[[template:Nav|Nav]]'''
* '''[[template:Previous|Previous]]'''
* '''[[template:Next|Next]]'''.</div></noinclude><includeonly><div id="dplcatlinks" class="subcategory"><div id="dplcatarea">
{{#ifeq: {{#var:Riding}}|NONE||<p>{{#ask: [[Category:{{#var:Riding}} Riding of Yorkshire place-names]][[Utitle::<<{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}}[[{{#var:Riding}} Riding of Yorkshire place-names]]{{#ask: [[Category:{{#var:Riding}} Riding of Yorkshire place-names]][[Utitle::>>{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Next|link=none|limit=1|sort=Utitle}}</p>}}
 
{{#ask: [[Category:{{#var:County}} place-names]][[Utitle::<<{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}}[[{{#var:County}} place-names]]{{#ask: [[Category:{{#var:County}} place-names]][[Utitle::>>{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Next|link=none|limit=1|sort=Utitle}}
{{#ifeq: {{#var:GreaterLondon}}|||<p>{{#ask: [[Category:London place-names]][[Utitle::<<{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}}[[London place-names]]{{#ask: [[Category:London place-names]][[Utitle::>>{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Next|link=none|limit=1|sort=Utitle}}</p>}}
{{#ask: [[Category:English place-names]][[Utitle::<<{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}}[[Place-names]]{{#ask: [[Category:English place-names]][[Utitle::>>{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Next|link=none|limit=1|sort=Utitle}}</div></div>
[[Category:Place-names-topics]]
[[Category:Place-names-topics]]
{{#ifeq:{{#var:CountryAdj}}|||[[Category:{{#var:CountryAdj}} place-names]]}}
{{#ifeq:{{#var:CountryAdj}}|||[[Category:{{#var:CountryAdj}} place-names]]}}

Revision as of 18:05, 30 November 2017

This template generates the navigation at the foot of item pages in the place-names section of IRHB. It takes no parameters.