Positionskarte
Aus VolynWiki
Version vom 6. November 2009, 14:12 Uhr von Admin (Diskussion | Beiträge)
Version vom 6. November 2009, 14:12 Uhr von Admin (Diskussion | Beiträge)
{{#switch: GW
| GW =
{{#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 =
{{#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 =
{{#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 =
{{#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 =
{{#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 =
{{#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 =
{{#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 =
{{#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 =
{{#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 =
{{#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 | |
DE | Deutschland | |
NGW | Oblast Nowograd Wolynsk | |
TE | Test | 100px |
{{#switch: {{{1}}}
| DE_alt =
300px{{#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 =
{{#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 =
{{#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 =
{{#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{{#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}}}]]
}}
}}