Difference between revisions of "Module:Location map/data/Germany Rhine/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Jackmcbarn
m (rm skew of 1.0 - this just slows stuff down)
blackwiki>Jackmcbarn
(rm references to skew - this map is equirectangular)
Line 3: Line 3:
  
 
'''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": <code><nowiki>{{Location map | GermanyRhine | ...}}</nowiki></code>. The markers are placed by [[latitude]] and [[longitude]] coordinates on the default map or a similar map image.
 
'''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": <code><nowiki>{{Location map | GermanyRhine | ...}}</nowiki></code>. 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:{{{{BASEPAGENAME}}|image}}|left|thumb|200px|Location map for {{{{BASEPAGENAME}}|name}}]]
 
[[Image:{{{{BASEPAGENAME}}|image}}|left|thumb|200px|Location map for {{{{BASEPAGENAME}}|name}}]]
Line 93: Line 91:
 
:<nowiki>| AlternativeMap = <!--none(default)--></nowiki>
 
:<nowiki>| AlternativeMap = <!--none(default)--></nowiki>
 
:<nowiki>}}</nowiki></code>
 
:<nowiki>}}</nowiki></code>
{{-}}
 
 
<!-- ------------------------- Showing 2: Rottweil /Mannheim -->
 
<hr/>
 
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).
 
{{Location map | GermanyRhine
 
| label = Rottweil
 
  | label_size = <!-- 0-900%--> 110
 
  | lat_deg = 48 |lat_min = 10 |lat_sec = 05
 
  | lon_deg = 08 |lon_min = 37 |lon_sec = 29
 
| caption = Show "Rottweil" on map
 
| background = <!--blue-->#5599EE
 
| float = left | width = 250
 
}}
 
{{Location map | GermanyRhine
 
| caption = Show "Mannheim"
 
| skew=0.86
 
| label = Mannheim | label_size = <!-- 0-900%--> 82
 
  | lat=49.4890 | long=8.4691
 
  | markhigh=8  | position=left
 
  | background = <!--gold-->#CCCC11
 
| label2 = Rottweil | label2_size =103 | skew2=0.86
 
  | lat2_deg = 48 |lat2_min = 10 | pos2=bottom
 
  | lon2_deg = 08 |lon2_min = 37.5
 
  | bg2 = <!--bluegreen-->#66BBDD
 
| float = right | width = 250
 
}}
 
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'').
 
 
{{-}}
 
{{-}}
  
 
<!-- ------------------------- Showing: Rottweil /Mannheim -->
 
<!-- ------------------------- Showing: Rottweil /Mannheim -->
 
<hr/>
 
<hr/>
===Example skewing Düsseldorf/Mannheim===
+
===Example showing Düsseldorf/Mannheim===
 
Example showing "[[Düsseldorf]]" (and "[[Mannheim]]") on one map.
 
Example showing "[[Düsseldorf]]" (and "[[Mannheim]]") on one map.
  

Revision as of 01:55, 22 April 2014

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.

[[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)-->
}}

Example showing 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
}}

See also