Template:PlaceNamesClusterPage: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
m (Text replacement - "|template=chart-data" to "|template=ChartsData")
 
(26 intermediate revisions by the same user not shown)
Line 4: Line 4:
* '''Demonym'''. Optional. Defaults to: ''English''.
* '''Demonym'''. 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]''.
* '''AdmDivPlurTerm'''. Optional. Defaults to: ''counties''.
* '''AdministrativeDivisionPlurTerm'''. Optional. Defaults to: ''counties''.
</noinclude><includeonly>{{#vardefine:Cluster|{{Trim|{{#replace:{{PAGENAME}}|place-name cluster|}}}}}}{{#vardefine:Country|{{#ifeq:{{{Country|}}}||England|{{{Country}}}}}}}{{#vardefine:Demonym|{{{Demonym|English}}}}} {{#vardefine:ctyLower|{{lc:{{#var:Country}}}}}}{{#vardefine:AdmDivPlurTerm|{{#ifeq:{{{AdmDivPlurTerm|}}}||counties|{{{AdmDivPlurTerm}}}}}}}{{#vardefine:CountryMapWidget|{{#ifeq:{{#var:ctyLower}}|england|NavMapEnglishPlaceNames|<!--insert name for other country-->}}}}{{#ask:
* '''CountryMapWidget'''. Optional. Defaults to: ''PlaceNamesNavigationMapEnglish''.
</noinclude><includeonly>{{#vardefine:Cluster|{{Trim|{{#replace:{{PAGENAME}}|place-name cluster|}}}}}}{{#vardefine:Country|{{{Country|England}}}}}{{#vardefine:Demonym|{{{Demonym|English}}}}} {{#vardefine:ctyLower|{{lc:{{#var:Country}}}}}}{{#vardefine:CountryMapWidget|{{#ifeq:{{#var:ctyLower}}|england|PlaceNamesNavigationMapEnglish|<!--insert name for other country-->}}}}{{#vardefine:AdministrativeDivisionPlurTerm|{{#ifeq:{{{AdministrativeDivisionPlurTerm|}}}||counties|{{{AdministrativeDivisionPlurTerm}}}}}}}{{#ask:
[[Category:{{PAGENAME}}]]
[[Category:{{PAGENAME}}]]
|?geopoint
|?Geopoint
|?pnadmdiv
|?AdministrativeDivision
|?pnvicinity
|?Vicinity
|?pntype
|?PlaceNamesType
|?pninterest
|?PlaceNamesInterest
|?pnstatus
|?PlaceNamesStatus
|?pnfirstrecord#
|?FirstRecord#
|?century
|?CenturyOrdinal
|?pnimage
|?Image
|showtitle=yes
|showtitle=yes
|limit=2000
|limit=2000
|format=leaflet
|format=leaflet
|template=PnPopUp
|template=PlaceNamesPopUp
|markercluster=yes
|markercluster=yes
|clustermaxradius=50
|clustermaxradius=50
Line 25: Line 26:
|height=550
|height=550
|width=34%
|width=34%
|geojson=https://www.irhb.org/wiki/geo/england/country/England.json
|types=roadmap,satellite,hybrid,terrain
|controls=pan,zoom,type,scale,streetview
|enablefullscreen=yes
|enablefullscreen=yes
|copycoords=yes
|copycoords=yes
|zoom=8
}}
}}
<div id="ctyMapLegend">Robin Hood-related localities in or near {{#var:Cluster}}, {{{County}}}. Click locality marker for link to page.</div>
<div id="ctyMapLegend">Robin Hood-related localities in or near {{#var:Cluster}}, {{{County}}}. Click cluster marker for locality markers. Click locality marker for link to page.</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:  
[[Category:{{PAGENAME}}]]
[[Category:{{PAGENAME}}]]
|?pntype
|?PlaceNamesType
|format=template
|format=template
|template=chart-data
|template=ChartsData
|limit=2000
|limit=2000
|sort=Utitle
|sort=Utitle
Line 45: Line 44:
{{#ask:  
{{#ask:  
[[Category:{{PAGENAME}}]]
[[Category:{{PAGENAME}}]]
|?century
|?CenturyOrdinal
|format=template
|format=template
|template=chart-data
|template=ChartsData
|limit=2000
|limit=2000
|sort=Utitle
|sort=Utitle
Line 55: Line 54:
{{#ask:  
{{#ask:  
[[Category:{{PAGENAME}}]]
[[Category:{{PAGENAME}}]]
|?pninterest
|?PlaceNamesInterest
|format=template
|format=template
|template=chart-data
|template=ChartsData
|limit=2000
|limit=2000
|sort=Utitle
|sort=Utitle
Line 65: Line 64:
{{#ask:  
{{#ask:  
[[Category:{{PAGENAME}}]]
[[Category:{{PAGENAME}}]]
|?pnstatus
|?PlaceNamesStatus
|format=template
|format=template
|template=chart-data
|template=ChartsData
|limit=2000
|limit=2000
|sort=Utitle
|sort=Utitle
Line 75: Line 74:
{{#ask:  
{{#ask:  
[[Category:{{PAGENAME}}]]
[[Category:{{PAGENAME}}]]
|?pnfirstrecord#
|?FirstRecord#
|format=template
|format=template
|template=timeline
|template=timeline
|limit=2000
|limit=2000
|sort=Utitle
|sort=Utitle
|link=none
}}
}}
</div>
</div>
{{#widget:PnCharts}}
{{#widget:PlaceNamesCharts}}
</includeonly>
</includeonly>

Latest revision as of 19:18, 7 January 2021

This template creates the maps and charts on place-name cluster pages. It takes the following named parameters:

  • County. The only non-optional parameter.
  • Country. Optional. Defaults to: England.
  • Demonym. Optional. Defaults to: English.
  • KmlSource. Optional. Defaults to: Historical county boundary coordinates provided by the Historic Counties Trust.
  • AdministrativeDivisionPlurTerm. Optional. Defaults to: counties.
  • CountryMapWidget. Optional. Defaults to: PlaceNamesNavigationMapEnglish.