Template:PlaceNamesClusterPage: Difference between revisions

From International Robin Hood Bibliography
m (Text replacement - "pnvicinity" to "Vicinity")
m (Text replacement - "|template=chart-data" to "|template=ChartsData")
 
(7 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''.
* '''CountryMapWidget'''. Optional. Defaults to: ''NavMapEnglishPlaceNames''.
* '''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|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|PlaceNamesNavigationMapEnglish|<!--insert name for other country-->}}}}{{#vardefine:AdministrativeDivisionPlurTerm|{{#ifeq:{{{AdministrativeDivisionPlurTerm|}}}||counties|{{{AdministrativeDivisionPlurTerm}}}}}}}{{#ask:
[[Category:{{PAGENAME}}]]
[[Category:{{PAGENAME}}]]
|?geopoint
|?Geopoint
|?pnadmdiv
|?AdministrativeDivision
|?Vicinity
|?Vicinity
|?PlaceNamesType
|?PlaceNamesType
|?PlaceNamesInterest
|?PlaceNamesInterest
|?pnstatus
|?PlaceNamesStatus
|?FirstRecord#
|?FirstRecord#
|?CenturyOrdinal
|?CenturyOrdinal
Line 20: Line 20:
|limit=2000
|limit=2000
|format=leaflet
|format=leaflet
|template=PnPopUp
|template=PlaceNamesPopUp
|markercluster=yes
|markercluster=yes
|clustermaxradius=50
|clustermaxradius=50
Line 36: Line 36:
|?PlaceNamesType
|?PlaceNamesType
|format=template
|format=template
|template=chart-data
|template=ChartsData
|limit=2000
|limit=2000
|sort=Utitle
|sort=Utitle
Line 46: Line 46:
|?CenturyOrdinal
|?CenturyOrdinal
|format=template
|format=template
|template=chart-data
|template=ChartsData
|limit=2000
|limit=2000
|sort=Utitle
|sort=Utitle
Line 56: Line 56:
|?PlaceNamesInterest
|?PlaceNamesInterest
|format=template
|format=template
|template=chart-data
|template=ChartsData
|limit=2000
|limit=2000
|sort=Utitle
|sort=Utitle
Line 64: 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 82: Line 82:
}}
}}
</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.