Template:PlaceNamesClusterPage: Difference between revisions

From International Robin Hood Bibliography
m (Text replacement - "?pnadmdiv" to "?AdmDiv")
m (Text replacement - "AdmDiv" to "AdministrativeDivision")
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''.
* '''CountryMapWidget'''. Optional. Defaults to: ''NavMapEnglishPlaceNames''.
* '''CountryMapWidget'''. Optional. Defaults to: ''NavMapEnglishPlaceNames''.
</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|NavMapEnglishPlaceNames|<!--insert name for other country-->}}}}{{#vardefine:AdmDivPlurTerm|{{#ifeq:{{{AdmDivPlurTerm|}}}||counties|{{{AdmDivPlurTerm}}}}}}}{{#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:CountryMapWidget|{{#ifeq:{{#var:ctyLower}}|england|NavMapEnglishPlaceNames|<!--insert name for other country-->}}}}{{#vardefine:AdministrativeDivisionPlurTerm|{{#ifeq:{{{AdministrativeDivisionPlurTerm|}}}||counties|{{{AdministrativeDivisionPlurTerm}}}}}}}{{#ask:
[[Category:{{PAGENAME}}]]
[[Category:{{PAGENAME}}]]
|?geopoint
|?geopoint
|?AdmDiv
|?AdministrativeDivision
|?Vicinity
|?Vicinity
|?PlaceNamesType
|?PlaceNamesType

Revision as of 21:30, 5 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: NavMapEnglishPlaceNames.