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

From blackwiki
Jump to navigation Jump to search
blackwiki>Zyxw
(documentation and category moved from main template to /doc)
 
blackwiki>Plastikspork
Line 4: Line 4:
 
'''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 skew]]".
+
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 37: Line 37:
 
! skew
 
! skew
 
| {{{{BASEPAGENAME}}|skew}}
 
| {{{{BASEPAGENAME}}|skew}}
| to narrow longitudes; see {{tl|Location map skew}}
+
| to narrow longitudes; see {{tl|Location map}}
 
|}
 
|}
 
{{-}}<!-- force separation break -->
 
{{-}}<!-- force separation break -->
  
 
== Usage ==
 
== Usage ==
For a description of the parameters, see {{tl|Location map}} and {{tl|Location map skew}}.
+
For a description of the parameters, see {{tl|Location map}}.
  
 
{{Location map
 
{{Location map
Line 133: Line 133:
 
Example showing "[[Düsseldorf]]" (and "[[Mannheim]]") on one map.
 
Example showing "[[Düsseldorf]]" (and "[[Mannheim]]") on one map.
  
{{Location map skew<!--many--> | GermanyRhine
+
{{Location map many | GermanyRhine
 
| caption = Show "Mannheim" & "Düsseldorf"
 
| caption = Show "Mannheim" & "Düsseldorf"
 
| skew=1.00
 
| skew=1.00
Line 150: Line 150:
 
}}
 
}}
 
<code>
 
<code>
:<nowiki>{{Location map skew | GermanyRhine</nowiki>
+
:<nowiki>{{Location map many | GermanyRhine</nowiki>
 
:<nowiki>| Show "Mannheim" & "Düsseldorf"</nowiki>
 
:<nowiki>| Show "Mannheim" & "Düsseldorf"</nowiki>
 
:<nowiki>| skew=1.00</nowiki>
 
:<nowiki>| skew=1.00</nowiki>
Line 209: Line 209:
 
* [[Template:Location map GermanyWeser]]
 
* [[Template:Location map GermanyWeser]]
 
<includeonly>
 
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<!-- CATEGORIES HERE, THANKS -->
  
 
[[Category:Germany location map templates|Rhine]]
 
[[Category:Germany location map templates|Rhine]]
 
[[Category:Maps of Germany]]
 
[[Category:Maps of Germany]]
 
<!--[[de:Vorlage:Positionskarte Deutschland]]-->
 
  
 
</includeonly>
 
</includeonly>

Revision as of 04:19, 23 March 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.

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
skew Template:Location map/data/Germany Rhine to narrow longitudes; see {{Location 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_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).


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"
| skew=1.00
| 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
| skew2=1.00 | 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
}}

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).



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