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

From blackwiki
Jump to navigation Jump to search
m (12 revisions imported)
 
(10 intermediate revisions by 5 users not shown)
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 GermanyWeser''' is a location map definition used to overlay markers and labels on a map of Germany's [[Weser]] River.  It is used by "[[Template:Location map]]" when invoked with parameter "GermanyWeser": <code><nowiki>{{Location map | GermanyWeser | ...}}</nowiki></code>. The markers are placed by [[latitude]] and [[longitude]] coordinates on the default map or a similar map image.
 
 
 
Because the map is not [[equirectangular]], the coordinates will need to be adjusted to match northern-area mapping, or use skewed coordinates with "[[Template:Location map skew]]".
 
 
 
[[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
 
|-
 
! skew
 
| {{{{BASEPAGENAME}}|skew}}
 
| to narrow longitudes; see {{tl|Location map skew}}
 
|}
 
{{-}}<!-- force separation break -->
 
 
 
== Usage ==
 
For a description of the parameters, see {{tl|Location map}} and {{tl|Location map skew}}.
 
 
 
 
{{Location map
 
{{Location map
| GermanyWeser
+
| Germany Weser
 
| label = Bremen
 
| label = Bremen
 
| label_size = 90 <!-- percent 0-900% -->
 
| label_size = 90 <!-- percent 0-900% -->
Line 54: Line 12:
 
| width = 250
 
| width = 250
 
}}
 
}}
Example labeling "[[Bremen]]":<code>
+
Example labeling "[[Bremen]]":
:<nowiki>{{Location map</nowiki>
+
<pre style="overflow:auto">{{Location map
:<nowiki>| GermanyWeser</nowiki>
+
| Germany Weser
:<nowiki>| label = Bremen</nowiki>
+
| label = Bremen
:<nowiki>| label_size = 90  <--percent 0-900%</nowiki>
+
| label_size = 90  <--percent 0-900%
:<nowiki>| caption = Show "Bremen" on map</nowiki>
+
| caption = Show "Bremen" on map
:<nowiki>| lat=53.075</nowiki>
+
| lat=53.075
:<nowiki>| long=8.8071</nowiki>
+
| long=8.8071
:<nowiki>| background = #FFFF99</nowiki>
+
| background = #FFFF99
:<nowiki>| float = right</nowiki>
+
| float = right
:<nowiki>| width = 250</nowiki>
+
| width = 250
:<nowiki>}}</nowiki>
+
}}</pre>
</code>
+
 
 
{{-}}
 
{{-}}
  
Line 72: Line 30:
 
<hr/>
 
<hr/>
 
{{Location map
 
{{Location map
| GermanyWeser
+
| Germany Weser
 
| label = Bad Hersfeld  | position=left
 
| label = Bad Hersfeld  | position=left
 
| label_size = 90 <!-- percent 0-900% -->
 
| label_size = 90 <!-- percent 0-900% -->
Line 82: Line 40:
 
| AlternativeMap = <!-- none (use default map) -->
 
| AlternativeMap = <!-- none (use default map) -->
 
}}
 
}}
Example for orange "[[Bad Hersfeld]]" at bottom:<code>
+
Example for orange "[[Bad Hersfeld]]" at bottom:
:<nowiki>{{Location map</nowiki>
+
<pre style="overflow:auto">{{Location map
:<nowiki>| GermanyWeser</nowiki>
+
| Germany Weser
:<nowiki>| label=Bad Hersfeld  | position=left</nowiki>
+
| label=Bad Hersfeld  | position=left
:<nowiki>| label_size = 90  <--percent 0-900%</nowiki>
+
| label_size = 90  <--percent 0-900%
:<nowiki>| caption = Show "Bad Hersfeld" on map</nowiki>
+
| caption = Show "Bad Hersfeld" on map
:<nowiki>| lat=50.8689 | long=9.7072</nowiki>
+
| lat=50.8689 | long=9.7072
:<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>
+
}}</pre>
</code>
+
 
 
{{-}}
 
{{-}}
  
Line 101: Line 59:
 
Two examples, showing "Fulda" & "Bremerhaven" with map position aligned (by using parameters "float=left" and "float=right").
 
Two examples, showing "Fulda" & "Bremerhaven" with map position aligned (by using parameters "float=left" and "float=right").
 
Note that the marker for "Bremerhaven" is west of the mark, due to narrow longitudes far north (on non-equirectangular map).
 
Note that the marker for "Bremerhaven" is west of the mark, due to narrow longitudes far north (on non-equirectangular map).
{{Location map | GermanyWeser
+
{{Location map | Germany Weser
 
| label = Fulda
 
| label = Fulda
 
   | label_size = <!-- 0-900%--> 110
 
   | label_size = <!-- 0-900%--> 110
Line 109: Line 67:
 
| float = left | width = 250
 
| float = left | width = 250
 
}}
 
}}
{{Location map | GermanyWeser
+
{{Location map | Germany Weser
 
| caption = Show "Bremerhaven"
 
| caption = Show "Bremerhaven"
| skew=0.91
 
 
| label = Bremerhaven | label_size = <!-- 0-900%--> 82
 
| label = Bremerhaven | label_size = <!-- 0-900%--> 82
   | lat=53.5419 | long=8.5701
+
   | lat=53.53 | long=8.59
   | markhigh=8  | position=top
+
   | position=top
 
   | background = <!--gold-->#CCCC11
 
   | background = <!--gold-->#CCCC11
| label2 = Wolfsburg | label2_size =103 | skew2=0.95
+
| label2 = Wolfsburg | label2_size =103
 
   | lat2 =52.4267 | pos2=left
 
   | lat2 =52.4267 | pos2=left
 
   | long2=10.7893 | bg2 = <!--bluegreen-->#66BBDD
 
   | long2=10.7893 | bg2 = <!--bluegreen-->#66BBDD
Line 124: Line 81:
 
| float = right | width = 250
 
| 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_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'').
+
Longitude lines converge to the center, so center towns would be positioned more accurately.  The "polar" skew factor is used to scale longitude smaller near polar latitudes (relative to map height), and position longitudes from map center, rather than left-side base longitude.
 
{{-}}
 
{{-}}
  
 
<!-- ------------------------- Showing: Bremerhaven/Wolfsburg -->
 
<!-- ------------------------- Showing: Bremerhaven/Wolfsburg -->
 
<hr/>
 
<hr/>
===Example skewing Bremerhaven/Wolfsburg===
+
===Multiple markers on the same map===
 
Example showing "[[Bremerhaven]]" (and "[[Wolfsburg]]") on one map.
 
Example showing "[[Bremerhaven]]" (and "[[Wolfsburg]]") on one map.
  
{{Location map skew<!--many--> | GermanyWeser
+
{{Location map many | Germany Weser
 
| caption = Show "Bremerhaven" & "Wolfsburg"
 
| caption = Show "Bremerhaven" & "Wolfsburg"
| skew=0.91
 
 
| label = Bremerhaven | label_size =<!-- 0-900%--> 84
 
| label = Bremerhaven | label_size =<!-- 0-900%--> 84
   | lat=53.54 | long=8.57
+
   | lat=53.53 | long=8.59
 
   | marksize=7 | position=top
 
   | marksize=7 | position=top
 
   | background = <!--gold-->#CCCC11
 
   | background = <!--gold-->#CCCC11
| label2 = Wolfsburg | label2_size =103 | skew2=0.91
+
| label2 = Wolfsburg | label2_size =103
 
   | lat2 =52.4267 | pos2=left
 
   | lat2 =52.4267 | pos2=left
 
   | long2=10.7893 | bg2 = <!--bluegreen-->#66BBDD
 
   | long2=10.7893 | bg2 = <!--bluegreen-->#66BBDD
Line 147: Line 103:
 
| float = right | width = 230
 
| float = right | width = 230
 
}}
 
}}
<code>
 
:<nowiki>{{Location map skew | GermanyWeser</nowiki>
 
:<nowiki>| Show "Bremerhaven" & "Wolfsburg"</nowiki>
 
:<nowiki>| skew=0.91</nowiki>
 
:<nowiki>| label = Bremerhaven</nowiki>
 
::<nowiki>| label_size = <!-- 0-900%--> 84</nowiki>
 
::<nowiki>  | lat=53.54 | long=8.57</nowiki>
 
::<nowiki>  | marksize=7 | position=top</nowiki>
 
::<nowiki>  | background = <!--gold-->#CCCC11</nowiki>
 
:<nowiki>| label2 = Wolfsburg | label2_size=103</nowiki>
 
::<nowiki>| skew2=0.91</nowiki>
 
::<nowiki>  | lat2=52.4267 | pos2=left</nowiki>
 
::<nowiki>  | long2=10.7893</nowiki>
 
::<nowiki>  | bg2 = <!--bluegreen-->#66BBDD</nowiki>
 
:<nowiki>| label3 = Anytown</nowiki>
 
::<nowiki>  | label3_size=93 | pos3=top</nowiki>
 
::<nowiki>  | lat3_deg=51 | lat3_min=1.1</nowiki>
 
::<nowiki>  | lon3_deg=11 | lon3_min=0.0</nowiki>
 
::<nowiki>  | bg3 = <!--yellow-->#EEEE11</nowiki>
 
:<nowiki>| float = right | width = 230</nowiki>
 
:<nowiki>}}</nowiki>
 
</code>
 
The map uses alternate [[Template:Location_map_skew]].
 
Note that the marker for "Bremerhaven" has been placed correctly now (had been ''west'' of the mark, due to narrow longitudes far north, on the non-equirectangular map).
 
{{-}}
 
<br clear=all/>
 
<div clear=all></div>
 
  
<!-- ---------------------------- Bremen on Wrong Map -->
+
<pre style="overflow:auto">{{Location map many | Germany Weser
<hr/>
+
| Show "Bremerhaven" & "Wolfsburg"
{{Location map
+
| label = Bremerhaven
| GermanyWeser
+
| label_size = <!-- 0-900%--> 84
| label = Bremen  | position = top
+
  | lat=53.53 | long=8.59
| label_size = <!--percent 0-900%--> 128
+
  | marksize=7 | position=top
| caption = "Bremen" put on wrong-scale map
+
  | background = <!--gold-->#CCCC11
| lat=53.0750 | long=8.8071
+
| label2 = Wolfsburg | label2_size=103
| background = #FFFF99
+
  | lat2=52.4267 | pos2=left
| float = right  | width = 200
+
  | long2=10.7893
| AlternativeMap = Karte Deutschland.png
+
  | bg2 = <!--bluegreen-->#66BBDD
}}
+
| label3 = Anytown
Example labeling "[[Bremen]]" on wrong-scale map:<code>
+
  | label3_size=93 | pos3=top
:<nowiki>{{Location map</nowiki>
+
  | lat3_deg=51 | lat3_min=1.1
:<nowiki>| GermanyWeser</nowiki>
+
  | lon3_deg=11 | lon3_min=0.0
:<nowiki>| label = Bremen  | position = top</nowiki>
+
  | bg3 = <!--yellow-->#EEEE11
:<nowiki>| label_size = <!-- 0-900%--> 128</nowiki>
+
| float = right | width = 230
:<nowiki>| caption = "Bremen" put on wrong-scale map</nowiki>
+
}}</pre>
:<nowiki>| lat =53.0750</nowiki>
 
:<nowiki>| long=8.8071</nowiki>
 
:<nowiki>| background = #FFFF99</nowiki>
 
:<nowiki>| float = right</nowiki>
 
:<nowiki>| width = 200</nowiki>
 
:<nowiki>| AlternativeMap = Karte Deutschland.png</nowiki>
 
:<nowiki>}}</nowiki><br/>
 
</code>
 
{{-}}
 
  
== See also ==
+
| see also =  
* [[Template:Location map GermanyNeckar]]
+
* [[Module:Location map/data/Germany]]
* [[Template:Location map GermanyRhine]]
+
* [[Module:Location map/data/Germany Neckar]]
<includeonly>
+
* [[Module:Location map/data/Germany Rhine]]
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
  
 +
}}<includeonly>
 +
<!-- CATEGORIES HERE, THANKS -->
 
[[Category:Germany location map templates|Weser]]
 
[[Category:Germany location map templates|Weser]]
[[Category:Maps of Germany]]
+
[[Category:Maps of Germany|Weser]]
 
 
<!--[[de:Vorlage:Positionskarte Deutschland]]-->
 
 
 
 
</includeonly>
 
</includeonly>

Latest revision as of 06:47, 27 September 2020


Location map of Weser
name Weser
x (100*( ($2 - (12.05 + 8.0)/2)*((1 - 0.91)*($1 - 54.02)/(50.0 - 54.02) + 0.91) + (12.05 + 8.0)/2 - 8.0)/(12.05 - 8.0))
y (100*($1 - 54.02)/(50.0 - 54.02))
image A_Weser_watershed_closer.gif
A Weser watershed closer.gif


Module:Location map/data/Germany Weser is a location map definition used to overlay markers and labels on an equirectangular projection map of Weser. 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 Weser":

Map definition

  • name = Weser
    Name used in the default map caption
  • x = (100*( ($2 - (12.05 + 8.0)/2)*((1 - 0.91)*($1 - 54.02)/(50.0 - 54.02) + 0.91) + (12.05 + 8.0)/2 - 8.0)/(12.05 - 8.0))
    An expression to calculate a location on the map via its longitude; evaluates as 0 along the left edge and 100 along the right edge
  • y = (100*($1 - 54.02)/(50.0 - 54.02))
    An expression to calculate a location on the map via its latitude; evaluates as 0 along the top edge and 100 along the bottom edge


Examples using location map templates

Bremen is located in Weser
Bremen
Bremen
Show "Bremen" on map

Example labeling "Bremen":

{{Location map
| Germany Weser
| label = Bremen
| label_size = 90  <--percent 0-900%
| caption = Show "Bremen" on map
| lat=53.075
| long=8.8071
| background = #FFFF99
| float = right
| width = 250
}}

Bad Hersfeld is located in Weser
Bad Hersfeld
Bad Hersfeld
Show "Bad Hersfeld" on map

Example for orange "Bad Hersfeld" at bottom:

{{Location map
| Germany Weser
| label=Bad Hersfeld  | position=left
| label_size = 90  <--percent 0-900%
| caption = Show "Bad Hersfeld" on map
| lat=50.8689 | long=9.7072
| background = <!--orange-->#FFCC66
| float = right
| width = 220
| AlternativeMap = <!--none(default)-->
}}

Two examples, showing "Fulda" & "Bremerhaven" with map position aligned (by using parameters "float=left" and "float=right"). Note that the marker for "Bremerhaven" is west of the mark, due to narrow longitudes far north (on non-equirectangular map).

Fulda is located in Weser
Fulda
Fulda
Show "Fulda" on map
Bremerhaven is located in Weser
Bremerhaven
Bremerhaven
Show "Bremerhaven"

Longitude lines converge to the center, so center towns would be positioned more accurately. The "polar" skew factor is used to scale longitude smaller near polar latitudes (relative to map height), and position longitudes from map center, rather than left-side base longitude.


Multiple markers on the same map

Example showing "Bremerhaven" (and "Wolfsburg") on one map.

Location map/data/Germany Weser/doc is located in Weser
Bremerhaven
Bremerhaven
Wolfsburg
Wolfsburg
Anytown
Anytown
Show "Bremerhaven" & "Wolfsburg"
{{Location map many | Germany Weser
| Show "Bremerhaven" & "Wolfsburg"
| label = Bremerhaven
| label_size = <!-- 0-900%--> 84
  | lat=53.53 | long=8.59
  | marksize=7 | position=top
  | background = <!--gold-->#CCCC11
| label2 = Wolfsburg | label2_size=103
  | lat2=52.4267 | pos2=left
  | long2=10.7893
  | bg2 = <!--bluegreen-->#66BBDD
| label3 = Anytown
  | label3_size=93 | pos3=top
  | lat3_deg=51 | lat3_min=1.1
  | lon3_deg=11 | lon3_min=0.0
  | bg3 = <!--yellow-->#EEEE11
| float = right | width = 230
}}

See also

Location map templates

Creating new map definitions