Template:PlaceNamesClusterNavigationEnglish: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
This template creates the navigation links used at the foot of place-name cluster landing pages (for English clusters only).
<includeonly><div id="dplcatlinks" class="subcategory"><div id="dplcatarea">
It takes the following parameters:
{{#ifeq:{{{Riding|}}}||{{#ifeq:{{{HomeCounty|}}}|||{{#ask: [[Category:{{{HomeCounty}}} place-name clusters]][[Utitle::<<{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNavigation|template=ItemPrint|outrotemplate=ItemPrevious|link=none|limit=1|sort=Utitle}}[[{{{HomeCounty}}} place-names#clusters|{{{HomeCounty}}} place-name clusters]]{{#ask: [[Category:{{{HomeCounty}}} place-name clusters]][[Utitle::>>{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNavigation|template=ItemPrint|outrotemplate=ItemNext|link=none|limit=1|sort=Utitle}}}}|{{#ask: [[Category:{{{Riding}}} Riding of Yorkshire place-name clusters]][[Utitle::<<{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNavigation|template=ItemPrint|outrotemplate=ItemPrevious|link=none|limit=1|sort=Utitle}}[[{{{Riding}}} Riding of Yorkshire place-names#clusters|{{{Riding}}} Riding of Yorkshire place-name clusters]]{{#ask: [[Category:{{{Riding}}} Riding of Yorkshire place-name clusters]][[Utitle::>>{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNavigation|template=ItemPrint|outrotemplate=ItemNext|link=none|limit=1|sort=Utitle}}}}
* County. Non-optional.
* Riding. Optional. One of: '''East''', '''North''', '''West'''. For Yorkshire place-names only.
* HomeCounty. Optional. One of: '''Essex''', '''Middlesex''', '''Surrey'''. '''Kent'''.
<onlyinclude><includeonly><div id="dplcatlinks" class="subcategory"><div id="dplcatarea">
{{#ifeq:{{{Riding|}}}||{{#ifeq:{{{HomeCounty|}}}|||{{#ask: [[Category:{{{HomeCounty}}} place-name clusters]][[Utitle::<<{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}}[[{{{HomeCounty}}} place-names#clusters|{{{HomeCounty}}} place-name clusters]]{{#ask: [[Category:{{{HomeCounty}}} place-name clusters]][[Utitle::>>{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Next|link=none|limit=1|sort=Utitle}}}}|{{#ask: [[Category:{{{Riding}}} Riding of Yorkshire place-name clusters]][[Utitle::<<{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}}[[{{{Riding}}} Riding of Yorkshire place-names#clusters|{{{Riding}}} Riding of Yorkshire place-name clusters]]{{#ask: [[Category:{{{Riding}}} Riding of Yorkshire place-name clusters]][[Utitle::>>{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Next|link=none|limit=1|sort=Utitle}}}}


{{#ask: [[Category:{{{County}}} place-name clusters]][[Utitle::<<{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}}[[{{{County}}} place-names#clusters|{{{County}}} place-name clusters]]{{#ask: [[Category:{{{County}}} place-name clusters]][[Utitle::>>{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Next|link=none|limit=1|sort=Utitle}}
{{#ask: [[Category:{{{County}}} place-name clusters]][[Utitle::<<{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNavigation|template=ItemPrint|outrotemplate=ItemPrevious|link=none|limit=1|sort=Utitle}}[[{{{County}}} place-names#clusters|{{{County}}} place-name clusters]]{{#ask: [[Category:{{{County}}} place-name clusters]][[Utitle::>>{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNavigation|template=ItemPrint|outrotemplate=ItemNext|link=none|limit=1|sort=Utitle}}


{{#ask: [[Category:English place-name clusters]][[Utitle::<<{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}}[[place-names#clusters|English place-name clusters]]{{#ask: [[Category:English place-name clusters]][[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></onlyinclude>
{{#ask: [[Category:English place-name clusters]][[Utitle::<<{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNavigation|template=ItemPrint|outrotemplate=ItemPrevious|link=none|limit=1|sort=Utitle}}[[place-names#clusters|English place-name clusters]]{{#ask: [[Category:English place-name clusters]][[Utitle::>>{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNavigation|template=ItemPrint|outrotemplate=ItemNext|link=none|limit=1|sort=Utitle}}
 
</div></div></includeonly><noinclude>
<templatedata>
{
"params": {
"Riding": {
"label": "Riding",
"description": "One of the three ridings of Yorkshire",
"example": "East, North, or West",
"type": "string"
},
"HomeCounty": {
"label": "Homee County",
"description": "One of: Essex, Middlesex, Surrey, Kent",
"example": "Middlesex",
"type": "string"
},
"County": {
"label": "County",
"description": "Name of an English pre-1972 county",
"example": "Worcestershire",
"type": "string",
"required": true
}
},
"description": "Creates navigation links at foot of English place-name cluster landing pages"
}
</templatedata>
</noinclude>

Revision as of 12:03, 17 January 2021

Creates navigation links at foot of English place-name cluster landing pages

Template parameters

ParameterDescriptionTypeStatus
RidingRiding

One of the three ridings of Yorkshire

Example
East, North, or West
Stringoptional
Homee CountyHomeCounty

One of: Essex, Middlesex, Surrey, Kent

Example
Middlesex
Stringoptional
CountyCounty

Name of an English pre-1972 county

Example
Worcestershire
Stringrequired