Template:PlaceNamesCommon: Difference between revisions
From International Robin Hood Bibliography
mNo edit summary |
mNo edit summary |
||
Line 5: | Line 5: | ||
* '''PlacesSuffix'''. Optional. Defaults to: ''or similar''. | * '''PlacesSuffix'''. Optional. Defaults to: ''or similar''. | ||
* '''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]''. | ||
* '''Rezoom'''. Optional. If not set to ''No'', defaults to: ''Yes''.</div></noinclude><includeonly> | * '''Rezoom'''. Optional. If not set to ''No'', defaults to: ''Yes''. | ||
* '''CountryMapWidget'''. Optional, defaults to: '''NavMapEnglishPlaceNames'''.</div></noinclude><includeonly> | |||
{{#vardefine:Rezoom|{{#ifeq:{{{Rezoom}}}|no|no|yes}}}}{{#vardefine:Places|{{#ifeq:{{{Places|}}}||{{PAGENAME}}|{{{Places}}}}}}}{{#vardefine:Country|{{#ifeq:{{{Country|}}}||England|{{{Country}}}}}}} | {{#vardefine:Rezoom|{{#ifeq:{{{Rezoom}}}|no|no|yes}}}}{{#vardefine:Places|{{#ifeq:{{{Places|}}}||{{PAGENAME}}|{{{Places}}}}}}}{{#vardefine:Country|{{#ifeq:{{{Country|}}}||England|{{{Country}}}}}}} | ||
{{#vardefine:PlacesSuffix|{{#ifeq:{{#var:Places}}|{{PAGENAME}}| {{{PlacesSuffix| or similar}}} |}}}}{{#vardefine:CountryAdj|{{#ifeq:{{{CountryAdj|}}}||English|{{{CountryAdj}}}}}}}{{#vardefine:ctyLower|{{lc:{{#var:Country}}}}}}{{#vardefine:KmlSource|{{#ifeq:{{{KmlSource|}}}||{{#ifeq:{{#var:ctyLower}}|england|Historical county boundary coordinates provided by the [http://www.county-borders.co.uk/ Historic Counties Trust].|}}|{{{KmlSource}}}}}}}{{#vardefine:CountryMapWidget|{{#ifeq:{{#var:ctyLower}}|england|NavMapEnglishPlaceNames|<!--insert name for other country-->}}}}{{#ask: | {{#vardefine:PlacesSuffix|{{#ifeq:{{#var:Places}}|{{PAGENAME}}| {{{PlacesSuffix| or similar}}} |}}}}{{#vardefine:CountryAdj|{{#ifeq:{{{CountryAdj|}}}||English|{{{CountryAdj}}}}}}}{{#vardefine:ctyLower|{{lc:{{#var:Country}}}}}}{{#vardefine:KmlSource|{{#ifeq:{{{KmlSource|}}}||{{#ifeq:{{#var:ctyLower}}|england|Historical county boundary coordinates provided by the [http://www.county-borders.co.uk/ Historic Counties Trust].|}}|{{{KmlSource}}}}}}}{{#vardefine:CountryMapWidget|{{#ifeq:{{#var:ctyLower}}|england|NavMapEnglishPlaceNames|<!--insert name for other country-->}}}}{{#ask: |
Revision as of 16:35, 29 May 2019
This template creates the maps and charts on landing pages for common place-names in the place-names section of IRHB. It takes the following named parameters:
- Places. The common place-name. Optional. Defaults to the {{PAGENAME}} of the calling page.
- Country. Optional. Defaults to: England.
- CountryAdj. Optional. Defaults to: English.
- PlacesSuffix. Optional. Defaults to: or similar.
- KmlSource. Optional. Defaults to: Historical county boundary coordinates provided by the Historic Counties Trust.
- Rezoom. Optional. If not set to No, defaults to: Yes.
- CountryMapWidget. Optional, defaults to: NavMapEnglishPlaceNames.