Template:Wmap: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
|United Kingdom | |United Kingdom | ||
|Republic of Ireland | |Republic of Ireland | ||
|Isle of Man={{#vardefine:zoom|{{#if:{{{zoom|}}}|{{{zoom}}}|11}}}}{{#vardefine:base|{{#if:{{{base|}}}|/base={{{base}}}|}}}}[http://wikishire.co.uk/map/#/centre={{{1}}},{{{2}}}/zoom={{#var:zoom}}{{#var:base}} {{lat & long|{{{1}}}|{{{2}}} }}] | |Isle of Man={{#vardefine:zoom|{{#if:{{{zoom|}}}|{{{zoom}}}|11}}}}{{#vardefine:base|{{#if:{{{base|}}}|/base={{{base}}}|}}}}{#vardefine:name|{{#if:{{{name=|}}}|/name={{{name}}}|}}}}[http://wikishire.co.uk/map/#/centre={{{1}}},{{{2}}}/zoom={{#var:zoom}}{{#var:base}}{{#var:name}} {{lat & long|{{{1}}}|{{{2}}} }}] | ||
|{{googlemap|{{{1}}}|{{{2}}}}}}}</includeonly><noinclude> | |{{googlemap|{{{1}}}|{{{2}}}}}}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} |
Revision as of 11:28, 20 January 2016
[edit] [{{#invoke:Purge|main}}] Template documentation
{{Wmap}} adds a link from a latitude and longitude:
- to the Interactive county map, if the location is in the United Kingdom, Isle of Man or Republic of Ireland; or
- to GoogleMaps if the location is elsewhere.
The parameters are:
- latitude
- longitude
The link to the interactive county map will work if the article is tagged with the {{#var:shire}} variable (which is added automatically by any infobox, or if the {{county}} template is used to tag it). If the article has no infobox and is not county-tagged, the link will go to GoogleMaps, even if the location is in the British Isles.
Optional parameters are:
- "zoom=level" sets the zoom level.
- "base=layer" sets the map base layer.
- "name=label" creates a pop-up cloud label.
The above documentation is transcluded from Template:Wmap/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |