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

From blackwiki
Jump to navigation Jump to search
blackwiki>Frietjes
blackwiki>Frietjes
Line 1: Line 1:
{{Documentation subpage}}
+
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
{{Module:Location map/data/doc
 
+
| examples =  
'''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.
 
 
 
[[Image:{{{{BASEPAGENAME}}|image}}|left|thumb|200px|Location map for {{{{BASEPAGENAME}}|name}}]]
 
{| class="wikitable"
 
|-
 
! colspan="3" style="background-color:#DDD; color:#000" | Map parameters
 
|-
 
! name
 
| {{{{BASEPAGENAME}}|name}}
 
| name used in default map caption
 
|-
 
! image
 
| {{{{BASEPAGENAME}}|image}}
 
| file name of map image, without "Image:" or "File:"
 
|-
 
! top
 
| {{{{BASEPAGENAME}}|top}}
 
| latitude at top of map
 
|-
 
! bottom
 
| {{{{BASEPAGENAME}}|bottom}}
 
| latitude at bottom of map
 
|-
 
! left
 
| {{{{BASEPAGENAME}}|left}}
 
| longitude at left edge of map
 
|-
 
! right
 
| {{{{BASEPAGENAME}}|right}}
 
| longitude at right edge of map
 
|}
 
{{-}}<!-- force separation break -->
 
 
 
== Usage ==
 
For a description of the parameters, see {{tl|Location map}}.
 
 
 
 
{{Location map
 
{{Location map
| GermanyRhine
+
| Germany Rhine
 
| label = Duisburg
 
| label = Duisburg
 
| label_size = 90 <!-- percent 0-900% -->
 
| label_size = 90 <!-- percent 0-900% -->
Line 51: Line 15:
 
Example labeling "[[Duisburg]]": <code>
 
Example labeling "[[Duisburg]]": <code>
 
:<nowiki>{{Location map</nowiki>
 
:<nowiki>{{Location map</nowiki>
:<nowiki>| GermanyRhine</nowiki>
+
:<nowiki>| Germany Rhine</nowiki>
 
:<nowiki>| label = Duisburg</nowiki>
 
:<nowiki>| label = Duisburg</nowiki>
 
:<nowiki>| label_size = 90  <--percent 0-900%</nowiki>
 
:<nowiki>| label_size = 90  <--percent 0-900%</nowiki>
Line 66: Line 30:
 
<hr/>
 
<hr/>
 
{{Location map
 
{{Location map
| GermanyRhine
+
| Germany Rhine
 
| label = Basel | position=right
 
| label = Basel | position=right
 
| label_size = 80 <!-- percent 0-900% -->
 
| label_size = 80 <!-- percent 0-900% -->
Line 80: Line 44:
 
<code>
 
<code>
 
:<nowiki>{{Location map</nowiki>
 
:<nowiki>{{Location map</nowiki>
:<nowiki>| GermanyRhine</nowiki>
+
:<nowiki>| Germany Rhine</nowiki>
 
:<nowiki>| label=Basel  | position=left</nowiki>
 
:<nowiki>| label=Basel  | position=left</nowiki>
 
:<nowiki>| label_size = 80  <--percent 0-900%</nowiki>
 
:<nowiki>| label_size = 80  <--percent 0-900%</nowiki>
Line 98: Line 62:
 
Example showing "[[Düsseldorf]]" (and "[[Mannheim]]") on one map.
 
Example showing "[[Düsseldorf]]" (and "[[Mannheim]]") on one map.
  
{{Location map many | GermanyRhine
+
{{Location map many | Germany Rhine
 
| caption = Show "Mannheim" & "Düsseldorf"
 
| caption = Show "Mannheim" & "Düsseldorf"
 
| label = Mannheim | label_size = <!-- 0-900%--> 82
 
| label = Mannheim | label_size = <!-- 0-900%--> 82
Line 114: Line 78:
 
}}
 
}}
 
<code>
 
<code>
:<nowiki>{{Location map many | GermanyRhine</nowiki>
+
:<nowiki>{{Location map many | Germany Rhine</nowiki>
 
:<nowiki>| Show "Mannheim" & "Düsseldorf"</nowiki>
 
:<nowiki>| Show "Mannheim" & "Düsseldorf"</nowiki>
 
:<nowiki>| label = Mannheim</nowiki>
 
:<nowiki>| label = Mannheim</nowiki>
Line 142: Line 106:
 
<hr/>
 
<hr/>
 
{{Location map
 
{{Location map
| GermanyRhine
+
| Germany Rhine
 
| label = Düsseldorf | position = top
 
| label = Düsseldorf | position = top
 
| label_size = <!--percent 0-900%--> 128
 
| label_size = <!--percent 0-900%--> 128
Line 154: Line 118:
 
Example labeling "[[Düsseldorf]]" on wrong-scale map:<code>
 
Example labeling "[[Düsseldorf]]" on wrong-scale map:<code>
 
:<nowiki>{{Location map</nowiki>
 
:<nowiki>{{Location map</nowiki>
:<nowiki>| GermanyRhine</nowiki>
+
:<nowiki>| Germany Rhine</nowiki>
 
:<nowiki>| label = Düsseldorf  | position = top</nowiki>
 
:<nowiki>| label = Düsseldorf  | position = top</nowiki>
 
:<nowiki>| label_size = <!-- 0-900%--> 128</nowiki>
 
:<nowiki>| label_size = <!-- 0-900%--> 128</nowiki>
Line 167: Line 131:
 
</code>
 
</code>
 
{{-}}
 
{{-}}
 +
| see also =
 +
* [[Module:Location map/data/Germany]]
 +
* [[Module:Location map/data/Germany Neckar]]
 +
* [[Module:Location map/data/Germany Weser]]
  
== See also ==
+
}}<includeonly>
* [[Template:Location map GermanyNeckar]]
 
* [[Template:Location map GermanyWeser]]
 
<includeonly>
 
 
<!-- CATEGORIES HERE, THANKS -->
 
<!-- CATEGORIES HERE, THANKS -->
 
 
[[Category:Germany location map templates|Rhine]]
 
[[Category:Germany location map templates|Rhine]]
 
[[Category:Maps of Germany|Rhine]]
 
[[Category:Maps of Germany|Rhine]]
 
 
</includeonly>
 
</includeonly>

Revision as of 17:28, 22 March 2018


Location map of Rhine
name Rhine
border
coordinates
53.56
4 ←↕→ 12.02
46.48
map center Lua error: callParserFunction: function "#coordinates" was not found.
image Rhine_watershed_closer.gif
400x400px


Module:Location map/data/Germany Rhine is a location map definition used to overlay markers and labels on an equirectangular projection map of Rhine. The markers are placed by latitude and longitude coordinates on the default map or a similar map image.

Usage

These definitions are used by the following templates when invoked with parameter "Germany Rhine":

Map definition

  • name = Rhine
    Name used in the default map caption
  • bottom = 46.48
    Latitude at bottom edge of map, in decimal degrees
  • left = 4
    Longitude at left edge of map, in decimal degrees
  • right = 12.02
    Longitude at right edge of map, in decimal degrees

Precision

Longitude: from West to East this map definition covers 8.02 degrees.

  • At an image width of 200 pixels, that is 0.0401 degrees per pixel.
  • At an image width of 1000 pixels, that is 0.008 degrees per pixel.

Latitude: from North to South this map definition covers 7.08 degrees.

  • At an image height of 200 pixels, that is 0.0354 degrees per pixel.
  • At an image height of 1000 pixels, that is 0.0071 degrees per pixel.

Examples using location map templates

Example labeling "Duisburg":

{{Location map
| Germany Rhine
| 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
}}

Show "Basel" on map

Example for orange "Basel" at bottom:

{{Location map
| Germany Rhine
| 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.

Show "Mannheim" & "Düsseldorf"

{{Location map many | Germany Rhine
| 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).


"Düsseldorf" put on wrong-scale map

Example labeling "Düsseldorf" on wrong-scale map:

{{Location map
| Germany Rhine
| 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 = Germany location map.svg
}}

See also

Location map templates

Creating new map definitions