Template:PlaceNamesCategory: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
Line 4: Line 4:
* '''CountryAdj'''. Optional. Defaults to: ''English''.
* '''CountryAdj'''. Optional. Defaults to: ''English''.
* '''KmlSource'''. Optional. Defaults to: ''Historical county boundary coordinates provided by the [http://www.county-borders.co.uk/ Historic Counties Trust]''.
* '''KmlSource'''. Optional. Defaults to: ''Historical county boundary coordinates provided by the [http://www.county-borders.co.uk/ Historic Counties Trust]''.
</div></noinclude><includeonly>{{#vardefine:Places|{{#ifeq:{{{Places|}}}||{{PAGENAME}}|{{{Places}}}}}}}{{#vardefine:Country|{{#ifeq:{{{Country|}}}||England|{{{Country}}}}}}}
* '''CountryMapWidget'''. Optional, defaults to: '''NavMapEnglishPlaceNames'''.</div></noinclude><includeonly>{{#vardefine:Places|{{#ifeq:{{{Places|}}}||{{PAGENAME}}|{{{Places}}}}}}}{{#vardefine:Country|{{#ifeq:{{{Country|}}}||England|{{{Country}}}}}}}
{{#vardefine:PlacesSuffix|{{#ifeq:{{#var:Places}}|{{PAGENAME}}|&nbsp;or similar|}}}}{{#vardefine:CountryAdj|{{#ifeq:{{{CountryAdj|}}}||English|{{{CountryAdj}}}}}}}{{#vardefine:ctyLower|{{lc:{{#var:Country}}}}}}{{#vardefine:KmlSource|{{#ifeq:{{{KmlSource|}}}||{{#ifeq:{{#var:ctyLower}}|england|Historical county boundary coordinates provided by the [http://www.county-borders.co.uk/ Historic Counties Trust].|}}|{{{KmlSource}}}}}}}{{#vardefine:CountryMapWidget|{{#ifeq:{{#var:ctyLower}}|england|NavMapEnglishPlaceNames|<!--insert name for other country-->}}}}
{{#vardefine:PlacesSuffix|{{#ifeq:{{#var:Places}}|{{PAGENAME}}|&nbsp;or similar|}}}}{{#vardefine:CountryAdj|{{#ifeq:{{{CountryAdj|}}}||English|{{{CountryAdj}}}}}}}{{#vardefine:ctyLower|{{lc:{{#var:Country}}}}}}{{#vardefine:KmlSource|{{#ifeq:{{{KmlSource|}}}||{{#ifeq:{{#var:ctyLower}}|england|Historical county boundary coordinates provided by the [http://www.county-borders.co.uk/ Historic Counties Trust].|}}|{{{KmlSource}}}}}}}{{#vardefine:CountryMapWidget|{{#ifeq:{{#var:ctyLower}}|england|NavMapEnglishPlaceNames|<!--insert name for other country-->}}}}
{{#ask:
{{#ask:
Line 31: Line 31:
|clusterspiderfy=yes
|clusterspiderfy=yes
}}
}}
<div id="ctyMapLegend">{{{Cat}}}. Click locality marker for link to page.</div>
<div id="ctyMapLegend">{{{Cat}}}. Click cluster marker for locality markers. Click locality marker for link to page. Historical county boundary coordinates provided by the [http://www.county-borders.co.uk/ Historic Counties Trust].</div><div id="navMap"></div><div id="navMapLegend">{{{Demonym}}} counties. Click within any county to go to its landing page. There are also pages on: '''[[London place-names|London]]''', the '''[[East Riding of Yorkshire place-names|East]]''', '''[[North Riding of Yorkshire place-names|North]]''' and '''[[West Riding of Yorkshire place-names|West]]''' Riding of Yorkshire. Historical county boundary coordinates provided by the [http://www.county-borders.co.uk/ Historic Counties Trust].</div><div id="choroMap"></div><div id="choroMapLegend">Viewing '''<span id='choroMapLegend1'></span>''' choropleth &bull; View <span id='choroMapLegend2'></span> choropleth &bull; View <span id='choroMapLegend3'></span> choropleth &bull; [[Place-name choropleths|About the choropleths.]] County boundary data provided by the [http://www.county-borders.co.uk/ Historic Counties Trust]. </div>{{#Widget:{{#var:CountryMapWidget}}}}
<div class="jsCharts" id="tChart">
<div class="jsCharts" id="tChart">
{{#ask:  
{{#ask:  

Revision as of 16:41, 29 May 2019

This template creates the maps and charts on landing pages for categories of place-names in the place-names section of IRHB. It takes the following named parameters:
  • Cat. The category of place-name. Mandatory.
  • Country. Optional. Defaults to: England.
  • CountryAdj. Optional. Defaults to: English.
  • KmlSource. Optional. Defaults to: Historical county boundary coordinates provided by the Historic Counties Trust.
  • CountryMapWidget. Optional, defaults to: NavMapEnglishPlaceNames.