Difference between revisions of "Module:Location map/data/Germany Weser/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 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.
 
 
 
[[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:"
 
|-
 
! y
 
| {{{{BASEPAGENAME}}|y}}
 
| formula for y percentage
 
|-
 
! x
 
| {{{{BASEPAGENAME}}|x}}
 
| formula for x percentage
 
|}
 
{{-}}<!-- force separation break -->
 
 
 
== Usage ==
 
For a description of the parameters, see {{tl|Location map}} and {{tl|Location map many}}.
 
 
 
 
{{Location map
 
{{Location map
| GermanyWeser
+
| Germany Weser
 
| label = Bremen
 
| label = Bremen
 
| label_size = 90 <!-- percent 0-900% -->
 
| label_size = 90 <!-- percent 0-900% -->
Line 44: Line 14:
 
Example labeling "[[Bremen]]":<code>
 
Example labeling "[[Bremen]]":<code>
 
:<nowiki>{{Location map</nowiki>
 
:<nowiki>{{Location map</nowiki>
:<nowiki>| GermanyWeser</nowiki>
+
:<nowiki>| Germany Weser</nowiki>
 
:<nowiki>| label = Bremen</nowiki>
 
:<nowiki>| label = Bremen</nowiki>
 
:<nowiki>| label_size = 90  <--percent 0-900%</nowiki>
 
:<nowiki>| label_size = 90  <--percent 0-900%</nowiki>
Line 60: 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 72: Line 42:
 
Example for orange "[[Bad Hersfeld]]" at bottom:<code>
 
Example for orange "[[Bad Hersfeld]]" at bottom:<code>
 
:<nowiki>{{Location map</nowiki>
 
:<nowiki>{{Location map</nowiki>
:<nowiki>| GermanyWeser</nowiki>
+
:<nowiki>| Germany Weser</nowiki>
 
:<nowiki>| label=Bad Hersfeld  | position=left</nowiki>
 
:<nowiki>| label=Bad Hersfeld  | position=left</nowiki>
 
:<nowiki>| label_size = 90  <--percent 0-900%</nowiki>
 
:<nowiki>| label_size = 90  <--percent 0-900%</nowiki>
Line 89: 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 97: Line 67:
 
| float = left | width = 250
 
| float = left | width = 250
 
}}
 
}}
{{Location map | GermanyWeser
+
{{Location map | Germany Weser
 
| caption = Show "Bremerhaven"
 
| caption = Show "Bremerhaven"
 
| label = Bremerhaven | label_size = <!-- 0-900%--> 82
 
| label = Bremerhaven | label_size = <!-- 0-900%--> 82
Line 119: Line 89:
 
Example showing "[[Bremerhaven]]" (and "[[Wolfsburg]]") on one map.
 
Example showing "[[Bremerhaven]]" (and "[[Wolfsburg]]") on one map.
  
{{Location map many | GermanyWeser
+
{{Location map many | Germany Weser
 
| caption = Show "Bremerhaven" & "Wolfsburg"
 
| caption = Show "Bremerhaven" & "Wolfsburg"
 
| label = Bremerhaven | label_size =<!-- 0-900%--> 84
 
| label = Bremerhaven | label_size =<!-- 0-900%--> 84
Line 134: Line 104:
 
}}
 
}}
 
<code>
 
<code>
:<nowiki>{{Location map many | GermanyWeser</nowiki>
+
:<nowiki>{{Location map many | Germany Weser</nowiki>
 
:<nowiki>| Show "Bremerhaven" & "Wolfsburg"</nowiki>
 
:<nowiki>| Show "Bremerhaven" & "Wolfsburg"</nowiki>
 
:<nowiki>| label = Bremerhaven</nowiki>
 
:<nowiki>| label = Bremerhaven</nowiki>
Line 157: Line 127:
 
<hr/>
 
<hr/>
 
{{Location map
 
{{Location map
| GermanyWeser
+
| Germany Weser
 
| label = Bremen  | position = top
 
| label = Bremen  | position = top
 
| label_size = <!--percent 0-900%--> 128
 
| label_size = <!--percent 0-900%--> 128
Line 168: Line 138:
 
Example labeling "[[Bremen]]" on wrong-scale map:<code>
 
Example labeling "[[Bremen]]" on wrong-scale map:<code>
 
:<nowiki>{{Location map</nowiki>
 
:<nowiki>{{Location map</nowiki>
:<nowiki>| GermanyWeser</nowiki>
+
:<nowiki>| Germany Weser</nowiki>
 
:<nowiki>| label = Bremen  | position = top</nowiki>
 
:<nowiki>| label = Bremen  | position = top</nowiki>
 
:<nowiki>| label_size = <!-- 0-900%--> 128</nowiki>
 
:<nowiki>| label_size = <!-- 0-900%--> 128</nowiki>
Line 181: Line 151:
 
</code>
 
</code>
 
{{-}}
 
{{-}}
 +
| see also =
 +
* [[Module:Location map/data/Germany]]
 +
* [[Module:Location map/data/Germany Neckar]]
 +
* [[Module:Location map/data/Germany Rhine]]
  
== See also ==
+
}}<includeonly>
* [[Template:Location map GermanyNeckar]]
+
<!-- CATEGORIES HERE, THANKS -->
* [[Template:Location map GermanyRhine]]
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
 
 
 
[[Category:Germany location map templates|Weser]]
 
[[Category:Germany location map templates|Weser]]
 
[[Category:Maps of Germany|Weser]]
 
[[Category:Maps of Germany|Weser]]
 
<!--[[de:Vorlage:Positionskarte Deutschland]]-->
 
 
 
</includeonly>
 
</includeonly>

Revision as of 17:29, 22 March 2018


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
400x400px


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

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


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

Show "Fulda" on map
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.

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


"Bremen" put on wrong-scale map

Example labeling "Bremen" on wrong-scale map:

{{Location map
| Germany Weser
| label = Bremen | position = top
| label_size = <!-- 0-900%--> 128
| caption = "Bremen" put on wrong-scale map
| lat =53.0750
| long=8.8071
| background = #FFFF99
| float = right
| width = 200
| AlternativeMap = Germany location map.svg
}}

See also

Location map templates

Creating new map definitions