Content deleted Content added
Plastikspork (talk | contribs) →See also: Merged |
update documentation |
||
Line 1:
{{Documentation subpage}}
<!-- Categories
[[File:Map of Alabama NA.png|thumb|400px|Map of Alabama (click on map to see larger image)]]
'''Template:Location map USA Alabama''' is a ___location map definition used to overlay markers and labels on an [[equirectangular projection]] map of the [[U.S. state]] of [[Alabama]]. The markers are placed by [[latitude]] and [[longitude]] coordinates on the default map or a similar map image.
== Usage ==
Line 26 ⟶ 27:
* <tt>'''image2''' = [[:File:{{{{BASEPAGENAME}}|image2}}|{{{{BASEPAGENAME}}|image2}}]]</tt>
*: A second alternative map image, can be displayed via the ''AlternativeMap'' parameter only
}}{{#if:{{{{BASEPAGENAME}}|top}}{{{{BASEPAGENAME}}|bottom}}{{{{BASEPAGENAME}}|left}}{{{{BASEPAGENAME}}|right}}|
Line 63 ⟶ 60:
{{!}}}
}}
{{#if:{{{{BASEPAGENAME}}|top}}{{{{BASEPAGENAME}}|bottom}}{{{{BASEPAGENAME}}|left}}{{{{BASEPAGENAME}}|right}}|
== Precision ==
[[Longitude]]: from West to East this map definition covers {{#expr: -( {{{{BASEPAGENAME}}|left}} - {{{{BASEPAGENAME}}|right}} ) round 4}} degrees.
* At an image width of 200 [[pixel]]s, that is {{#expr: -( {{{{BASEPAGENAME}}|left}} - {{{{BASEPAGENAME}}|right}} ) / 200 round 4}} degrees per pixel.
* At an image width of 1000 pixels, that is {{#expr: -( {{{{BASEPAGENAME}}|left}} - {{{{BASEPAGENAME}}|right}} ) / 1000 round 4}} degrees per pixel.
[[Latitude]]: from North to South this map definition covers {{#expr: {{{{BASEPAGENAME}}|top}} - {{{{BASEPAGENAME}}|bottom}} round 4}} degrees.
* At an image height of 200 pixels, that is {{#expr: ( {{{{BASEPAGENAME}}|top}} - {{{{BASEPAGENAME}}|bottom}} ) / 200 round 4}} degrees per pixel.
* At an image height of 1000 pixels, that is {{#expr: ( {{{{BASEPAGENAME}}|top}} - {{{{BASEPAGENAME}}|bottom}} ) / 1000 round 4}} degrees per pixel.
}}
== Examples using ___location map templates ==
=== Location map ===
{{Location map | USA Alabama
| width = 200
| lat_deg = 32 | lat_min = 21 | lat_sec = 42 | lat_dir = N
| lon_deg = 086 | lon_min = 16 | lon_sec = 45 | lon_dir = W
| label
}}
<pre style="width:40em">
{{Location map | USA Alabama
| width = 200
| lat_deg = 32 | lat_min = 21 | lat_sec = 42 | lat_dir = N
| lon_deg = 086 | lon_min = 16 | lon_sec = 45 | lon_dir = W
| label = Montgomery
}}
</pre>
{{clear}}
=== Location map many ===
{{Location map many | USA Alabama
| width = 200
| caption = Locations in Alabama
| lat1 = 34.987 | long1 = -86.843 | label1 = Ardmore
| lat2 = 30.268 | long2 = -87.701 | label2 = Gulf Shores
| lat3 = 31.931 | long3 = -88.459 | label3 = Melvin
| lat4 = 32.863 | long4 = -85.200 | label4 = Lanett
}}
<pre style="width:40em">
{{Location map many | USA Alabama
| width = 200
| caption = Locations in Alabama
| lat1 = 34.987 | long1 = -86.843 | label1 = Ardmore
| lat2 = 30.268 | long2 = -87.701 | label2 = Gulf Shores
| lat3 = 31.931 | long3 = -88.459 | label3 = Melvin
| lat4 = 32.863 | long4 = -85.200 | label4 = Lanett
}}
</pre>
{{clear}}
=== Location map+ ===
{{Location map+ | USA Alabama
| width = 200
| caption = Locations in Alabama
| places =
{{Location map~ | USA Alabama
| lat = 34.987 | long = -86.843 | label = Ardmore
}}
{{Location map~ | USA Alabama
| lat = 30.268 | long = -87.701 | label = Gulf Shores
}}
{{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">
{{Location map+ | USA Alabama
| width = 200
| caption = Locations in Alabama
| places =
{{Location map~ | USA Alabama
| lat = 34.987 | long = -86.843 | label = Ardmore
}}
{{Location map~ | USA Alabama
| lat = 30.268 | long = -87.701 | label = Gulf Shores
}}
{{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>
{{clear}}
== See also ==
* [[Template:Location map USA]]
* [[Template:Geobox locator Alabama]], a ___location map definition used by {{tl|Geobox}} and other templates in [[:Category:Geobox]]
; Location map templates
Line 182 ⟶ 161:
{{Location map/doc/See also infobox templates}}
<includeonly>
<!-- Categories go here, and interwikis go in Wikidata -->
{{DEFAULTSORT:Alabama, Location map USA}}
[[Category:United States state ___location maps]]
|