Difference between revisions of "Module:Location map/data/USA Arizona/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Frietjes
m (Frietjes moved page Template:Location map USA Arizona/doc to Module:Location map/data/USA Arizona/doc: merging with the lua module)
blackwiki>Frietjes
Line 1: Line 1:
{{Documentation subpage}}
+
<!-- Categories go at the bottom of this page. -->
<!-- Categories and interwikis go at the bottom of this page. -->
+
{{Module:Location map/data/doc
[[File:Map of Arizona NA.png|thumb|400px|Map of Arizona (click on map to see larger image)]]
+
|image = [[File:Map of Arizona NA.png|thumb|400px|Map of Arizona (click on map to see larger image)]]
 
+
|examples=
'''Template:Location map USA Arizona''' is a location map definition used to overlay markers and labels on an [[equirectangular projection]] map of the [[U.S. state]] of [[Arizona]]. 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 Arizona":
 
* {{tlx|Location map | USA Arizona&nbsp;| ...}}
 
* {{tlx|Location map many | USA Arizona&nbsp;| ...}}
 
* {{tlx|Location map+ | USA Arizona&nbsp;| ...}}
 
* {{tlx|Location map~ | USA Arizona&nbsp;| ...}}
 
 
 
== Map definition ==
 
* <tt>'''name''' = {{{{BASEPAGENAME}}|name}}</tt>
 
*: Name used in the default map caption
 
 
 
* <tt>'''image''' = [[:File:{{{{BASEPAGENAME}}|image}}|{{{{BASEPAGENAME}}|image}}]]</tt>
 
*: The default map image, without "Image:" or "File:"
 
 
 
* <tt>'''top''' = {{{{BASEPAGENAME}}|top}}</tt>
 
*: [[Latitude]] at top edge of map, in [[decimal degrees]]
 
 
 
* <tt>'''bottom''' = {{{{BASEPAGENAME}}|bottom}}</tt>
 
*: Latitude at bottom edge of map, in decimal degrees
 
 
 
* <tt>'''left''' = {{{{BASEPAGENAME}}|left}}</tt>
 
*: [[Longitude]] at left edge of map, in decimal degrees
 
 
 
* <tt>'''right''' = {{{{BASEPAGENAME}}|right}}</tt>
 
*: Longitude at right edge of map, in decimal degrees
 
{{#if:{{{{BASEPAGENAME}}|x}}{{{{BASEPAGENAME}}|y}}|
 
 
 
* <tt>'''x''' = {{{{BASEPAGENAME}}|x}}</tt>
 
*: 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
 
 
 
* <tt>'''y''' = {{{{BASEPAGENAME}}|y}}</tt>
 
*: 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
 
}}
 
== Examples using location map templates ==
 
 
 
 
=== Location map ===
 
=== Location map ===
 
{{Location map | USA Arizona
 
{{Location map | USA Arizona
Line 117: Line 80:
 
{{clear}}
 
{{clear}}
  
== See also ==
+
| see also =  
 
* [[Module:Location map/data/USA]]
 
* [[Module:Location map/data/USA]]
  
; Location map templates
+
}}<includeonly>
* [[Template:Location map]], to display one mark and label using latitude and longitude
 
* [[Template:Location map many]], to display up to nine marks and labels
 
* [[Template:Location map+]], to display an unlimited number of marks and labels
 
 
 
; Infobox templates incorporating (passing values to) the Location map template
 
{{Location map/doc/See also infobox templates}}
 
<includeonly>
 
 
<!-- Categories go here -->
 
<!-- Categories go here -->
 
{{DEFAULTSORT:Arizona, Location map USA}}
 
{{DEFAULTSORT:Arizona, Location map USA}}

Revision as of 16:19, 22 February 2018


Location map of Arizona
name Arizona
border
coordinates
37.3
-115 ←↕→ -108.7
31.1
map center Lua error: callParserFunction: function "#coordinates" was not found.
image USA Arizona location map.svg
400x400px
File:Map of Arizona NA.png
Map of Arizona (click on map to see larger image)

Module:Location map/data/USA Arizona is a location map definition used to overlay markers and labels on an equirectangular projection map of Arizona. 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 Arizona":

Map definition

  • name = Arizona
    Name used in the default map caption
  • bottom = 31.1
    Latitude at bottom edge of map, in decimal degrees
  • left = -115
    Longitude at left edge of map, in decimal degrees
  • right = -108.7
    Longitude at right edge of map, in decimal degrees

Precision

Longitude: from West to East this map definition covers 6.3 degrees.

  • At an image width of 200 pixels, that is 0.0315 degrees per pixel.
  • At an image width of 1000 pixels, that is 0.0063 degrees per pixel.

Latitude: from North to South this map definition covers 6.2 degrees.

  • At an image height of 200 pixels, that is 0.031 degrees per pixel.
  • At an image height of 1000 pixels, that is 0.0062 degrees per pixel.

Examples using location map templates

Location map

Phoenix (Arizona)
{{Location map | USA Arizona
| width   = 200
| lat_deg =  33 | lat_min = 27 | lat_sec = | lat_dir = N
| lon_deg = 112 | lon_min = 04 | lon_sec = | lon_dir = W
| label   = Phoenix
}}

Location map many

{{Location map many | USA Arizona
| width    = 200
| caption  = Locations in Arizona
| lat1 = 36.99 | long1 = -112.98 | label1 = Colorado City
| lat2 = 31.35 | long2 = -110.94 | label2 = Nogales
| lat3 = 32.69 | long3 = -114.62 | label3 = Yuma
| lat4 = 35.67 | long4 = -109.06 | label4 = Window Rock
}}

Location map+

{{Location map+ | USA Arizona
| width   = 200
| caption = Locations in Arizona
| places  =
  {{Location map~ | USA Arizona
  | lat = 36.99 | long = -112.98 | label = Colorado City
  }}
  {{Location map~ | USA Arizona
  | lat = 31.35 | long = -110.94 | label = Nogales
  }}
  {{Location map~ | USA Arizona
  | lat = 32.69 | long = -114.62 | label = Yuma
  }}
  {{Location map~ | USA Arizona
  | lat = 35.67 | long = -109.06 | label = Window Rock
  }}
}}

See also

Location map templates

Creating new map definitions