Template:PlaceNamesInBallads: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
Line 5: Line 5:
* '''CountryAdj'''. Optional. Defaults to: ''English''.
* '''CountryAdj'''. Optional. Defaults to: ''English''.
* '''KmlSource'''. Optional. Defaults to: ''Historic county boundary coordinates provided by the [http://www.county-borders.co.uk/ Historic Counties Trust]''.
* '''KmlSource'''. Optional. Defaults to: ''Historic county boundary coordinates provided by the [http://www.county-borders.co.uk/ Historic Counties Trust]''.
</noinclude><includeonly>{{#vardefine:Ballad|{{#ifeq:{{{Ballad|}}}||{{PAGENAME}}}}}}{{#vardefine:BalladDisplayName|{{#ifeq:{{{BalladDisplayName|}}}||{{#replace:{{#var:Ballad}}|Place-names in|}}|{{{BalladDisplayName}}}}}}}{{#vardefine:Country|{{#ifeq:{{{Country|}}}||England|{{{Country}}}}}}}{{#vardefine:CountryAdj|{{#ifeq:{{{CountryAdj|}}}||English|{{{CountryAdj}}}}}}}{{#vardefine:ctyLower|{{lc:{{#var:Country}}}}}}{{#vardefine:KmlSource|{{#ifeq:{{{KmlSource|}}}||{{#ifeq:{{#var:ctyLower}}|england|Historic 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:
* '''CountryMapWidget'''. Optional, defaults to: '''NavMapEnglishPlaceNames'''.</div></noinclude><includeonly>{{#vardefine:Ballad|{{#ifeq:{{{Ballad|}}}||{{PAGENAME}}}}}}{{#vardefine:BalladDisplayName|{{#ifeq:{{{BalladDisplayName|}}}||{{#replace:{{#var:Ballad}}|Place-names in|}}|{{{BalladDisplayName}}}}}}}{{#vardefine:Country|{{#ifeq:{{{Country|}}}||England|{{{Country}}}}}}}{{#vardefine:CountryAdj|{{#ifeq:{{{CountryAdj|}}}||English|{{{CountryAdj}}}}}}}{{#vardefine:ctyLower|{{lc:{{#var:Country}}}}}}{{#vardefine:KmlSource|{{#ifeq:{{{KmlSource|}}}||{{#ifeq:{{#var:ctyLower}}|england|Historic 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:
[[Category:{{#var:Ballad}}]]
[[Category:{{#var:Ballad}}]]
|?geopoint
|?geopoint
Line 29: Line 29:
|copycoords=yes
|copycoords=yes
}}
}}
<div id="ctyMapLegend">Places mentioned or figuring as locale in ''{{#var:BalladDisplayName}}''. Click locality marker for link to page.</div>
<div id="ctyMapLegend">Places mentioned or figuring as locale in ''{{#var:BalladDisplayName}}''. 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:39, 29 May 2019

This template creates the maps and charts on landing pages on place-names in ballads in the place-names section of IRHB. It takes the following named parameters:
  • Ballad. The name of the ballad. Optional. Defaults to the {{PAGENAME}} of the calling page.
  • BalladDisplayName. The name of the ballad shown under the navigation map. Optional. Defaults to the {{PAGENAME}} of the calling page.
  • Country. Optional. Defaults to: England.
  • CountryAdj. Optional. Defaults to: English.
  • KmlSource. Optional. Defaults to: Historic county boundary coordinates provided by the Historic Counties Trust.
  • CountryMapWidget. Optional, defaults to: NavMapEnglishPlaceNames.