Difference between revisions of "Module:Location map/data/Germany Weser/doc"
| Line 132: | Line 132: | ||
Example showing "[[Bremerhaven]]" (and "[[Wolfsburg]]") on one map. | Example showing "[[Bremerhaven]]" (and "[[Wolfsburg]]") on one map. | ||
| − | {{Location map | + | {{Location map many | GermanyWeser |
| caption = Show "Bremerhaven" & "Wolfsburg" | | caption = Show "Bremerhaven" & "Wolfsburg" | ||
| − | |||
| label = Bremerhaven | label_size =<!-- 0-900%--> 84 | | label = Bremerhaven | label_size =<!-- 0-900%--> 84 | ||
| − | | lat=53. | + | | 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 | + | | 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 148: | Line 147: | ||
}} | }} | ||
<code> | <code> | ||
| − | :<nowiki>{{Location map | + | :<nowiki>{{Location map many | GermanyWeser</nowiki> |
:<nowiki>| Show "Bremerhaven" & "Wolfsburg"</nowiki> | :<nowiki>| Show "Bremerhaven" & "Wolfsburg"</nowiki> | ||
| − | |||
:<nowiki>| label = Bremerhaven</nowiki> | :<nowiki>| label = Bremerhaven</nowiki> | ||
::<nowiki>| label_size = <!-- 0-900%--> 84</nowiki> | ::<nowiki>| label_size = <!-- 0-900%--> 84</nowiki> | ||
| − | ::<nowiki> | lat=53. | + | ::<nowiki> | lat=53.53 | long=8.59</nowiki> |
::<nowiki> | marksize=7 | position=top</nowiki> | ::<nowiki> | marksize=7 | position=top</nowiki> | ||
::<nowiki> | background = <!--gold-->#CCCC11</nowiki> | ::<nowiki> | background = <!--gold-->#CCCC11</nowiki> | ||
:<nowiki>| label2 = Wolfsburg | label2_size=103</nowiki> | :<nowiki>| label2 = Wolfsburg | label2_size=103</nowiki> | ||
| − | |||
::<nowiki> | lat2=52.4267 | pos2=left</nowiki> | ::<nowiki> | lat2=52.4267 | pos2=left</nowiki> | ||
::<nowiki> | long2=10.7893</nowiki> | ::<nowiki> | long2=10.7893</nowiki> | ||
| Line 169: | Line 166: | ||
:<nowiki>}}</nowiki> | :<nowiki>}}</nowiki> | ||
</code> | </code> | ||
| − | |||
| − | |||
{{-}} | {{-}} | ||
| − | |||
| − | |||
| − | |||
<!-- ---------------------------- Bremen on Wrong Map --> | <!-- ---------------------------- Bremen on Wrong Map --> | ||
<hr/> | <hr/> | ||
Revision as of 15:49, 13 April 2012
| This is a documentation subpage for Module:Location map/data/Germany Weser. It contains usage information, categories and other content that is not part of the original module page. |
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": {{Location map | GermanyWeser | ...}}. 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:Template:Location map/data/Germany Weser|left|thumb|200px|Location map for Template:Location map/data/Germany Weser]]
| Map parameters | ||
|---|---|---|
| name | Template:Location map/data/Germany Weser | name used in default map caption |
| image | Template:Location map/data/Germany Weser | file name of map image, without "Image:" or "File:" |
| top | Template:Location map/data/Germany Weser | latitude at top of map |
| bottom | Template:Location map/data/Germany Weser | latitude at bottom of map |
| left | Template:Location map/data/Germany Weser | longitude at left edge of map |
| right | Template:Location map/data/Germany Weser | longitude at right edge of map |
| skew | Template:Location map/data/Germany Weser | to narrow longitudes; see {{Location map skew}} |
Usage
For a description of the parameters, see {{Location map}} and {{Location map skew}}.
Lua error in Module:Location_map at line 501: Unable to find the specified location map definition: "Module:Location map/data/GermanyWeser" does not exist.
Example labeling "Bremen":
- {{Location map
- | GermanyWeser
- | 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
- }}
Lua error in Module:Location_map at line 501: Unable to find the specified location map definition: "Module:Location map/data/GermanyWeser" does not exist.
Example for orange "Bad Hersfeld" at bottom:
- {{Location map
- | GermanyWeser
- | 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). Lua error in Module:Location_map at line 501: Unable to find the specified location map definition: "Module:Location map/data/GermanyWeser" does not exist. Lua error in Module:Location_map at line 501: Unable to find the specified location map definition: "Module:Location map/data/GermanyWeser" does not exist. 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).
Example skewing Bremerhaven/Wolfsburg
Example showing "Bremerhaven" (and "Wolfsburg") on one map.
Lua error in Module:Location_map/multi at line 143: Unable to find the specified location map definition: "Module:Location map/data/GermanyWeser" does not exist.
- {{Location map many | GermanyWeser
- | 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
- }}
Lua error in Module:Location_map at line 501: Unable to find the specified location map definition: "Module:Location map/data/GermanyWeser" does not exist.
Example labeling "Bremen" on wrong-scale map:
- {{Location map
- | GermanyWeser
- | 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 = Karte Deutschland.png
- }}