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

From blackwiki
Jump to navigation Jump to search
m (11 revisions imported)
 
(7 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 GermanyNeckar''' is a location map definition used to overlay markers and labels on a map of Germany's [[Neckar]] River.  It is used by "[[Template:Location map]]" when invoked with parameter "GermanyNeckar": <code><nowiki>{{Location map | GermanyNeckar | ...}}</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}}.
 
 
 
== Examples ==
 
 
=== Mannheim ===
 
=== Mannheim ===
The example on the left shows the correct placement of [[Mannheim]] when ''GermanyNeckar'' is used with {{tl|Location map skew}}. The example on the right shows the incorrect placement via {{tl|Location map}}.
+
The example on the left shows the correct placement of [[Mannheim]] when ''Germany Neckar'' is used with {{tl|Location map}}.  
  
Note that the marker for "Mannheim" is west of the mark, due to narrow longitudes far north (on non-equirectangular map). 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'').
+
Note that the marker for "Mannheim" is west of the mark, due to narrow longitudes far north (on non-equirectangular map). 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]]) 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'').
  
{{Location map skew | GermanyNeckar
+
{{Location map | Germany Neckar
| width = 250 | float = left
+
| width = 250 | float = right
| caption = Example using ''Location map skew''
 
| label = Mannheim | label_size = 90
 
| background = #CCCC11 | position = bottom
 
| lat_deg = 49.4890
 
| lon_deg = 8.4691
 
}}
 
{{Location map | GermanyNeckar
 
| width = 250 | float = center
 
 
| caption = Example using ''Location map''
 
| caption = Example using ''Location map''
 
| label = Mannheim | label_size = 90
 
| label = Mannheim | label_size = 90
Line 66: Line 15:
 
| lon_deg = 8.4691
 
| lon_deg = 8.4691
 
}}
 
}}
{{clear}}
+
<pre style="overflow:auto">{{Location map | Germany Neckar
<nowiki>{{</nowiki>Location map skew | GermanyNeckar
+
  | width = 250 | float = right
| width = 250 | float = left
 
| caption = Example using ''Location map skew''
 
| label = Mannheim | label_size = 90
 
| background = #CCCC11 | position = bottom
 
| lat_deg = 49.4890
 
| lon_deg = 8.4691
 
}}
 
<nowiki>{{</nowiki>Location map | GermanyNeckar
 
  | width = 250 | float = center
 
 
  | caption = Example using ''Location map''
 
  | caption = Example using ''Location map''
 
  | label = Mannheim | label_size = 90
 
  | label = Mannheim | label_size = 90
Line 82: Line 22:
 
  | lat_deg = 49.4890
 
  | lat_deg = 49.4890
 
  | lon_deg = 8.4691
 
  | lon_deg = 8.4691
  }}
+
  }}</pre>
 
+
{{Clear right}}
 
=== Rottweil ===
 
=== Rottweil ===
The example on the left shows the correct placement of [[Rottweil]] when ''GermanyNeckar'' is used with {{tl|Location map skew}}. The example on the right shows the incorrect placement via {{tl|Location map}}.
+
The example shows the correct placement of [[Rottweil]] when ''Germany Neckar'' is used with {{tl|Location map}}.
  
{{Location map skew | GermanyNeckar
+
{{Location map | Germany Neckar
| width = 250 | float = left
+
| width = 250 | float = right
| caption = Example using ''Location map skew''
 
| label = Rottweil | label_size = 90
 
| background = #FFCC66 | position = top
 
| lat_deg = 48 | lat_min = 10 |lat_sec = 05
 
| lon_deg = 08 | lon_min = 37 |lon_sec = 29
 
}}
 
{{Location map | GermanyNeckar
 
| width = 250 | float = center
 
 
| caption = Example using ''Location map''
 
| caption = Example using ''Location map''
 
| label = Rottweil | label_size = 90
 
| label = Rottweil | label_size = 90
Line 103: Line 35:
 
| lon_deg = 08 | lon_min = 37 |lon_sec = 29
 
| lon_deg = 08 | lon_min = 37 |lon_sec = 29
 
}}
 
}}
{{clear}}
+
<pre style="overflow:auto">{{Location map | Germany Neckar
<nowiki>{{</nowiki>Location map skew | GermanyNeckar
+
  | width = 250 | float = right
| width = 250 | float = left
 
| caption = Example using ''Location map skew''
 
| label = Rottweil | label_size = 90
 
| background = #FFCC66 | position = top
 
| lat_deg = 48 | lat_min = 10 |lat_sec = 05
 
| lon_deg = 08 | lon_min = 37 |lon_sec = 29
 
}}
 
<nowiki>{{</nowiki>Location map | GermanyNeckar
 
  | width = 250 | float = center
 
 
  | caption = Example using ''Location map''
 
  | caption = Example using ''Location map''
 
  | label = Rottweil | label_size = 90
 
  | label = Rottweil | label_size = 90
Line 119: Line 42:
 
  | lat_deg = 48 | lat_min = 10 |lat_sec = 05
 
  | lat_deg = 48 | lat_min = 10 |lat_sec = 05
 
  | lon_deg = 08 | lon_min = 37 |lon_sec = 29
 
  | lon_deg = 08 | lon_min = 37 |lon_sec = 29
  }}
+
  }}</pre>
 
+
{{Clear right}}
 
=== Multiple markers on one map ===
 
=== Multiple markers on one map ===
The example on the left shows the correct placement of locations when ''GermanyNeckar'' is used with {{tl|Location map skew}}. The example on the right shows the incorrect placement via {{tl|Location map many}}.
+
The example on the left shows the correct placement of locations when ''Germany Neckar'' is used with {{tl|Location map}}.  
  
{{Location map skew | GermanyNeckar
+
{{Location map many | Germany Neckar
| width = 250 | float = left
+
| width = 250 | float = right
| caption = Example using ''Location map skew''
 
| label = Mannheim | label_size = 110
 
  | bg = #CCCC11 | pos = bottom
 
  | lat_deg = 49.4890
 
  | lon_deg = 8.469
 
| label2 = Rottweil | label2_size = 100
 
  | bg2 = #66BBDD | pos2 = top
 
  | lat2_deg = 48 | lat2_min = 10
 
  | lon2_deg = 08 | lon2_min = 37.5
 
| label3 = Heilbronn | label3_size = 90
 
  | bg3 = #FFFF99 | pos3 = top
 
  | lat3_deg = 49 | lat3_min = 9
 
  | lon3_deg = 09 | lon3_min = 13
 
}}
 
{{Location map many | GermanyNeckar
 
| width = 250 | float = center
 
 
| caption = Example using ''Location map many''
 
| caption = Example using ''Location map many''
 
| label = Mannheim | label_size = 110
 
| label = Mannheim | label_size = 110
Line 156: Line 63:
 
   | lon3_deg = 09 | lon3_min = 13
 
   | lon3_deg = 09 | lon3_min = 13
 
}}
 
}}
{{clear}}
+
<pre style="overflow:auto">{{Location map many | Germany Neckar
<nowiki>{{</nowiki>Location map skew | GermanyNeckar
+
  | width = 250 | float = right
| width = 250 | float = left
 
| caption = Example using ''Location map skew''
 
| label = Mannheim | label_size = 110
 
  | bg = #CCCC11 | pos = bottom
 
  | lat_deg = 49.4890
 
  | lon_deg = 8.469
 
| label2 = Rottweil | label2_size = 100
 
  | bg2 = #66BBDD | pos2 = top
 
  | lat2_deg = 48 | lat2_min = 10
 
  | lon2_deg = 08 | lon2_min = 37.5
 
| label3 = Heilbronn | label3_size = 90
 
  | bg3 = #FFFF99 | pos3 = top
 
  | lat3_deg = 49 | lat3_min = 9
 
  | lon3_deg = 09 | lon3_min = 13
 
}}
 
<nowiki>{{</nowiki>Location map many | GermanyNeckar
 
  | width = 250 | float = center
 
 
  | caption = Example using ''Location map many''
 
  | caption = Example using ''Location map many''
 
  | label = Mannheim | label_size = 100
 
  | label = Mannheim | label_size = 100
Line 188: Line 78:
 
   | lat3_deg = 49 | lat3_min = 9
 
   | lat3_deg = 49 | lat3_min = 9
 
   | lon3_deg = 09 | lon3_min = 13
 
   | lon3_deg = 09 | lon3_min = 13
  }}
+
  }}</pre>
 
+
{{Clear right}}
=== Rottweil on wrong map ===
+
| see also =  
The example on the left shows the correct placement of [[Rottweil]] on the default map image. The example on the right shows the incorrect placement when a map using different border coordinates is specified via the ''AlternativeMap'' parameter.
+
* [[Module:Location map/data/Germany]]
 
+
* [[Module:Location map/data/Germany Rhine]]
{{Location map skew | GermanyNeckar
+
* [[Module:Location map/data/Germany Weser]]
| width = 250 | float = left
 
| label = Rottweil | label_size = 110
 
| position = top | background = #FFFF99
 
| caption = "Rottweil" put on correct map
 
| lat_deg=48 | lat_min=10
 
| lon_deg=08 | lon_min=37.5
 
}}
 
{{Location map skew | GermanyNeckar
 
| AlternativeMap = Karte Deutschland.png
 
| width = 250 | float = right
 
| label = Rottweil | label_size = 110
 
| position = top | background = #FFFF99
 
| caption = "Rottweil" put on wrong-scale map
 
| lat_deg=48 | lat_min=10
 
| lon_deg=08 | lon_min=37.5
 
}}
 
{{clear}}
 
<nowiki>{{</nowiki>Location map skew | GermanyNeckar
 
| width = 250 | float = left
 
| label = Rottweil | label_size = 110
 
| position = top | background = #FFFF99
 
| caption = "Rottweil" put on correct map
 
| lat_deg=48 | lat_min=10
 
| lon_deg=08 | lon_min=37.5
 
}}
 
<nowiki>{{</nowiki>Location map skew | GermanyNeckar
 
| AlternativeMap = Karte Deutschland.png
 
| width = 250 | float = right
 
| label = Rottweil | label_size = 110
 
| position = top | background = #FFFF99
 
| caption = "Rottweil" put on wrong-scale map
 
| lat_deg=48 | lat_min=10
 
| lon_deg=08 | lon_min=37.5
 
}}
 
 
 
== See also ==
 
* [[Template:Location map GermanyRhine]]
 
* [[Template:Location map GermanyWeser]]
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
  
 +
}}<includeonly>
 +
<!-- CATEGORIES HERE, THANKS -->
 
[[Category:Germany location map templates|Neckar]]
 
[[Category:Germany location map templates|Neckar]]
[[Category:Maps of Germany]]
+
[[Category:Maps of Germany|Neckar]]
 
 
<!--[[de:Vorlage:Positionskarte Deutschland]]-->
 
 
 
 
</includeonly>
 
</includeonly>

Latest revision as of 06:47, 27 September 2020


Location map of Neckar
name Neckar
x (100*( ($2 - (9.67 + 8.0)/2)*((1 - 0.86)*($1 - 49.71)/(48.0 - 49.71) + 0.86) + (9.67 + 8.0)/2 - 8.0)/(9.67 - 8.0))
y (100*($1 - 49.71)/(48.0 - 49.71))
image Neckar_watershed_closer.gif
Neckar watershed closer.gif


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

Map definition

  • name = Neckar
    Name used in the default map caption
  • x = (100*( ($2 - (9.67 + 8.0)/2)*((1 - 0.86)*($1 - 49.71)/(48.0 - 49.71) + 0.86) + (9.67 + 8.0)/2 - 8.0)/(9.67 - 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 - 49.71)/(48.0 - 49.71))
    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

Mannheim

The example on the left shows the correct placement of Mannheim when Germany Neckar is used with {{Location map}}.

Note that the marker for "Mannheim" is west of the mark, due to narrow longitudes far north (on non-equirectangular map). 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) 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).

Mannheim is located in Neckar
Mannheim
Mannheim
Example using Location map
{{Location map | Germany Neckar
 | width = 250 | float = right
 | caption = Example using ''Location map''
 | label = Mannheim | label_size = 90
 | background = #CCCC11 | position = bottom
 | lat_deg = 49.4890
 | lon_deg = 8.4691
 }}

Rottweil

The example shows the correct placement of Rottweil when Germany Neckar is used with {{Location map}}.

Rottweil is located in Neckar
Rottweil
Rottweil
Example using Location map
{{Location map | Germany Neckar
 | width = 250 | float = right
 | caption = Example using ''Location map''
 | label = Rottweil | label_size = 90
 | background = #FFCC66 | position = top
 | lat_deg = 48 | lat_min = 10 |lat_sec = 05
 | lon_deg = 08 | lon_min = 37 |lon_sec = 29
 }}

Multiple markers on one map

The example on the left shows the correct placement of locations when Germany Neckar is used with {{Location map}}.

Location map/data/Germany Neckar/doc is located in Neckar
Mannheim
Mannheim
Rottweil
Rottweil
Heilbronn
Heilbronn
Example using Location map many
{{Location map many | Germany Neckar
 | width = 250 | float = right
 | caption = Example using ''Location map many''
 | label = Mannheim | label_size = 100
   | bg = #CCCC11 | pos = bottom
   | lat_deg = 49.4890
   | lon_deg = 8.469
 | label2 = Rottweil | label2_size = 100
   | bg2 = #66BBDD | pos2 = top
   | lat2_deg = 48 | lat2_min = 10
   | lon2_deg = 08 | lon2_min = 37.5
 | label3 = Heilbronn | label3_size = 90
   | bg3 = #FFFF99 | pos3 = top
   | lat3_deg = 49 | lat3_min = 9
   | lon3_deg = 09 | lon3_min = 13
 }}

See also

Location map templates

Creating new map definitions