Template:PositionMap

From Wikitravel

Jump to: navigation, search

Lage von Hamburg
Hamburg

Hamburg

Lage von Paris
Paris

Paris

Function
The template PositonMap generates a map with a red dot marking the position of the location of a place on this map.
Usage
{{PositionMap| <country code> | <latitude> | <longitude> | <place name> | <width>}}
Parameters
  • country code → defines which map to use. See table further down.
  • latitude → the geographical latitude of the place to mark...
  • longitude → the geographical longitude of the place to mark...
    ... in decimal notation, e.g. "45.5" not "45 30 00". For southern and western coordinates use negativ numbers, "-73.6", not "73.6W". If you want to use the usual degree/minutes/seconds notation, use the Template:Deg2Dec (see example).
  • place name → the name of the place. It appears if you point with your mouse cursor over the red dot. In a later version of this template it might appear under the red dot, too.
  • width → width of the map in px, but do not add "px"! Optional, default is 300px
Examples
{{PositionMap| FR | 48.86 | 2.33 | Paris | 200}}
{{PositionMap| DE | {{Deg2Dec|53|33|0|N}} | {{Deg2Dec|10|0|0|E}} | Hamburg | 200}}

[edit] valid country codes

[edit] Europe

Code Country Map Code Country Map
DE Germany FR
BE
*
France
Belgium
AT Austria IT Italy
ES
PT
*
Spain
Portugal
GR Greece
CH Switzerland PL Poland
BA Bosnia and
Herzegovina
HR Kroatien
TR Türkei

* maybe not quite political correct, for this country the map of its bigger neighbor might be used. Please use the correct country code, so we can easily add a new map.

[edit] America

Code Land Karte Code Land Karte
US USA BZ Belize

[edit] Africa

Code Land Karte Code Land Karte
NA Namibia

[edit] Asia

Code Land Karte Code Land Karte
IN India

...and more to come.

If you want to add another map add an entry to the switch-statement below (you can only see it if you edit this page). For an explaination of the parameters see Template:PositionMap_general.