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

From blackwiki
Jump to navigation Jump to search
blackwiki>Frietjes
blackwiki>Frietjes
Line 13: Line 13:
 
| width = 260
 
| width = 260
 
}}
 
}}
Example labeling "[[Duisburg]]": <code>
+
Example labeling "[[Duisburg]]":  
:<nowiki>{{Location map</nowiki>
+
<pre style="overflow:auto">{{Location map
:<nowiki>| Germany Rhine</nowiki>
+
| Germany Rhine
:<nowiki>| label = Duisburg</nowiki>
+
| label = Duisburg
:<nowiki>| label_size = 90  <--percent 0-900%</nowiki>
+
| label_size = 90  <--percent 0-900%
:<nowiki>| caption = Show "Duisburg" on map</nowiki>
+
| caption = Show "Duisburg" on map
:<nowiki>| lat  = 51.4377</nowiki>
+
| lat  = 51.4377
:<nowiki>| long = 6.7706</nowiki>
+
| long = 6.7706
:<nowiki>| background = #FFFF99</nowiki>
+
| background = #FFFF99
:<nowiki>| float = right</nowiki>
+
| float = right
:<nowiki>| width = 260</nowiki>
+
| width = 260
:<nowiki>}}</nowiki></code>
+
}}</pre>
 
{{-}}
 
{{-}}
  
Line 42: Line 42:
 
}}
 
}}
 
Example for orange "[[Basel]]" at bottom:
 
Example for orange "[[Basel]]" at bottom:
<code>
+
 
:<nowiki>{{Location map</nowiki>
+
<pre style="overflow:auto">{{Location map
:<nowiki>| Germany Rhine</nowiki>
+
| Germany Rhine
:<nowiki>| label=Basel  | position=left</nowiki>
+
| label=Basel  | position=left
:<nowiki>| label_size = 80  <--percent 0-900%</nowiki>
+
| label_size = 80  <--percent 0-900%
:<nowiki>| caption = Show "Basel" on map</nowiki>
+
| caption = Show "Basel" on map
:<nowiki>| lat  = 47.5597</nowiki>
+
| lat  = 47.5597
:<nowiki>| long = 7.5805</nowiki>
+
| long = 7.5805
:<nowiki>| background = <!--orange-->#FFCC66</nowiki>
+
| background = <!--orange-->#FFCC66
:<nowiki>| float = right</nowiki>
+
| float = right
:<nowiki>| width = 220</nowiki>
+
| width = 220
:<nowiki>| AlternativeMap = <!--none(default)--></nowiki>
+
| AlternativeMap = <!--none(default)-->
:<nowiki>}}</nowiki></code>
+
}}</pre>
 
{{-}}
 
{{-}}
  
Line 77: Line 77:
 
| float = right | width = 250
 
| float = right | width = 250
 
}}
 
}}
<code>
+
 
:<nowiki>{{Location map many | Germany Rhine</nowiki>
+
<pre style="overflow:auto">{{Location map many | Germany Rhine
:<nowiki>| Show "Mannheim" & "Düsseldorf"</nowiki>
+
| Show "Mannheim" & "Düsseldorf"
:<nowiki>| label = Mannheim</nowiki>
+
| label = Mannheim
::<nowiki>| label_size = <!-- 0-900%--> 82</nowiki>
+
| label_size = <!-- 0-900%--> 82
::<nowiki>  | lat=49.489 | long=8.469</nowiki>
+
  | lat=49.489 | long=8.469
::<nowiki>  | marksize=7 | position=left</nowiki>
+
  | marksize=7 | position=left
::<nowiki>  | bg = <!--gold-->#CCCC11</nowiki>
+
  | bg = <!--gold-->#CCCC11
:<nowiki>| label2=Düsseldorf |label2_size=99</nowiki>
+
| label2=Düsseldorf |label2_size=99
::<nowiki>| pos2=left</nowiki>
+
| pos2=left
::<nowiki>  | lat2  = 51.2251</nowiki>
+
  | lat2  = 51.2251
::<nowiki>  | long2 = 6.7757</nowiki>
+
  | long2 = 6.7757
::<nowiki>  | bg2 = <!--bluegreen-->#66BBDD</nowiki>
+
  | bg2 = <!--bluegreen-->#66BBDD
:<nowiki>| label3 = Anytown</nowiki>
+
| label3 = Anytown
::<nowiki>  | label3_size=93 | pos3=top</nowiki>
+
  | label3_size=93 | pos3=top
::<nowiki>  | lat3_deg=48  | lat3_min=1.1</nowiki>
+
  | lat3_deg=48  | lat3_min=1.1
::<nowiki>  | lon3_deg=10  | lon3_min=0.0</nowiki>
+
  | lon3_deg=10  | lon3_min=0.0
::<nowiki>  | bg3 = <!--yellow-->#EEEE11</nowiki>
+
  | bg3 = <!--yellow-->#EEEE11
:<nowiki>| float = right | width = 250</nowiki>
+
| float = right | width = 250
:<nowiki>}}</nowiki></code>
+
}}</pre>
  
 
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).
 
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).
{{-}}
 
{{clear}}
 
<div clear=all></div>
 
 
<!-- ---------------------------- Düsseldorf on Wrong Map -->
 
<hr/>
 
{{Location map
 
| Germany Rhine
 
| label = Düsseldorf | position = top
 
| label_size = <!--percent 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
 
}}
 
Example labeling "[[Düsseldorf]]" on wrong-scale map:<code>
 
:<nowiki>{{Location map</nowiki>
 
:<nowiki>| Germany Rhine</nowiki>
 
:<nowiki>| label = Düsseldorf  | position = top</nowiki>
 
:<nowiki>| label_size = <!-- 0-900%--> 128</nowiki>
 
:<nowiki>| caption = "Düsseldorf" put on wrong-scale map</nowiki>
 
:<nowiki>| lat  = 51.2251</nowiki>
 
:<nowiki>| long = 6.7757</nowiki>
 
:<nowiki>| background = #FFFF99</nowiki>
 
:<nowiki>| float = right</nowiki>
 
:<nowiki>| width = 200</nowiki>
 
:<nowiki>| AlternativeMap = Germany location map.svg</nowiki>
 
:<nowiki>}}</nowiki><br/>
 
</code>
 
{{-}}
 
 
| see also =  
 
| see also =  
 
* [[Module:Location map/data/Germany]]
 
* [[Module:Location map/data/Germany]]

Revision as of 17:51, 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
Rhine watershed closer.gif


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

Duisburg is located in Rhine
Duisburg
Duisburg
Show "Duisburg" on map

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

Basel is located in Rhine
Basel
Basel
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.

Location map/data/Germany Rhine/doc is located in Rhine
Mannheim
Mannheim
Düsseldorf
Düsseldorf
Anytown
Anytown
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).

See also

Location map templates

Creating new map definitions