<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
{{#switch:{{{1}}} <!-- COPY of Alabama map settings -->
{{High-use}}
| name = Alabama
{{Module:Location map/data/doc|name=the [[U.S. state]] of [[Alabama]]
| top = 35.12
|image=[[File:Map of Alabama NA.png|thumb|400px|Map of Alabama (click on map to see larger image)]]
| bottom = 30.12
|examples=
| left = -88.64
=== Location map ===
| right = -84.85
{{Location map | image =USA Alabama Locator Map.PNG
| skewwidth = 1.00200
| lat_deg = 32 | lat_min = 21 | lat_sec = 42 | lat_dir = N
| lat_skew = 0.000
| lon_deg = 086 | lon_min = 16 | lon_sec = 45 | lon_dir = W
}}<noinclude><!-- COPY: Live settings in Location_map_Alabama.
| label = Montgomery
--
-- The above switch-statement branches by text in parameter #1,
-- returning the associated value after each equals sign ("=").
-->
The locator map definition, '''Template:Location_map_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: <nowiki>{{Location map | Alabama | ...}}</nowiki>.
: 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: {{tl|Location map}} for description of parameters, or Examples below.
[[Image:Alabama Locator Map.PNG|left |thumb|110px|Map for Alabama]]
{| class="wikitable" width="320"
|-
| align=center colspan="3" style="background-color:#DDD; color:#000" | '''Map parameters'''
|-
| top || {{Location map Alabama|top}}
| latitude at top of map
|-
| bottom || {{Location map Alabama|bottom}}
| latitude at bottom of map
|-
| left || {{Location map Alabama|left}}
| longitude at map left edge
|-
| right || {{Location map Alabama|right}}
| longitude at map right edge
|-
| skew || {{Location map Alabama|skew}}
| skew to narrow longitudes
|-
| lat_skew || {{Location map Alabama|lat_skew}}
| skew to arc latitudes at edges
|}{{-}}<!-- force separation break -->
==Examples==
{{Location map
| 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
}}
<pre style="width:40em">
Example labeling "[[Huntsville]]":
{{Location map | USA Alabama
<code>
| width = 200
:<nowiki>{{Location map</nowiki>
| lat_deg = 32 | lat_min = 21 | lat_sec = 42 | lat_dir = N
:<nowiki>| Alabama</nowiki>
| lon_deg = 086 | lon_min = 16 | lon_sec = 45 | lon_dir = W
:<nowiki>| label=Huntsville | position=top</nowiki>
| label = Montgomery
:<nowiki>| label_size = 90 <!--percent 0-900%--></nowiki>
:<nowiki>| caption = Show "Huntsville" on map</nowiki>
:<nowiki>| lat_deg= 34</nowiki> <nowiki> | lat_min=42.8</nowiki>
:<nowiki>| lon_deg= -86 | lon_min= -35.2</nowiki>
:<nowiki>| background = #FFFF99</nowiki>
:<nowiki>| float = right</nowiki>
:<nowiki>| width = 160 <!--DON'T add "px"--></nowiki>
:<nowiki>}}</nowiki></code>
: Note that both lon_deg and lon_min are negative numbers, for the Western Hemisphere.
<!-- ------------------------- Showing Mobile -->
{{Location map
| Alabama
| label = Mobile | position=top
| label_size = 90 <!-- percent 0-900% -->
| caption = Show "Mobile" on map
| lat_deg= 30 | lat_min=40.8
| lon_deg=-88 | lon_min= -6.2
| background = <!--orange-->#FFCC66
| float = right
| width = 160
| AlternativeMap = <!-- none (use default map) -->
}}
</pre>
Example for orange "[[Mobile]]" at bottom:
{{clear}}
:<nowiki>{{Location map</nowiki>
:<nowiki>| Alabama</nowiki>
:<nowiki>| label=Mobile | position=top</nowiki>
:<nowiki>| label_size = 90 <!-- 0-900%--></nowiki>
:<nowiki>| caption = Show "Mobile" on map</nowiki>
:<nowiki>| lat_deg= 30 | lat_min=40.8</nowiki>
:<nowiki>| lon_deg= -88 | lon_min= -6.2</nowiki>
:<nowiki>| background = <!--orange-->#FFCC66</nowiki>
:<nowiki>| float = right</nowiki>
:<nowiki>| width = 160 <!--DON'T add "px"--></nowiki>
:<nowiki>| AlternativeMap = <!-- none (default)--></nowiki>
:<nowiki>}}</nowiki>
=== Location map many ===
<!-- ------------------------- Showing Left edge -->
{{Location map many | USA Alabama
| width = 200
| Alabama
| caption = Locations in Alabama
| label = left edge | position=right
| lat1 = 34.987 | long1 = -86.843 | label1 = Ardmore
| label_size = 90 <!-- percent 0-900% -->
| lat2 = 30.268 | long2 = -87.701 | label2 = Gulf Shores
| caption = Show "left edge" on map
| lat3 = 31.931 | long3 = -88.459 | label3 = Melvin
| lat = 31.10
| lat4 = 32.863 | long4 = -85.200 | label4 = Lanett
| long= -88.64
| background = <!--green-->#33DD44
| float = right
| width = 160
}}
<pre style="width:40em">
Example for green "left edge" at side:
{{Location map many | USA Alabama
<code>
| width = 200
:<nowiki>{{Location map</nowiki>
| caption = Locations in Alabama
:<nowiki>| Alabama</nowiki>
| lat1 = 34.987 | long1 = -86.843 | label1 = Ardmore
:<nowiki>| label=left edge | position=right</nowiki>
| lat2 = 30.268 | long2 = -87.701 | label2 = Gulf Shores
:<nowiki>| label_size = 90 <--percent 0-900%</nowiki>
| lat3 = 31.931 | long3 = -88.459 | label3 = Melvin
:<nowiki>| caption = Show "left edge" on map</nowiki>
| lat4 = 32.863 | long4 = -85.200 | label4 = Lanett
:<nowiki>| lat = 31.10</nowiki>
}}
:<nowiki>| long = -88.64</nowiki>
</pre>
:<nowiki>| background = <!--green-->#33DD44</nowiki>
{{clear}}
:<nowiki>| float = right</nowiki>
:<nowiki>| width = 160</nowiki>
:<nowiki>}}</nowiki></code>
=== Location map+ ===
<!-- ------------------------- Showing Right edge -->
{{Location map+ | USA Alabama
| width = 200
| Alabama
| caption = Locations in Alabama
| label = right edge | position=left
| places =
| label_size = 90 <!-- percent 0-900% -->
{{Location map~ | USA Alabama
| caption = Show map "right edge"
| lat = 34.987 | long = -86.843 | label = Ardmore
| lat = 31.10
}}
| long= -84.85
{{Location map~ | USA Alabama
| background = <!--green-->#33DD44
| lat = 30.268 | long = -87.701 | label = Gulf Shores
| float = right
}}
| width = 160
{{Location map~ | USA Alabama
| lat = 31.931 | long = -88.459 | label = Melvin
}}
{{Location map~ | USA Alabama
| lat = 32.863 | long = -85.200 | label = Lanett
}}
}}
<pre style="width:40em">
Example for green "right edge" at side:
{{Location map+ | USA Alabama
<code>
| width = 200
:<nowiki>{{Location map</nowiki>
| caption = Locations in Alabama
:<nowiki>| Alabama</nowiki>
| places =
:<nowiki>| label=right edge | position=left</nowiki>
{{Location map~ | USA Alabama
:<nowiki>| label_size=90 <--percent 0-900%</nowiki>
| lat = 34.987 | long = -86.843 | label = Ardmore
:<nowiki>| caption = Show map "right edge"</nowiki>
}}
:<nowiki>| lat = 31.10</nowiki>
{{Location map~ | USA Alabama
:<nowiki>| long = -84.85</nowiki>
| lat = 30.268 | long = -87.701 | label = Gulf Shores
:<nowiki>| background = <!--green-->#33DD44</nowiki>
}}
:<nowiki>| float = right</nowiki>
{{Location map~ | USA Alabama
:<nowiki>| width = 160</nowiki>
| lat = 31.931 | long = -88.459 | label = Melvin
:<nowiki>}}</nowiki></code>
}}
[[de:Vorlage:Positionskarte {{Location map~ | USA Alabama]]
| lat = 32.863 | long = -85.200 | label = Lanett
<!-- [[ru:Шаблон:ПозКарта США алабаmа]] -->
}}
}}
</pre>
|see also=
* [[Module:Location map/data/USA]]
}}
<includeonly>
<!-- Categories go here, and interwikis go in Wikidata -->
{{DEFAULTSORT:Alabama, Location map USA}}
[[Category:Alabama ___location map modules]]
</includeonly>
[[Category:Maps of Alabama]]
</noinclude>
|