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

From blackwiki
Jump to navigation Jump to search
blackwiki>Jackmcbarn
(fix math details)
blackwiki>Jackmcbarn
(use standard doc page)
Line 1: Line 1:
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{#invoke:Location map/info|main}}
+
{{Module:Location map/data/doc|image=[[File:Map of Alaska NA.png|thumb|400px|Map of Alaska (click on map to see larger image)]]|name=the [[U.S. state]] of [[Alaska]]
[[File:Map of Alaska NA.png|thumb|400px|Map of Alaska (click on map to see larger image)]]
+
|examples=
 
 
'''Template:Location map USA Alaska''' is a location map definition used to overlay markers and labels on an [[equirectangular projection]] map of the [[U.S. state]] of [[Alaska]]. 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 Alaska":
 
* {{tlx|Location map | USA Alaska&nbsp;| ...}}
 
* {{tlx|Location map many | USA Alaska&nbsp;| ...}}
 
* {{tlx|Location map+ | USA Alaska&nbsp;| ...}}
 
* {{tlx|Location map~ | USA Alaska&nbsp;| ...}}
 
 
 
== Map definition ==
 
* <tt>'''name''' = {{#invoke:Data|main|Location map/data/USA Alaska|name}}</tt>
 
*: Name used in the default map caption
 
 
 
* <tt>'''image''' = [[:File:{{#invoke:Data|main|Location map/data/USA Alaska|image}}|{{#invoke:Data|main|Location map/data/USA Alaska|image}}]]</tt>
 
*: The default map image, without "Image:" or "File:"
 
{{#if:{{#invoke:Data|main|Location map/data/USA Alaska|image1}}|
 
 
 
* <tt>'''image1''' = [[:File:{{#invoke:Data|main|Location map/data/USA Alaska|image1}}|{{#invoke:Data|main|Location map/data/USA Alaska|image1}}]]</tt>
 
*: An alternative map image, usually a relief map, can be displayed via the ''relief'' or ''AlternativeMap'' parameters
 
}}{{#if:{{#invoke:Data|main|Location map/data/USA Alaska|image2}}|
 
 
 
* <tt>'''image2''' = [[:File:{{#invoke:Data|main|Location map/data/USA Alaska|image2}}|{{#invoke:Data|main|Location map/data/USA Alaska|image2}}]]</tt>
 
*: A second alternative map image, can be displayed via the ''AlternativeMap'' parameter only
 
}}{{#if:{{#invoke:Data|main|Location map/data/USA Alaska|mark}}|
 
 
 
* <tt>'''mark''' = [[:File:{{#invoke:Data|main|Location map/data/USA Alaska|mark}}]] ( [[File:{{#invoke:Data|main|Location map/data/USA Alaska|mark}}|8px]] )</tt>
 
*: A location marker image to be used for this map, in place of the default image <tt>[[:File:Red pog.svg]] ( [[File:Red pog.svg|8px]] )</tt>
 
}}{{#if:{{#invoke:Data|main|Location map/data/USA Alaska|top}}{{#invoke:Data|main|Location map/data/USA Alaska|bottom}}{{#invoke:Data|main|Location map/data/USA Alaska|left}}{{#invoke:Data|main|Location map/data/USA Alaska|right}}|
 
 
 
* <tt>'''top''' = {{#invoke:Data|main|Location map/data/USA Alaska|top}}</tt>
 
*: [[Latitude]] at top edge of map, in [[decimal degrees]]
 
 
 
* <tt>'''bottom''' = {{#invoke:Data|main|Location map/data/USA Alaska|bottom}}</tt>
 
*: Latitude at bottom edge of map, in decimal degrees
 
 
 
* <tt>'''left''' = {{#invoke:Data|main|Location map/data/USA Alaska|left}}</tt>
 
*: [[Longitude]] at left edge of map, in decimal degrees
 
 
 
* <tt>'''right''' = {{#invoke:Data|main|Location map/data/USA Alaska|right}}</tt>
 
*: Longitude at right edge of map, in decimal degrees
 
}}{{#if:{{#invoke:Data|main|Location map/data/USA Alaska|x}}{{#invoke:Data|main|Location map/data/USA Alaska|y}}|
 
 
 
* <tt>'''x''' = {{#invoke:Data|main|Location map/data/USA Alaska|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''' = {{#invoke:Data|main|Location map/data/USA Alaska|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
 
}}
 
=== Technical details ===
 
{{#invoke:Location map/info|moduloMathDetails|top = 72 |bottom = 51 |left = 172 |right = -129}}
 
{{#if:{{#invoke:Data|main|Location map/data/USA Alaska|image1}}|
 
== Alternative map ==
 
The map defined as '''image1''' (<tt>{{#invoke:Data|main|Location map/data/USA Alaska|image1}}</tt>) can be displayed by using the ''relief'' or ''AlternativeMap'' parameters in {{tl|Location map}}, {{tl|Location map many}} and {{tl|Location map+}}. {{#if:{{#invoke:Data|main|Location map/data/USA Alaska|image2}}| The map defined as '''image2''' (<tt>{{#invoke:Data|main|Location map/data/USA Alaska|image2}}</tt>) 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:
 
{{{!}}
 
{{!}}
 
* [[Template:Location map#Relief parameter]]
 
* [[Template:Location map#AlternativeMap parameter]]
 
{{!}}
 
* [[Template:Location map+/relief]]
 
* [[Template:Location map+/AlternativeMap]]
 
{{!}}}
 
}}
 
== Examples using location map templates ==
 
 
 
 
=== Location map: Eastern hemisphere, Deg/Min/Sec coordinates ===
 
=== Location map: Eastern hemisphere, Deg/Min/Sec coordinates ===
 
{{Location map | USA Alaska
 
{{Location map | USA Alaska
Line 207: Line 142:
 
}}
 
}}
 
</pre>
 
</pre>
{{clear}}
+
|see also=
 
+
* [[Module:Location map/data/USA]]
== See also ==
+
}}
* [[Template:Location map USA]]
 
 
 
; Location map templates
 
* [[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>
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->

Revision as of 20:18, 21 April 2014


Location map of Alaska
name Alaska
border
coordinates
72
172 ←↕→ -129
51
map center Lua error: callParserFunction: function "#coordinates" was not found.
image USA Alaska location map.svg
400x400px
image1 Relief map of USA Alaska.png
400x400px
File:Map of Alaska NA.png
Map of Alaska (click on map to see larger image)

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

Map definition

  • name = Alaska
    Name used in the default map caption
  • bottom = 51
    Latitude at bottom edge of map, in decimal degrees
  • left = 172
    Longitude at left edge of map, in decimal degrees
  • right = -129
    Longitude at right edge of map, in decimal degrees

Alternative map

The {{Location map}}, {{Location map many}}, and {{Location map+}} templates have parameters to specify an alternative map image. The map displayed as image1 can be used with the relief or AlternativeMap parameters. Examples may be found below or in the following:

Precision

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

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

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

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

Examples using location map templates

Location map: Eastern hemisphere, Deg/Min/Sec coordinates

Attu Island (Alaska)
{{Location map | USA Alaska
| width = 250
| float = right
| label = Attu Island
| position = right
| lat_deg =  52 | lat_min= 54 | lat_sec = 09 | lat_dir = N
| lon_deg = 172 | lon_min= 54 | lon_sec = 34 | lon_dir = E
}}

Location map: Eastern hemisphere, Decimal coordinates

Attu Island (Alaska)
{{Location map | USA Alaska
| width = 250
| float = right
| label = Attu Island
| position = right
| lat = 52.9025
| long = 172.909444
}}

Location map: Western hemisphere, Deg/Min/Sec coordinates, Relief map

{{Location map | USA Alaska
| relief = yes
| width = 250
| float = right
| label = Ketchikan
| position = left
| caption = Location of [[Ketchikan]] in Alaska
| lat_deg =  55 | lat_min= 21 | lat_sec = 00 | lat_dir = N
| lon_deg = 131 | lon_min= 40 | lon_sec = 24 | lon_dir = W
}}

Location map: Western hemisphere, Decimal coordinates, AlternativeMap

{{Location map | USA Alaska
| AlternativeMap = 800x598 Carte Alaska R3.jpg
| width = 250
| float = right
| label = Ketchikan
| position = left
| caption = Location of [[Ketchikan]] in Alaska
| lat = 55.35
| long = -131.673333
}}

Location map many: Deg/Min/Sec

{{Location map many | USA Alaska
| float = right | width = 300
| caption = [[Attu Island]] and [[Ketchikan]] in Alaska
| label = Attu Island | label_size = 90 | pos = right
| lat_deg =  52 | lat_min= 54 | lat_sec = 09 | lat_dir = N
| lon_deg = 172 | lon_min= 54 | lon_sec = 34 | lon_dir = E
| label2 = Ketchikan | label2_size = 90 | pos2 = left
| lat2_deg =  55 | lat2_min= 21 | lat2_sec = 00 | lat2_dir = N
| lon2_deg = 131 | lon2_min= 40 | lon2_sec = 24 | lon2_dir = W
}}

Location map many: Decimal coordinates

{{Location map many | USA Alaska
| float = right | width = 300
| caption = [[Attu Island]] and [[Ketchikan]] in Alaska
| label = Attu Island | label_size = 90 | pos = right
| lat = 52.9025
| long = 172.909444
| label2 = Ketchikan | label2_size = 90 | pos2 = left
| lat2 = 55.35
| long2 = -131.673333
}}

See also

Location map templates

Creating new map definitions