Difference between revisions of "Module:Location map/data/USA/doc"
Jump to navigation
Jump to search
blackwiki>Zyxw (add example using Template:Location map many) |
blackwiki>Zyxw (update documentation and add example using Template:Location map+) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Categories and interwikis go at the bottom of this page. --> | <!-- Categories and interwikis go at the bottom of this page. --> | ||
| + | |||
| + | '''Template:Location map USA''' is a location map definition used to overlay markers and labels on an [[equirectangular projection]] map of the [[United States]]. The markers are placed by [[latitude]] and [[longitude]] coordinates on the default map or a similar map image. | ||
== Usage == | == Usage == | ||
| − | + | These definitions are used by the following templates when invoked with parameter "USA": | |
| + | * {{tlx|Location map | USA | ...}} | ||
| + | * {{tlx|Location map many | USA | ...}} | ||
| + | * {{tlx|Location map+ | USA | ...}} | ||
| + | * {{tlx|Location map~ | USA | ...}} | ||
| − | == | + | == 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 | USA | {{Location map | USA | ||
| Line 44: | Line 64: | ||
| long2 = -122.33 | | long2 = -122.33 | ||
| label2 = Seattle | | label2 = Seattle | ||
| + | }} | ||
| + | </pre> | ||
| + | {{clear}} | ||
| + | |||
| + | === Location map+ === | ||
| + | {{Location map+ | USA | ||
| + | | caption = Two locations in the USA | ||
| + | | width = 250 | ||
| + | | places = | ||
| + | {{Location map~ | USA | ||
| + | | lat = 38.89 | ||
| + | | long = -77.04 | ||
| + | | label = Washington, D.C. | ||
| + | }} | ||
| + | {{Location map~ | USA | ||
| + | | lat = 47.61 | ||
| + | | long = -122.33 | ||
| + | | label = Seattle | ||
| + | }} | ||
| + | }} | ||
| + | <pre style="width:30em"> | ||
| + | {{Location map+ | USA | ||
| + | | caption = Two locations in the USA | ||
| + | | width = 250 | ||
| + | | places = | ||
| + | {{Location map~ | USA | ||
| + | | lat = 38.89 | ||
| + | | long = -77.04 | ||
| + | | label = Washington, D.C. | ||
| + | }} | ||
| + | {{Location map~ | USA | ||
| + | | lat = 47.61 | ||
| + | | long = -122.33 | ||
| + | | label = Seattle | ||
| + | }} | ||
}} | }} | ||
</pre> | </pre> | ||
| Line 49: | Line 104: | ||
== See also == | == See also == | ||
| + | * [[Template:Location map]] | ||
| + | * [[Template:Location map+]] | ||
* [[Template:Location map many]] | * [[Template:Location map many]] | ||
* [[Template:Location map USA2]] | * [[Template:Location map USA2]] | ||
Revision as of 09:57, 11 August 2011
| 40px | This is a documentation subpage for Module:Location map/data/USA. It contains usage information, categories and other content that is not part of the original module page. |
Template:Location map USA is a location map definition used to overlay markers and labels on an equirectangular projection map of the United States. The markers are placed by latitude and longitude coordinates on the default map or a similar map image.
Contents
Usage
These definitions are used by the following templates when invoked with parameter "USA":
{{Location map | USA | ...}}{{Location map many | USA | ...}}{{Location map+ | USA | ...}}{{Location map~ | USA | ...}}
Map definition
- name
- used in default map caption (Template:Location map/data/USA)
- image
- the default map image, without "Image:" or "File:" ([[:File:Template:Location map/data/USA|Template:Location map/data/USA]])
- top
- latitude at top edge of map, in decimal degrees (Template:Location map/data/USA)
- bottom
- latitude at bottom edge of map, in decimal degrees (Template:Location map/data/USA)
- left
- longitude at left edge of map, in decimal degrees (Template:Location map/data/USA)
- right
- longitude at right edge of map, in decimal degrees (Template:Location map/data/USA)
Examples
Location map
Washington, D.C. is located in the United States
Washington, D.C.
Washington, D.C. (the United States)
{{Location map | USA
| width = 250
| lat = 38.895
| long = -77.037
| label = Washington, D.C.
}}
Location map many
{{Location map many | USA
| caption = Two locations in the USA
| width = 250
| lat = 38.89
| long = -77.04
| label = Washington, D.C.
| lat2 = 47.61
| long2 = -122.33
| label2 = Seattle
}}
Location map+
{{Location map+ | USA
| caption = Two locations in the USA
| width = 250
| places =
{{Location map~ | USA
| lat = 38.89
| long = -77.04
| label = Washington, D.C.
}}
{{Location map~ | USA
| lat = 47.61
| long = -122.33
| label = Seattle
}}
}}