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

From blackwiki
Jump to navigation Jump to search
blackwiki>Jackmcbarn
blackwiki>Jackmcbarn
(use standard doc page)
Line 1: Line 1:
{{Documentation subpage}}
 
 
<includeonly>{{high-use| 4,300+ }}</includeonly>
 
<includeonly>{{high-use| 4,300+ }}</includeonly>
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
+
{{Module:Location map/data/doc|image=[[File:Map of Pennsylvania NA.png|thumb|400px|Map of Pennsylvania (click on map to see larger image)]]|name=the [[U.S. state]] of [[Pennsylvania]]
[[File:Map of Pennsylvania NA.png|thumb|400px|Map of Pennsylvania (click on map to see larger image)]]
 
  
 
'''Template:Location map USA Pennsylvania''' is a location map definition used to overlay markers and labels on an [[equirectangular projection]] map of the [[U.S. state]] of [[Pennsylvania]]. The markers are placed by [[latitude]] and [[longitude]] coordinates on the default map or a similar map image.  
 
'''Template:Location map USA Pennsylvania''' is a location map definition used to overlay markers and labels on an [[equirectangular projection]] map of the [[U.S. state]] of [[Pennsylvania]]. 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 "USA Pennsylvania":
 
* {{tlx|Location map | USA Pennsylvania&nbsp;| ...}}
 
* {{tlx|Location map many | USA Pennsylvania&nbsp;| ...}}
 
* {{tlx|Location map+ | USA Pennsylvania&nbsp;| ...}}
 
* {{tlx|Location map~ | USA Pennsylvania&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 Pennsylvania
 
{{Location map | USA Pennsylvania
Line 117: Line 80:
 
}}
 
}}
 
</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 go here -->
 
<!-- Categories go here -->

Revision as of 16:18, 30 April 2014


Location map of Pennsylvania
name Pennsylvania
border
coordinates
42.7
-80.7 ←↕→ -74.5
39.5
map center Lua error: callParserFunction: function "#coordinates" was not found.
image USA Pennsylvania location map.svg
USA Pennsylvania location map.svg
File:Map of Pennsylvania NA.png
Map of Pennsylvania (click on map to see larger image)

Module:Location map/data/USA Pennsylvania is a location map definition used to overlay markers and labels on an equirectangular projection map of the U.S. state of Pennsylvania

Template:Location map USA Pennsylvania is a location map definition used to overlay markers and labels on an equirectangular projection map of the U.S. state of Pennsylvania. The markers are placed by latitude and longitude coordinates on the default map or a similar map image.. 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 Pennsylvania":

Map definition

  • name = Pennsylvania
    Name used in the default map caption
  • bottom = 39.5
    Latitude at bottom edge of map, in decimal degrees
  • left = -80.7
    Longitude at left edge of map, in decimal degrees
  • right = -74.5
    Longitude at right edge of map, in decimal degrees

Precision

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

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

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

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

Examples using location map templates

Location map

Harrisburg is located in Pennsylvania
Harrisburg
Harrisburg
Harrisburg (Pennsylvania)
{{Location map | USA Pennsylvania
| width   = 250
| lat_deg = 40 | lat_min = 16 | lat_sec = 11 | lat_dir = N
| lon_deg = 76 | lon_min = 52 | lon_sec = 32 | lon_dir = W
| label   = Harrisburg
}}

Location map many

Location map/data/USA Pennsylvania/doc is located in Pennsylvania
North East
North East
Fawn Grove
Fawn Grove
Sharon
Sharon
Matamoras
Matamoras
Locations in Pennsylvania
{{Location map many | USA Pennsylvania
| width    = 250
| caption  = Locations in Pennsylvania
| lat1 = 42.213 | long1 = -79.834 | label1 = North East
| lat2 = 39.730 | long2 = -76.451 | label2 = Fawn Grove
| lat3 = 41.233 | long3 = -80.500 | label3 = Sharon
| lat4 = 41.368 | long4 = -74.702 | label4 = Matamoras
}}

Location map+

Location map/data/USA Pennsylvania/doc is located in Pennsylvania
North East
North East
Fawn Grove
Sharon
Matamoras
Locations in Pennsylvania
{{Location map+ | USA Pennsylvania
| width   = 250
| caption = Locations in Pennsylvania
| places  =
  {{Location map~ | USA Pennsylvania
  | lat = 42.213 | long = -79.834 | label = North East
  }}
  {{Location map~ | USA Pennsylvania
  | lat = 39.730 | long = -76.451 | label = Fawn Grove
  }}
  {{Location map~ | USA Pennsylvania
  | lat = 41.233 | long = -80.500 | label = Sharon
  }}
  {{Location map~ | USA Pennsylvania
  | lat = 41.368 | long = -74.702 | label = Matamoras
  }}
}}

See also

Location map templates

Creating new map definitions