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

From blackwiki
Jump to navigation Jump to search
blackwiki>Frietjes
blackwiki>Frietjes
Line 1: Line 1:
{{Documentation subpage}}
 
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 
+
{{Module:Location map/data/doc
'''Template:Location map American Samoa''' is a location map definition used to overlay markers and labels on an [[equirectangular projection]] map of [[American Samoa]]. The markers are placed by [[latitude]] and [[longitude]] coordinates on the default map or a similar map image.
+
|examples=
 
 
== Usage ==
 
These definitions are used by the following templates when invoked with parameter "American Samoa":
 
* {{tlx|Location map | American Samoa&nbsp;| ...}}
 
* {{tlx|Location map many | American Samoa&nbsp;| ...}}
 
* {{tlx|Location map+ | American Samoa&nbsp;| ...}}
 
* {{tlx|Location map~ | American Samoa&nbsp;| ...}}
 
 
 
== Map definition ==
 
; name
 
: used in default map caption (<tt>{{{{BASEPAGENAME}}|name}}</tt>)
 
; image
 
: the default map image, without "Image:" or "File:" (<tt>[[:File:{{{{BASEPAGENAME}}|image}}|{{{{BASEPAGENAME}}|image}}]]</tt>)
 
; top
 
: [[latitude]] at top edge of map, in [[decimal degrees]] (<tt>{{{{BASEPAGENAME}}|top}}</tt>)
 
; bottom
 
: latitude at bottom edge of map, in decimal degrees (<tt>{{{{BASEPAGENAME}}|bottom}}</tt>)
 
; left
 
: [[longitude]] at left edge of map, in decimal degrees (<tt>{{{{BASEPAGENAME}}|left}}</tt>)
 
; right
 
: longitude at right edge of map, in decimal degrees (<tt>{{{{BASEPAGENAME}}|right}}</tt>)
 
 
 
== Examples ==
 
 
=== Location map ===
 
=== Location map ===
 
{{Location map | American Samoa
 
{{Location map | American Samoa
Line 129: Line 105:
 
}}
 
}}
 
</pre>
 
</pre>
{{clear}}
+
| see also =
 +
* [[Module:Location map/data/USA]]
 +
* [[Module:Location map/data/Pacific Ocean]]
  
== See also ==
+
}}<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
* [[Template:Location map]]
+
<!-- Categories below this line; interwikis at Wikidata -->
* [[Template:Location map+]]
 
* [[Template:Location map many]]
 
* [[Template:Location map American Samoa central]]
 
* [[Template:Location map Samoa]]
 
<includeonly>
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
 
[[Category:Location map by country templates|American Samoa]]
 
[[Category:Location map by country templates|American Samoa]]
 
[[Category:United States location map templates|American Samoa]]
 
[[Category:United States location map templates|American Samoa]]
 
+
}}</includeonly>
</includeonly>
 

Revision as of 21:51, 19 March 2018


Location map of American Samoa
name American Samoa
border
coordinates
-10.8
-173.1 ←↕→ -167.9
-15
map center Lua error: callParserFunction: function "#coordinates" was not found.
image American Samoa location map.svg
American Samoa location map.svg


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

Map definition

  • name = American Samoa
    Name used in the default map caption
  • bottom = -15
    Latitude at bottom edge of map, in decimal degrees
  • left = -173.1
    Longitude at left edge of map, in decimal degrees
  • right = -167.9
    Longitude at right edge of map, in decimal degrees

Precision

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

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

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

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

Examples using location map templates

Location map

Tutuila is located in American Samoa
Tutuila
Tutuila
Tutuila (American Samoa)
{{Location map | American Samoa
| width = 250
| lat   = -14.3
| long  = -170.7
| label = Tutuila
}}

Location map many

Location map/data/USA American Samoa/doc is located in American Samoa
Tutuila
Tutuila
Ta‘ū
Ta‘ū
Two locations in American Samoa
{{Location map many | American Samoa
| caption = Two locations in American Samoa
| width   = 250
| <!--first marker-->
| lat      = -14.3
| long     = -170.7
| label    = Tutuila
| pos      = right
| mark     = Cercle_rouge_100%.svg
| marksize = 25
| <!--second marker-->
| lat2      = -14.23
| long2     = -169.45
| label2    = Ta‘ū
| pos2      = right
| mark2     = Cercle_rouge_100%.svg
| mark2size = 15
}}

Location map+

Location map/data/USA American Samoa/doc is located in American Samoa
Tutuila
Tutuila
Ta‘ū
Ta‘ū
Two locations in American Samoa
{{Location map+ | American Samoa
| caption = Two locations in American Samoa
| width   = 250
| places  =
  {{Location map~ | American Samoa
  | lat   = -14.3
  | long  = -170.7
  | label = Tutuila
  | position = right
  | mark     = Cercle_rouge_100%.svg
  | marksize = 25
  }}
  {{Location map~ | American Samoa
  | lat   = -14.23
  | long  = -169.45
  | label = Ta‘ū
  | position = right
  | mark     = Cercle_rouge_100%.svg
  | marksize = 15
  }}
}}

See also

Location map templates

Creating new map definitions