Difference between revisions of "Module:Location map/data/USA Alabama/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Droll
m (→‎Examples: tidied up Location map syntax using AWB)
blackwiki>Droll
(→‎Examples: tidied up)
Line 64: Line 64:
 
| label_size = 90 <!-- percent 0-900% -->
 
| label_size = 90 <!-- percent 0-900% -->
 
| caption = Show "Mobile" on map
 
| caption = Show "Mobile" on map
| lat_deg = 30 | lat_min = 40.8 | lat_dir=N
+
| lat_deg = 30 | lat_min = 40.8 | lat_dir = N
| lon_deg = 88 | lon_min = 6.2 | lon_dir=W
+
| lon_deg = 88 | lon_min = 6.2 | lon_dir = W
 
| background = #FFCC66 <!--orange-->
 
| background = #FFCC66 <!--orange-->
 
| float = right
 
| float = right
Line 78: Line 78:
 
:<nowiki>| label_size = 90 <!-- 0-900%--></nowiki>
 
:<nowiki>| label_size = 90 <!-- 0-900%--></nowiki>
 
:<nowiki>| caption = Show "Mobile" on map</nowiki>
 
:<nowiki>| caption = Show "Mobile" on map</nowiki>
:<nowiki>| lat_deg = 30 </nowiki>&nbsp;<nowiki>| lat_min = 40.8</nowiki>
+
:<nowiki>| lat_deg = 30 </nowiki>&nbsp;<nowiki>| lat_min = 40.8 | lat_dir = N</nowiki>
:<nowiki>| lon_deg = -88 | lon_min = -6.2</nowiki>
+
:<nowiki>| lon_deg = 88 | lon_min = 6.2 | lon_dir = W</nowiki>
 
:<nowiki>| background = #FFCC66 <!--orange--></nowiki>
 
:<nowiki>| background = #FFCC66 <!--orange--></nowiki>
 
:<nowiki>| float = right</nowiki>
 
:<nowiki>| float = right</nowiki>
Line 103: Line 103:
 
:<nowiki>| USA Alabama</nowiki>
 
:<nowiki>| USA Alabama</nowiki>
 
:<nowiki>| label = left edge | position = right</nowiki>
 
:<nowiki>| label = left edge | position = right</nowiki>
:<nowiki>| label_size = 90 <--percent 0-900%</nowiki>
+
:<nowiki>| label_size = 90 <--percent 0-900%--></nowiki>
 
:<nowiki>| caption = Show "left edge" on map</nowiki>
 
:<nowiki>| caption = Show "left edge" on map</nowiki>
 
:<nowiki>| lat = 31.10</nowiki>
 
:<nowiki>| lat = 31.10</nowiki>
Line 129: Line 129:
 
:<nowiki>| USA Alabama</nowiki>
 
:<nowiki>| USA Alabama</nowiki>
 
:<nowiki>| label = right edge | position = left</nowiki>
 
:<nowiki>| label = right edge | position = left</nowiki>
:<nowiki>| label_size = 90 <--percent 0-900%</nowiki>
+
:<nowiki>| label_size = 90 <--percent 0-900%--></nowiki>
 
:<nowiki>| caption = Show map "right edge"</nowiki>
 
:<nowiki>| caption = Show map "right edge"</nowiki>
 
:<nowiki>| lat = 31.10</nowiki>
 
:<nowiki>| lat = 31.10</nowiki>

Revision as of 00:47, 30 April 2012

The locator map definition, Template:Location_map_USA_Alabama, is intended for overlaying markers and labels on similar maps of Alabama.

Some of the related mapping procedures are:

This template uses the mapping procedure "Template:Location_map" which must be invoked with parameter "Alabama" to process the options before it uses the template. Specify each of the individual parameters by using vertical bars: {{Location map | Alabama | ...}}.

For map width, omit "px" (width=160) or else map might expand and throw marker across page: the "px" cannot be detected in advance.

See: {{Location map}} for description of parameters, or Examples below.

[[Image:Template:Location map Alabama|left|thumb|200px|Template:Location map Alabama]]

Parameter Setting Description
name Template:Location map USA Alabama name of location
image Template:Location map USA Alabama name of map image
top Template:Location map USA Alabama latitude at top of map
bottom Template:Location map USA Alabama latitude at bottom of map
left Template:Location map USA Alabama longitude at map left edge
right Template:Location map USA Alabama longitude at map right edge

Examples

Show "Huntsville" on map

Example labeling "Huntsville":

{{Location map
| USA Alabama
| label = Huntsville | position = left
| label_size = 90 <!--percent 0-900%-->
| caption = Show "Huntsville" on map
| lat_deg = 34  | lat_min = 42.8 | lat_dir = N
| lon_deg = 86 | lon_min = 35.2 | lon_dir = W
| background = #FFFF99
| float = right
| width = 160 <!--DON'T add "px"-->
}}
Note that both lon_deg and lon_min are negative numbers, for the Western Hemisphere.
Show "Mobile" on map

Example for orange "Mobile" at bottom:

{{Location map
| USA Alabama
| label = Mobile | position = top
| label_size = 90 <!-- 0-900%-->
| caption = Show "Mobile" on map
| lat_deg = 30  | lat_min = 40.8 | lat_dir = N
| lon_deg = 88 | lon_min = 6.2 | lon_dir = W
| background = #FFCC66 <!--orange-->
| float = right
| width = 160 <!--DON'T add "px"-->
| AlternativeMap = <!-- none (default)-->
}}
Show "left edge" on map

Example for green "left edge" at side:

{{Location map
| USA Alabama
| label = left edge | position = right
| label_size = 90 <--percent 0-900%-->
| caption = Show "left edge" on map
| lat = 31.10
| long = -88.64
| background = #33DD44 <!--green-->
| float = right
| width = 160
}}
Show map "right edge"

Example for green "right edge" at side:

{{Location map
| USA Alabama
| label = right edge | position = left
| label_size = 90 <--percent 0-900%-->
| caption = Show map "right edge"
| lat = 31.10
| long = -84.85
| background = #33DD44 <!--green-->
| float = right
| width = 160
}}

de:Vorlage:Positionskarte USA Alabama