Template:PlaceNamesItemNavigation: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
 
(45 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:
<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=ItemPreviousPrefix|template=ItemPrint|outrotemplate=ItemPrevious|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=ItemNextPrefix|template=ItemPrint|outrotemplate=ItemNext|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:AdministrativeDivision}} place-names]][[Utitle::<<{{#var:Utitle}}]]|order=descending|searchlabel=|format=template|introtemplate=ItemPreviousPrefix|template=ItemPrint|outrotemplate=ItemPrevious|link=none|limit=1|sort=Utitle}}[[{{#var:AdministrativeDivision}} place-names]]{{#ask:[[Category:{{#var:AdministrativeDivision}} place-names]][[Utitle::>>{{#var:Utitle}}]]|order=ascending|searchlabel=|format=template|introtemplate=ItemNextPrefix|template=ItemPrint|outrotemplate=ItemNext|link=none|limit=1|sort=Utitle}}
{{#ifeq:{{#var:Glondon}}|||<p>{{#ask:[[Category:London place-names]][[Utitle::<<{{#var:Utitle}}]]|order=descending|searchlabel=|format=template|introtemplate=ItemPreviousPrefix|template=ItemPrint|outrotemplate=ItemPrevious|link=none|limit=1|sort=Utitle}}[[London place-names]]{{#ask:[[Category:London place-names]][[Utitle::>>{{#var:Utitle}}]]|order=ascending|searchlabel=|format=template|introtemplate=ItemNextPrefix|template=ItemPrint|outrotemplate=ItemNext|link=none|limit=1|sort=Utitle}}</p>}}
{{#ask:[[Category:{{#var:Demonym}} place-names]][[Utitle::<<{{#var:Utitle}}]]|order=descending|searchlabel=|format=template|introtemplate=ItemPreviousPrefix|template=ItemPrint|outrotemplate=ItemPrevious|link=none|limit=1|sort=Utitle}}[[Place-names]]{{#ask:[[Category:{{#var:Demonym}} place-names]][[Utitle::>>{{#var:Utitle}}]]|order=ascending|searchlabel=|format=template|introtemplate=ItemNextPrefix|template=ItemPrint|outrotemplate=ItemNext|link=none|limit=1|sort=Utitle}}


These page variables are declared and initialized with default values in boilerplate text.
</div></div>
 
[[Category:Place-names]][[Category:{{#var:Demonym}} place-names]][[Category:{{#var:AdministrativeDivision}} place-names]]{{#ifeq:{{#var:Glondon}}|||[[Category:London place-names]]}}{{#ifeq:{{#var:Riding}}|||[[Category:{{#var:Riding}} Riding of {{#var:AdministrativeDivision}} place-names]]}}[[Category:{{#var:PlaceNamesInterest}}]]{{#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:CenturyOrdinal={{#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:PlaceNamesType}}|Artifact|[[Category:Unique artifacts]]|}}{{#set:Aka={{#var:Aka}}||+sep=;}}{{#set:Utitle={{#var:Utitle}}}}{{#set:Image={{#var:Image}}}}</includeonly>
 
<noinclude>
The template uses the following templates:
<templatedata>
* '''[[template:BeforeNav|BeforeNav]]'''
{
* '''[[template:Nav|Nav]]'''
"params": {},
* '''[[template:Previous|Previous]]'''
"description": "Generates the navigation at the foot of item pages in the place-names section of IRHB"
* '''[[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>}}
</templatedata>
 
</noinclude>
{{#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>

Latest revision as of 04:46, 27 May 2022


Generates the navigation at the foot of item pages in the place-names section of IRHB

Template parameters

ParameterDescriptionTypeStatus
No parameters specified