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

Content deleted Content added
changed settings table to show live parameters
add appropriate template category & remove non-existant category.
Line 1:
{{#switch:{{{1}}} <!-- COPY of Alabama map settings -->
| name = Alabama
| top = 35.12
| bottom = 30.12
| left = -88.64
| right = -84.85
| image = Alabama Locator Map.PNG
| skew = 1.00
| lat_skew = 0.000
}}<noinclude><!-- COPY: Live settings in Location_map_Alabama.
--
-- 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]].
 
Line 22 ⟶ 8:
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{{Location Locatormap Map.PNGAlabama|image}}|left |thumb|110px200px|Map{{Location formap Alabama|image}}]]
 
{| class="wikitable" width="320"
! Parameter !! style="text-align:left" | Setting !! style="text-align:left" | Description
|-
| name || {{Location map Alabama|name}} || name of ___location
| align=center colspan="3" style="background-color:#DDD; color:#000" | '''Map parameters'''
|-
| top image || {{Location map Alabama|topimage}} || name of map image
| latitude at top of map
|-
| bottomtop || {{Location map Alabama|bottomtop}} || latitude at top of map
| latitude at bottom of map
|-
| left bottom || {{Location map Alabama|leftbottom}} || latitude at bottom of map
| longitude at map left edge
|-
| rightleft || {{Location map Alabama|rightleft}} || longitude at map left edge
| longitude at map right edge
|-
| skew right || {{Location map Alabama|skewright}} || longitude at map right edge
| skew to narrow longitudes
|-
| lat_skewskew || {{Location map Alabama|lat_skewskew}} || skew to narrow longitudes
-|-
| skew to arc latitudes at edges
| lat_skew || {{Location map Alabama|lat_skew}} || skew to arc latitudes at edges
|}{{-}}<!-- force separation break -->
|}
|}{{-}}<!-- force separation break -->
 
==Examples==
{{Location map
Line 55 ⟶ 40:
| 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
Line 65 ⟶ 50:
:<nowiki>{{Location map</nowiki>
:<nowiki>| Alabama</nowiki>
:<nowiki>| label = Huntsville | position =top left</nowiki>
:<nowiki>| label_size = 90 <!--percent 0-900%--></nowiki>
:<nowiki>| caption = Show "Huntsville" on map</nowiki>
:<nowiki>| lat_deg= = 34 </nowiki>&nbsp;<nowiki> | lat_min = 42.8</nowiki>
:<nowiki>| lon_deg = -86 | lon_min = -35.2</nowiki>
:<nowiki>| background = #FFFF99</nowiki>
:<nowiki>| float = right</nowiki>
Line 80 ⟶ 65:
{{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 = #FFCC66 <!--orange-->#FFCC66
| float = right
| width = 160
Line 91 ⟶ 76:
}}
Example for orange "[[Mobile]]" at bottom:
<code>
:<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 </nowiki>&nbsp;<nowiki>| lat_min = 40.8</nowiki>
:<nowiki>| lon_deg = -88 | lon_min = -6.2</nowiki>
:<nowiki>| background = #FFCC66 <!--orange-->#FFCC66</nowiki>
:<nowiki>| float = right</nowiki>
:<nowiki>| width = 160 <!--DON'T add "px"--></nowiki>
:<nowiki>| AlternativeMap = <!-- none (default)--></nowiki>
:<nowiki>}}</nowiki></code>
 
<!-- ------------------------- Showing Left edge -->
{{Location map
| 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-->#33DD44
| float = right
| width = 160
Line 120 ⟶ 106:
:<nowiki>{{Location map</nowiki>
:<nowiki>| Alabama</nowiki>
:<nowiki>| label = left edge | position = right</nowiki>
:<nowiki>| label_size = 90 <--percent 0-900%</nowiki>
:<nowiki>| caption = Show "left edge" on map</nowiki>
:<nowiki>| lat = 31.10</nowiki>
:<nowiki>| long = -88.64</nowiki>
:<nowiki>| background = #33DD44 <!--green-->#33DD44</nowiki>
:<nowiki>| float = right</nowiki>
:<nowiki>| width = 160</nowiki>
Line 133 ⟶ 119:
{{Location map
| 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-->#33DD44
| float = right
| width = 160
Line 146 ⟶ 132:
:<nowiki>{{Location map</nowiki>
:<nowiki>| Alabama</nowiki>
:<nowiki>| label = right edge | position = left</nowiki>
:<nowiki>| label_size =90 90 <--percent 0-900%</nowiki>
:<nowiki>| caption = Show map "right edge"</nowiki>
:<nowiki>| lat = 31.10</nowiki>
:<nowiki>| long = -84.85</nowiki>
:<nowiki>| background = #33DD44 <!--green-->#33DD44</nowiki>
:<nowiki>| float = right</nowiki>
:<nowiki>| width = 160</nowiki>
:<nowiki>}}</nowiki></code>
 
[[Category:Location map templates|{{PAGENAME}}]]
 
[[de:Vorlage:Positionskarte USA Alabama]]
<!-- [[ru:Шаблон:ПозКарта США алабаmа]] -->
 
[[Category:Maps of Alabama]]
</noinclude>