Template:PlaceNamesAdHocGroup: Difference between revisions
From International Robin Hood Bibliography
mNo edit summary |
mNo edit summary |
||
Line 4: | Line 4: | ||
* '''CenterLat''' – Decimal latitude on which to center map. Mandatory. | * '''CenterLat''' – Decimal latitude on which to center map. Mandatory. | ||
* '''CenterLon''' – Decimal longitude on which to center map. Mandatory. | * '''CenterLon''' – Decimal longitude on which to center map. Mandatory. | ||
* '''Query''' – the SMW Ask string to be used, for instance "<nowiki>[[Category:Robinhood place-names]] AND [[Category:English place-names]]</nowiki>". Mandatory.</div></noinclude><includeonly> | * '''Query''' – the SMW Ask string to be used, for instance "<nowiki>[[Category:Robinhood place-names]] AND [[Category:English place-names]]</nowiki>". Mandatory. | ||
* '''CountryMapWidget'''. Optional, defaults to: '''NavMapEnglishPlaceNames'''.</div></noinclude><includeonly> | |||
{{#vardefine:Country|{{{Country|England}}}}}{{#vardefine:ctyLower|{{lc:{{{Country}}}}}}}{{#vardefine:CountryMapWidget|{{#ifeq:{{#var:ctyLower}}|england|NavMapEnglishPlaceNames|<!--insert name for other country-->}}}} | {{#vardefine:Country|{{{Country|England}}}}}{{#vardefine:ctyLower|{{lc:{{{Country}}}}}}}{{#vardefine:CountryMapWidget|{{#ifeq:{{#var:ctyLower}}|england|NavMapEnglishPlaceNames|<!--insert name for other country-->}}}} | ||
{{#ask: {{{Query}}} | {{#ask: {{{Query}}} | ||
Line 29: | Line 30: | ||
|copycoords=yes | |copycoords=yes | ||
}} | }} | ||
<div id="ctyMapLegend">Localities named after Robin Hood (or members of his band) in {{{Country}}}. 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="ctyMapLegend">Localities named after Robin Hood (or members of his band) in {{{Country}}}. 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 • View <span id='choroMapLegend2'></span> choropleth • View <span id='choroMapLegend3'></span> choropleth • [[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: {{{Query}}} | {{#ask: {{{Query}}} |
Revision as of 16:48, 29 May 2019
This template can be used for displaying maps and charts for English place-names based on ad hoc criteria. It takes the following named parameter:
- Country – Defaults to England. At present other values are ignored.
- Demonym – Defaults to English. At present other values are ignored.
- CenterLat – Decimal latitude on which to center map. Mandatory.
- CenterLon – Decimal longitude on which to center map. Mandatory.
- Query – the SMW Ask string to be used, for instance "[[Category:Robinhood place-names]] AND [[Category:English place-names]]". Mandatory.
- CountryMapWidget. Optional, defaults to: NavMapEnglishPlaceNames.