Difference between revisions of "Module:Location map/data/Germany Rhine/doc"
blackwiki>Jackmcbarn (skew of 1 the same as no skew - rm to avoid confusion) |
blackwiki>Jackmcbarn m (rm skew of 1.0 - this just slows stuff down) |
||
| Line 131: | Line 131: | ||
{{Location map many | GermanyRhine | {{Location map many | GermanyRhine | ||
| caption = Show "Mannheim" & "Düsseldorf" | | caption = Show "Mannheim" & "Düsseldorf" | ||
| − | |||
| label = Mannheim | label_size = <!-- 0-900%--> 82 | | label = Mannheim | label_size = <!-- 0-900%--> 82 | ||
| lat=49.4890 | long=8.469 | | lat=49.4890 | long=8.469 | ||
| markhigh=8 | position=left | | markhigh=8 | position=left | ||
| bg = <!--gold-->#CCCC11 | | bg = <!--gold-->#CCCC11 | ||
| − | | label2 = Düsseldorf | label2_size =99 | + | | label2 = Düsseldorf | label2_size =99 |
| lat2 = 51.2251 | pos2=left | | lat2 = 51.2251 | pos2=left | ||
| long2 = 6.7757 | | long2 = 6.7757 | ||
| Line 148: | Line 147: | ||
:<nowiki>{{Location map many | GermanyRhine</nowiki> | :<nowiki>{{Location map many | GermanyRhine</nowiki> | ||
:<nowiki>| Show "Mannheim" & "Düsseldorf"</nowiki> | :<nowiki>| Show "Mannheim" & "Düsseldorf"</nowiki> | ||
| − | |||
:<nowiki>| label = Mannheim</nowiki> | :<nowiki>| label = Mannheim</nowiki> | ||
::<nowiki>| label_size = <!-- 0-900%--> 82</nowiki> | ::<nowiki>| label_size = <!-- 0-900%--> 82</nowiki> | ||
| Line 155: | Line 153: | ||
::<nowiki> | bg = <!--gold-->#CCCC11</nowiki> | ::<nowiki> | bg = <!--gold-->#CCCC11</nowiki> | ||
:<nowiki>| label2=Düsseldorf |label2_size=99</nowiki> | :<nowiki>| label2=Düsseldorf |label2_size=99</nowiki> | ||
| − | ::<nowiki> | + | ::<nowiki>| pos2=left</nowiki> |
::<nowiki> | lat2 = 51.2251</nowiki> | ::<nowiki> | lat2 = 51.2251</nowiki> | ||
::<nowiki> | long2 = 6.7757</nowiki> | ::<nowiki> | long2 = 6.7757</nowiki> | ||
Revision as of 01:51, 22 April 2014
| 40px | This is a documentation subpage for Module:Location map/data/Germany Rhine. It contains usage information, categories and other content that is not part of the original module page. |
Template:Location map GermanyRhine is a location map definition used to overlay markers and labels on a map of Germany's Rhine River. It is used by "Template:Location map" when invoked with parameter "GermanyRhine": {{Location map | GermanyRhine | ...}}. The markers are placed by latitude and longitude coordinates on the default map or a similar map image.
Because the map is equirectangular, the coordinates will NOT need to be adjusted to match northern-area mapping, or have skewed coordinates with "Template:Location map".
[[Image:Template:Location map/data/Germany Rhine|left|thumb|200px|Location map for Template:Location map/data/Germany Rhine]]
| Map parameters | ||
|---|---|---|
| name | Template:Location map/data/Germany Rhine | name used in default map caption |
| image | Template:Location map/data/Germany Rhine | file name of map image, without "Image:" or "File:" |
| top | Template:Location map/data/Germany Rhine | latitude at top of map |
| bottom | Template:Location map/data/Germany Rhine | latitude at bottom of map |
| left | Template:Location map/data/Germany Rhine | longitude at left edge of map |
| right | Template:Location map/data/Germany Rhine | longitude at right edge of map |
Usage
For a description of the parameters, see {{Location map}}.
Lua error in Module:Location_map at line 501: Unable to find the specified location map definition: "Module:Location map/data/GermanyRhine" does not exist.
Example labeling "Duisburg":
- {{Location map
- | GermanyRhine
- | label = Duisburg
- | label_size = 90 <--percent 0-900%
- | caption = Show "Duisburg" on map
- | lat = 51.4377
- | long = 6.7706
- | background = #FFFF99
- | float = right
- | width = 260
}}
Lua error in Module:Location_map at line 501: Unable to find the specified location map definition: "Module:Location map/data/GermanyRhine" does not exist.
Example for orange "Basel" at bottom:
- {{Location map
- | GermanyRhine
- | label=Basel | position=left
- | label_size = 80 <--percent 0-900%
- | caption = Show "Basel" on map
- | lat = 47.5597
- | long = 7.5805
- | 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 on the mark, due to parallel longitudes far north (on equirectangular map). Lua error in Module:Location_map at line 501: Unable to find the specified location map definition: "Module:Location map/data/GermanyRhine" does not exist. Lua error in Module:Location_map at line 501: Unable to find the specified location map definition: "Module:Location map/data/GermanyRhine" does not exist. 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) 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).
Example skewing Düsseldorf/Mannheim
Example showing "Düsseldorf" (and "Mannheim") on one map.
Lua error in Module:Location_map/multi at line 143: Unable to find the specified location map definition: "Module:Location map/data/GermanyRhine" does not exist.
- {{Location map many | GermanyRhine
- | Show "Mannheim" & "Düsseldorf"
- | label = Mannheim
- | label_size = <!-- 0-900%--> 82
- | lat=49.489 | long=8.469
- | marksize=7 | position=left
- | bg = <!--gold-->#CCCC11
- | label2=Düsseldorf |label2_size=99
- | pos2=left
- | lat2 = 51.2251
- | long2 = 6.7757
- | bg2 = <!--bluegreen-->#66BBDD
- | label3 = Anytown
- | label3_size=93 | pos3=top
- | lat3_deg=48 | lat3_min=1.1
- | lon3_deg=10 | lon3_min=0.0
- | bg3 = <!--yellow-->#EEEE11
- | float = right | width = 250
}}
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).
Lua error in Module:Location_map at line 501: Unable to find the specified location map definition: "Module:Location map/data/GermanyRhine" does not exist.
Example labeling "Düsseldorf" on wrong-scale map:
- {{Location map
- | GermanyRhine
- | label = Düsseldorf | position = top
- | label_size = <!-- 0-900%--> 128
- | caption = "Düsseldorf" put on wrong-scale map
- | lat = 51.2251
- | long = 6.7757
- | background = #FFFF99
- | float = right
- | width = 200
- | AlternativeMap = Karte Deutschland.png
- }}