Template:PlaceNamesItemNavigation: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
(27 intermediate revisions by the same user not shown)
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="clearfoot"></div><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::<<{{#var:Utitle}}]]|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::>>{{#var:Utitle}}]]|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:AdmDiv}} place-names]][[Utitle::<<{{#var:Utitle}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}}[[{{#var:AdmDiv}} place-names]]{{#ask:[[Category:{{#var:AdmDiv}} place-names]][[Utitle::>>{{#var:Utitle}}]]|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:Glondon}}|||<p>{{#ask:[[Category:London place-names]][[Utitle::<<{{#var:Utitle}}]]|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::>>{{#var:Utitle}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Next|link=none|limit=1|sort=Utitle}}</p>}}
 
{{#ask:[[Category:{{#var:Demonym}} place-names]][[Utitle::<<{{#var:Utitle}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}}[[Place-names]]{{#ask:[[Category:{{#var:Demonym}} place-names]][[Utitle::>>{{#var:Utitle}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Next|link=none|limit=1|sort=Utitle}}</div></div>
 
[[Category:Place-names-topics]][[Category:{{#var:Demonym}} place-names]][[Category:{{#var:AdmDiv}} place-names]]{{#ifeq:{{#var:Glondon}}|||[[Category:London place-names]]}}{{#ifeq:{{#var:Riding}}|||[[Category:{{#var:Riding}} Riding of {{#var:AdmDiv}} place-names]]}}[[Category:{{#var:Pninterest}}]]{{#ifeq:{{#var:Cluster1}}|||[[Category:{{#var:Cluster1}} place-name cluster]]}}{{#ifeq:{{#var:Cluster2}}|||[[Category:{{#var:Cluster2}} place-name cluster]]}}{{#ifeq:{{#var:Cluster3}}|||[[Category:{{#var:Cluster3}} place-name cluster]]}}{{#var:Postcards}}{{#ifeq:{{#var:Century}}|||[[Category:{{#var:CenturyOrdinal}} century]]<br/>{{#set:century={{#var:CenturyOrdinal}}}}}}{{#ifeq:{{#var:ExtraCat1}}|||[[Category:{{#var:ExtraCat1}}]]}}{{#ifeq:{{#var:ExtraCat2}}|||[[Category:{{#var:ExtraCat2}}]]}}{{#ifeq:{{#var:ExtraCat3}}|||[[Category:{{#var:ExtraCat3}}]]}}{{#ifeq:{{#var:ExtraCat4}}|||[[Category:{{#var:ExtraCat4}}]]}}{{#ifeq:{{#var:ExtraCat5}}|||[[Category:{{#var:ExtraCat5}}]]}}{{#ifeq:{{#var:Pntype}}|Artifact|[[Category:Unique artifacts]]|}}{{#set:Pnaka={{#var:Pnaka}}||+sep=;}}{{#set:Utitle={{#var:Utitle}}}}{{#set:Pnimage={{#var:Pnimage}}}}</includeonly>
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]]
{{#ifeq: {{#var:CountryAdj}} ||| [[Category:{{#var:CountryAdj}} place-names]] }}
{{#ifeq: {{#var:County}} ||| [[Category:{{#var:County}} place-names]] }}
{{#ifeq: {{#var:PnClusterRef}} ||| [[Category:{{#var:PnClusterRef}} place-name cluster]]}}
{{#ifeq: {{#var:PnPostcards}} |No|| [[Category:{{#var:County}} postcards]]}}
{{#ifeq:{{#var:Century}}|||[[Category:{{#var:CenturyOrdinal}} century]]<br/>{{#set:century={{#var:CenturyOrdinal}}}}}}
{{#ifeq: {{#var:PnExtraClusterRef}} ||| [[Category:{{#var:PnExtraClusterRef}} place-name cluster]] }}
<!--{{#ifeq:{{#var:PnExtraCategory}}|||[[Category:{{#var:PnExtraCategory}}]]}}-->
{{#set:pnaka={{#var:PnAka}}||+sep=;}}
{{#set:Utitle={{#var:UpperTitle}}}}
{{#set:Pnimage={{#var:Pnimage}}}}</includeonly>

Revision as of 16:29, 15 June 2018

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