Jump to content

Module:Location map/data/USA Alabama/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Jackmcbarn (talk | contribs) at 01:14, 14 March 2014 (update for module). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Location map of Alabama
name Alabama
border
coordinates
35.2
-88.7 ←↕→ -84.7
29.9
map center 32°33′N 86°42′W / 32.55°N 86.7°W / 32.55; -86.7
image USA Alabama location map.svg
image1 USA Alabama relief location map.svg
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

These definitions are used by the following templates when invoked with parameter "USA Alabama":

Map definition

  • name = Lua error in package.lua at line 80: module 'main' not found.
    Name used in the default map caption
  • image = [[:File:Lua error in package.lua at line 80: module 'main' not found.|Lua error in package.lua at line 80: module 'main' not found.]]
    The default map image, without "Image:" or "File:"
  • image1 = [[:File:Lua error in package.lua at line 80: module 'main' not found.|Lua error in package.lua at line 80: module 'main' not found.]]
    An alternative map image, usually a relief map, can be displayed via the relief or AlternativeMap parameters
  • image2 = [[:File:Lua error in package.lua at line 80: module 'main' not found.|Lua error in package.lua at line 80: module 'main' not found.]]
    A second alternative map image, can be displayed via the AlternativeMap parameter only
  • top = Lua error in package.lua at line 80: module 'main' not found.
    Latitude at top edge of map, in decimal degrees
  • bottom = Lua error in package.lua at line 80: module 'main' not found.
    Latitude at bottom edge of map, in decimal degrees
  • left = Lua error in package.lua at line 80: module 'main' not found.
    Longitude at left edge of map, in decimal degrees
  • right = Lua error in package.lua at line 80: module 'main' not found.
    Longitude at right edge of map, in decimal degrees
  • x = Lua error in package.lua at line 80: module 'main' not found.
    An expression to calculate a location on the map via its longitude; evaluates as 0 along the left edge and 100 along the right edge
  • y = Lua error in package.lua at line 80: module 'main' not found.
    An expression to calculate a location on the map via its latitude; evaluates as 0 along the top edge and 100 along the bottom edge

Alternative map

The map defined as image1 (Lua error in package.lua at line 80: module 'main' not found.) can be displayed by using the relief or AlternativeMap parameters in {{Location map}}, {{Location map many}} and {{Location map+}}. The map defined as image2 (Lua error in package.lua at line 80: module 'main' not found.) can only be displayed by using the AlternativeMap parameter. The use of these two parameters is shown in the examples below. Additional examples can be found at:

Precision

Longitude: from West to East this map definition covers Expression error: Unexpected < operator degrees.

  • At an image width of 200 pixels, that is Expression error: Unexpected < operator degrees per pixel.
  • At an image width of 1000 pixels, that is Expression error: Unexpected < operator degrees per pixel.

Latitude: from North to South this map definition covers Expression error: Unexpected < operator degrees.

  • At an image height of 200 pixels, that is Expression error: Unexpected < operator degrees per pixel.
  • At an image height of 1000 pixels, that is Expression error: Unexpected < operator degrees per pixel.

Examples using location map templates

Location map

Montgomery is located in Alabama
Montgomery
Montgomery
Montgomery (Alabama)
{{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
}}

Location map many

Location map/data/USA Alabama/doc is located in Alabama
Ardmore
Ardmore
Gulf Shores
Gulf Shores
Melvin
Melvin
Lanett
Lanett
Locations in Alabama
{{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
}}

Location map+

Location map/data/USA Alabama/doc is located in Alabama
Ardmore
Ardmore
Gulf Shores
Gulf Shores
Melvin
Melvin
Lanett
Lanett
Locations in Alabama
{{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
  }}
}}

See also

Location map templates
Infobox templates incorporating (passing values to) the Location map template
List