Template:PlaceNamesItemNavigation: Difference between revisions

From International Robin Hood Bibliography
(Created page with "<div id="dplcatlinks" class="subcategory"><div id="dplcatarea"> {{#ifeq: {{#var:Riding}}|NONE||<p>{{#ask: [[Category:{{#var:Riding}} Riding of Yorkshire place-names]]Utitle:...")
 
mNo edit summary
Line 1: Line 1:
<div id="dplcatlinks" class="subcategory"><div id="dplcatarea">
<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:
*'''Riding''' &ndash; must have value ''NONE'' if riding links are not to be displayed
*'''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.
 
 
These page variables are declared and initialized with default values in boilerplate text.
 
 
The template uses the following templates:
* BeforeNav
* Nav
* Previous
* 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}}}}
{{#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}}}}


{{#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}}
{{#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>}}
{{#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>
{{#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></includeonly>

Revision as of 06:47, 18 November 2017

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:
  • Riding – must have value NONE if riding links are not to be displayed
  • Utitle – all-Uppercase, punctuation-free version of {{PAGENAME}}
  • County – the county in which the place-name in question is located
  • GreaterLondon – If this variable does not have an empty value, links for London will be included.


These page variables are declared and initialized with default values in boilerplate text.


The template uses the following templates:

  • BeforeNav
  • Nav
  • Previous
  • Next.