Template:Location map USA Alabama/doc
From Wikipedia, the free encyclopedia
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:
- Template:Location_map - puts 1 symbol/label on the map image;
- Template:Location_map_many - puts multiple symbols/labels on the map image.
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 | ...}}.
When a 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". 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.
| Parameter | Setting | Description |
|---|---|---|
| name | Alabama | name of location |
| image | Alabama Locator Map_with_US.PNG | name of map image |
| top | 35.12 | latitude at top of map |
| bottom | 30.12 | latitude at bottom of map |
| left | -88.64 | longitude at map left edge |
| right | -84.85 | longitude at map right edge |
| skew | 1.000 | skew to narrow longitudes |
| lat_skew | 0.000 | skew to arc latitudes at edges |
[edit] Examples
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| lon_deg = -86 | lon_min = -35.2| 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.
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| lon_deg = -88 | lon_min = -6.2| background = #FFCC66 <!--orange-->| float = right| width = 160 <!--DON'T add "px"-->| AlternativeMap = <!-- none (default)-->}}
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}}
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}}

