Template:Location map GermanyNeckar

From Wikipedia, the free encyclopedia

[edit] Template:Location_map_GermanyNeckar

This is a map locator for the Germany Neckar River map, allowing a specified marker-image (parameter "mark=") of set size (defaults "marksize=8") plus an optional name-label to be placed by latitude and longitude coordinates on the default map (or a given image).
This template is used by the parent "Template:Location map" which must be invoked with parameter "GermanyNeckar" to process the options before it uses this template. Specify each of the individual parameters by using vertical bars: {{Location map | GermanyNeckar | ...}}.
Because the map is not equirectangular, the coordinates will need to be adjusted to match northern-area mapping, or use skewed coordinates with "Template:Location map skew".
See: {{Location map}} for description of parameters, or Examples below.
Map for Germany Neckar river
Map for Germany Neckar river
Coordinates
Top 49.71
Bottom 48.0
Left 8.0
Right 9.67
skew 0.86


[edit] Examples

Heilbronn (GermanyNeckar)
Heilbronn
Heilbronn
Show "Heilbronn" on map

Example labeling "Heilbronn":

{{Location map
| GermanyNeckar
| label = Heilbronn
| label_size = 90 <--percent 0-900%
| caption = Show "Heilbronn" on map
| lat_deg = 49 | lat_min = 9
| lon_deg = 09 | lon_min = 13
| background = #FFFF99
| float = right
| width = 250
}}

Rottweil (GermanyNeckar)
Rottweil
Rottweil
Show "Rottweil" on map

Example for orange "Rottweil" at bottom:

{{Location map
| GermanyNeckar
| label=Rottweil | position=left
| label_size = 90 <--percent 0-900%
| caption = Show "Rottweil" on map
| lat_deg=48 | lat_min=10
| lon_deg=08 | lon_min=37
| background = <!--orange-->#FFCC66
| float = right
| width = 220
| AlternativeMap = <!--none(default)-->
}}



Two examples, showing "Rottweil" & "Mannheim" with map position aligned (by using parameters "float=left" and "float=right"). Note that the marker for "Mannheim" is west of the mark, due to narrow longitudes far north (on non-equirectangular map).

Rottweil (GermanyNeckar)
Rottweil
Rottweil
Show "Rottweil" on map
Mannheim (GermanyNeckar)
Mannheim
Mannheim
Show "Mannheim"

Longitude lines converge to the center, so center towns would be positioned more accurately. The "polar" skew factor should be used (as in Template:Location_map_skew) to scale longitude smaller near polar latitudes (relative to map height), and position longitudes from map center, rather than left-side base longitude (see example below).


[edit] Example skewing Rottweil/Mannheim

Example showing "Rottweil" (and "Mannheim") on one map.


Mannheim (GermanyNeckar)
Mannheim
Mannheim
Rottweil   -->
Rottweil
Anytown   -->
Anytown
Show "Mannheim" & "Rottweil"
{{Location map skew | GermanyNeckar
| Show "Mannheim" & "Rottweil"
| skew=0.86
| label = Mannheim
| label_size = <!-- 0-900%--> 82
| lat=49.489 | long=8.469
| marksize=7 | position=top
| bg = <!--gold-->#CCCC11
| label2=Rottweil | label2_size=103
| skew2=0.86 | pos2=bottom
| lat2_deg=48 |lat2_min=10
| lon2_deg=08 |lon2_min=37.5
| bg2 = <!--bluegreen-->#66BBDD
| label3 = Anytown
| label3_size=93 | pos3=top
| lat3_deg=49 | lat3_min=1.1
| lon3_deg=8.5 | lon3_min=0.0
| bg3 = <!--yellow-->#EEEE11
| float = right | width = 250
}}

The map uses alternate Template:Location_map_skew. Note that the marker for "Mannheim" has been placed correctly now (had been west of the mark, due to narrow longitudes far north, on the non-equirectangular map).


Rottweil (GermanyNeckar)
Rottweil
Rottweil
"Rottweil" put on wrong-scale map

Example labeling "Rottweil" on wrong-scale map:

{{Location map
| GermanyNeckar
| label = Rottweil | position = top
| label_size = <!-- 0-900%--> 128
| caption = "Rottweil" put on wrong-scale map
| lat_deg=48 | lat_min=10
| lon_deg=08 | lon_min=37.5
| background = #FFFF99
| float = right
| width = 200
| AlternativeMap = Karte Deutschland.png
}}