Template:Wmap/doc: Difference between revisions

From Wikishire
Jump to navigation Jump to search
RB (talk | contribs)
mNo edit summary
RB (talk | contribs)
No edit summary
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}


'''{{tl|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.  This will work if the article is tagged with the <nowiki>{{#</nowiki>var:shire<nowiki>}}</nowiki> variable (which is added automatically by any infobox, or if the {{tl|county}} template is used).
'''{{tl|Wmap}}''' adds a link from a latitude and longitude:
 
*to the [http://wikishire.co.uk/map 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:
The parameters are:
Line 7: Line 10:
#latitude
#latitude
#longitude
#longitude
The link to the interactive county map will work if the article is tagged with the <nowiki>{{#</nowiki>var:shire<nowiki>}}</nowiki> variable (which is added automatically by any infobox, or if the {{tl|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.


[[Category:Map templates|Wmap]]
[[Category:Map templates|Wmap]]

Revision as of 21:54, 10 April 2014

Template:Mbox

{{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:

  1. latitude
  2. 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.