Vorlage

Positionskarte

Aus VolynWiki




{{#switch: GW | GW =

Lage von Zwiahel
Zwiahel
Zwiahel
{{#if:|
[[Image:{{{insetLL}}}|{{{insetsize}}}px|noframe|Zwiahel]]
}}{{#if:|
[[Image:{{{insetUR}}}|{{{insetsize}}}px|noframe|Zwiahel]]
}}{{#if:|
[[Image:{{{insetLR}}}|{{{insetsize}}}px|noframe|Zwiahel]]
}}{{#if:|
[[Image:{{{insetUL}}}|{{{insetsize}}}px|noframe|Zwiahel]]
}}


| USH =

Lage von Zwiahel
Zwiahel
Zwiahel
{{#if:|
[[Image:{{{insetLL}}}|{{{insetsize}}}px|noframe|Zwiahel]]
}}{{#if:|
[[Image:{{{insetUR}}}|{{{insetsize}}}px|noframe|Zwiahel]]
}}{{#if:|
[[Image:{{{insetLR}}}|{{{insetsize}}}px|noframe|Zwiahel]]
}}{{#if:|
[[Image:{{{insetUL}}}|{{{insetsize}}}px|noframe|Zwiahel]]
}}


| TE =

Lage von Zwiahel
Zwiahel
Zwiahel
{{#if:|
[[Image:{{{insetLL}}}|{{{insetsize}}}px|noframe|Zwiahel]]
}}{{#if:|
[[Image:{{{insetUR}}}|{{{insetsize}}}px|noframe|Zwiahel]]
}}{{#if:|
[[Image:{{{insetLR}}}|{{{insetsize}}}px|noframe|Zwiahel]]
}}{{#if:|
[[Image:{{{insetUL}}}|{{{insetsize}}}px|noframe|Zwiahel]]
}}


| WR =

Lage von Zwiahel
Zwiahel
Zwiahel
{{#if:|
[[Image:{{{insetLL}}}|{{{insetsize}}}px|noframe|Zwiahel]]
}}{{#if:|
[[Image:{{{insetUR}}}|{{{insetsize}}}px|noframe|Zwiahel]]
}}{{#if:|
[[Image:{{{insetLR}}}|{{{insetsize}}}px|noframe|Zwiahel]]
}}{{#if:|
[[Image:{{{insetUL}}}|{{{insetsize}}}px|noframe|Zwiahel]]
}}


| DE =

Lage von Zwiahel
Zwiahel
Zwiahel
{{#if:|
[[Image:{{{insetLL}}}|{{{insetsize}}}px|noframe|Zwiahel]]
}}{{#if:|
[[Image:{{{insetUR}}}|{{{insetsize}}}px|noframe|Zwiahel]]
}}{{#if:|
[[Image:{{{insetLR}}}|{{{insetsize}}}px|noframe|Zwiahel]]
}}{{#if:|
[[Image:{{{insetUL}}}|{{{insetsize}}}px|noframe|Zwiahel]]
}}

}}



{{#switch: DE | GW =

Lage von Hamburg
Hamburg
Hamburg
{{#if:|
[[Image:{{{insetLL}}}|{{{insetsize}}}px|noframe|Hamburg]]
}}{{#if:|
[[Image:{{{insetUR}}}|{{{insetsize}}}px|noframe|Hamburg]]
}}{{#if:|
[[Image:{{{insetLR}}}|{{{insetsize}}}px|noframe|Hamburg]]
}}{{#if:|
[[Image:{{{insetUL}}}|{{{insetsize}}}px|noframe|Hamburg]]
}}


| USH =

Lage von Hamburg
Hamburg
Hamburg
{{#if:|
[[Image:{{{insetLL}}}|{{{insetsize}}}px|noframe|Hamburg]]
}}{{#if:|
[[Image:{{{insetUR}}}|{{{insetsize}}}px|noframe|Hamburg]]
}}{{#if:|
[[Image:{{{insetLR}}}|{{{insetsize}}}px|noframe|Hamburg]]
}}{{#if:|
[[Image:{{{insetUL}}}|{{{insetsize}}}px|noframe|Hamburg]]
}}


| TE =

Lage von Hamburg
Hamburg
Hamburg
{{#if:|
[[Image:{{{insetLL}}}|{{{insetsize}}}px|noframe|Hamburg]]
}}{{#if:|
[[Image:{{{insetUR}}}|{{{insetsize}}}px|noframe|Hamburg]]
}}{{#if:|
[[Image:{{{insetLR}}}|{{{insetsize}}}px|noframe|Hamburg]]
}}{{#if:|
[[Image:{{{insetUL}}}|{{{insetsize}}}px|noframe|Hamburg]]
}}


| WR =

Lage von Hamburg
Hamburg
Hamburg
{{#if:|
[[Image:{{{insetLL}}}|{{{insetsize}}}px|noframe|Hamburg]]
}}{{#if:|
[[Image:{{{insetUR}}}|{{{insetsize}}}px|noframe|Hamburg]]
}}{{#if:|
[[Image:{{{insetLR}}}|{{{insetsize}}}px|noframe|Hamburg]]
}}{{#if:|
[[Image:{{{insetUL}}}|{{{insetsize}}}px|noframe|Hamburg]]
}}


| DE =

Lage von Hamburg
Hamburg
Hamburg
{{#if:|
[[Image:{{{insetLL}}}|{{{insetsize}}}px|noframe|Hamburg]]
}}{{#if:|
[[Image:{{{insetUR}}}|{{{insetsize}}}px|noframe|Hamburg]]
}}{{#if:|
[[Image:{{{insetLR}}}|{{{insetsize}}}px|noframe|Hamburg]]
}}{{#if:|
[[Image:{{{insetUL}}}|{{{insetsize}}}px|noframe|Hamburg]]
}}

}}
Beispielkarte Hamburg

Funktion
Die Vorlage Positionskarte erzeugt eine Landkarte mit einem roten Punkt, der die Position eines Ortes in dieser Karte markiert.
Verwendung
{{Positionskarte| <Ländercode> | <geogr.Breite> | <geogr.Länge> | <Ortsname> | <Breite>}}
Parameter
  • Ländercode → Legt die verwendete Karte fest. Mögliche Codes siehe Tabelle weiter unten.
  • geogr.Breite → die geographische Breite des zu markierenden Ortes...
  • geogr.Länge → die geographische Länge des zu markierenden Ortes...
    ... in Dezimalschreibweise, d.h. z.B. "45.5", nicht "45 30 00". Für südliche und westliche Koordinaten sind negative Zahlen zu verwenden, also "-73.6", nicht "73.6W". Sollen die Koordinaten in der üblichen Grad/Minuten/Sekunden-Schreibweise angegeben werden kann die Vorlage Deg2Dez verwendet werden (siehe dort oder Beispiel unten).
  • Ortsname → der Name des Ortes, er erscheint, wenn man sich mit der Maus über dem roten Punkt befindet. In einer späteren Version evtl. auch unter dem roten Punkt.
  • Breite → Breite der Karte in px, aber ohne "px"! Optional, default ist 300px.


  • map → defines a map image to use. Note that the projection of the map is important. Parallels and meridians have to be straight and perpendicular to each other, as e.g. in the Mercator Projection.
  • mapsize → the width of the map image in px, but do not add "px". Default is 250.
  • lat → latitude of the red dot.
  • long → longitude of the red dot.
  • caption → if you move the mouse cursor over the red dot you will see this text.
  • top → the latitude of the top edge of the map image.
  • left → the longitude of the left edge of the map image.
  • factlat and factlong → factors that tell the template how to position the marker. See below how to calculate them.

Calculation of factlat and factlong

To calculate the values you have to know the latitudes and longitudes of the edges of the map image. If the width and the length of the image differ, you also need to know the sizes of the original image. It is also possible to do the calculations if you know the position of two landmarks on the map, but this can only be done with reasonable effort using an excel-sheet, please contact Flip666 in this case.

If width and height are the same:

  • factlat = 1 / ( latitude of bottom edge - latitude of top edge )
  • factlong = 1 / ( longitude of right edge - longitude of left edge )

If width and height differ factlat has to be corrected:

  • do the calculations as above
  • divide factlat by the image width and multiply it by the image height


Beispiele
{{Positionskarte| FR | 48.86 | 2.33 | Paris | 200}}
{{Positionskarte| DE | 53.55 | 9.99 | Hamburg | 200}}
{{Positionskarte| DE | {{Deg2Dez|53|33|0|N}} | {{Deg2Dez|10|0|0|E}} | Hamburg | 200}}


gültige Ländercodes

Europa

Code Land Karte
GW Gouvernement Wolhynien 1821 1821 gubernia.png
DE Deutschland Germany map modern.png
NGW Oblast Nowograd Wolynsk 1821 Nowograd.png
TE Test 100px



{{#switch: {{{1}}} | DE_alt =

300px
{{{4}}}
{{{4}}}
{{#if:|
[[Image:{{{insetLL}}}|{{{insetsize}}}px|noframe|{{{4}}}]]
}}{{#if:|
[[Image:{{{insetUR}}}|{{{insetsize}}}px|noframe|{{{4}}}]]
}}{{#if:|
[[Image:{{{insetLR}}}|{{{insetsize}}}px|noframe|{{{4}}}]]
}}{{#if:|
[[Image:{{{insetUL}}}|{{{insetsize}}}px|noframe|{{{4}}}]]
}}


| DE =

Lage von {{{4}}}
{{{4}}}
{{{4}}}
{{#if:|
[[Image:{{{insetLL}}}|{{{insetsize}}}px|noframe|{{{4}}}]]
}}{{#if:|
[[Image:{{{insetUR}}}|{{{insetsize}}}px|noframe|{{{4}}}]]
}}{{#if:|
[[Image:{{{insetLR}}}|{{{insetsize}}}px|noframe|{{{4}}}]]
}}{{#if:|
[[Image:{{{insetUL}}}|{{{insetsize}}}px|noframe|{{{4}}}]]
}}


| NGW =

Lage von {{{4}}}
{{{4}}}
{{{4}}}
{{#if:|
[[Image:{{{insetLL}}}|{{{insetsize}}}px|noframe|{{{4}}}]]
}}{{#if:|
[[Image:{{{insetUR}}}|{{{insetsize}}}px|noframe|{{{4}}}]]
}}{{#if:|
[[Image:{{{insetLR}}}|{{{insetsize}}}px|noframe|{{{4}}}]]
}}{{#if:|
[[Image:{{{insetUL}}}|{{{insetsize}}}px|noframe|{{{4}}}]]
}}


| GW =

Lage von {{{4}}}
{{{4}}}
{{{4}}}
{{#if:|
[[Image:{{{insetLL}}}|{{{insetsize}}}px|noframe|{{{4}}}]]
}}{{#if:|
[[Image:{{{insetUR}}}|{{{insetsize}}}px|noframe|{{{4}}}]]
}}{{#if:|
[[Image:{{{insetLR}}}|{{{insetsize}}}px|noframe|{{{4}}}]]
}}{{#if:|
[[Image:{{{insetUL}}}|{{{insetsize}}}px|noframe|{{{4}}}]]
}}


| TE =

300px
{{{4}}}
{{{4}}}
{{#if:|
[[Image:{{{insetLL}}}|{{{insetsize}}}px|noframe|{{{4}}}]]
}}{{#if:|
[[Image:{{{insetUR}}}|{{{insetsize}}}px|noframe|{{{4}}}]]
}}{{#if:|
[[Image:{{{insetLR}}}|{{{insetsize}}}px|noframe|{{{4}}}]]
}}{{#if:|
[[Image:{{{insetUL}}}|{{{insetsize}}}px|noframe|{{{4}}}]]
}}


}}