Template:PlaceNamesClusterPage: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
Line 5: Line 5:
* '''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''.
* '''AdmDivPlurTerm'''. 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:
</noinclude><includeonly>{{#vardefine:Cluster|{{Trim|{{#replace:{{PAGENAME}}|place-name cluster|}}}}}}{{#vardefine:Country|{{{Country|England}}}}}{{#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:
[[Category:{{PAGENAME}}]]
[[Category:{{PAGENAME}}]]
|?geopoint
|?geopoint
Line 25: Line 25:
|height=550
|height=550
|width=34%
|width=34%
|geojson=https://www.irhb.org/wiki/geo/england/country/{{{Country}}}.json
|geojson=https://www.irhb.org/wiki/geo/england/country/{{#var:Country}}.json
|types=roadmap,satellite,hybrid,terrain
|types=roadmap,satellite,hybrid,terrain
|controls=pan,zoom,type,scale,streetview
|controls=pan,zoom,type,scale,streetview

Revision as of 02:43, 17 April 2019

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.
  • AdmDivPlurTerm. Optional. Defaults to: counties.