Template:Location map USA Mass Cape Cod/doc

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Template:Location map USA Mass Cape Cod (or simply, Template:Location map Cape Cod) is a location map definition used to overlay markers and labels on an equirectangular projection map of Cape Cod, in the U.S. state of Massachusetts. The markers are placed by latitude and longitude coordinates on the default map or a similar map image.

Usage[edit]

These definitions are used by the following templates when invoked with parameter "Cape Cod":


Map definition[edit]

  • name = Cape Cod
    Name used in the default map caption
  • bottom = 41.488985
    Latitude at bottom edge of map, in decimal degrees
  • left = -70.844780
    Longitude at left edge of map, in decimal degrees
  • right = -69.778120
    Longitude at right edge of map, in decimal degrees


Examples using infobox templates[edit]

This location map can be used in any infobox that accepts location maps (see the list in the collapsed section below, under "See also"). To use this map, simply enter "Cape Cod" where the infobox requires a location map name. Oftentimes, the parameter is called "|pushpin_map=" or "|locmapin=" or similar.

{{infobox_nrhp | ... | locmapin=Cape Cod | ... }}
{{Infobox settlement | ... |pushpin_map=Cape Cod | ... }}
{{Infobox lighthouse | ... |pushpin_map=Cape Cod | ... }}


Examples using location map templates[edit]

Location map[edit]

Barnstable is located in Cape Cod
Barnstable
Barnstable
{{Location map | Cape Cod
| width   = 250
| lat_deg = 41 | lat_min = 42 | lat_sec = 0 | lat_dir = N
| lon_deg = 70 | lon_min = 18 | lon_sec = 0 | lon_dir = W
| caption = [[Barnstable, Massachusetts|Barnstable]] is on [[Cape Cod]], [[Massachusetts]]
| label   = Barnstable
}}

Location map with overlay and linked label[edit]

{{Location map | Cape Cod 
 |overlay_image=USA Mass Cape Cod Provincetown overlay.svg
 |label=[[Provincetown, Massachusetts|Provincetown]]
 |link=Provincetown, Massachusetts
<!-- must use a marker, but with the overlay, a pog is unnecessary, so use clear -->
 |mark=Clear pog.svg 
 |lat_deg=42.033
 |lon_deg=-70.169
 |width=250
 |float=right
 |caption=[[Provincetown]] is in [[Barnstable County]], at the very tip of [[Cape Cod]].
 |alt=A map of Cape Cod, with the town colored bright red.
}}


Location map many[edit]

Location map USA Mass Cape Cod/doc is located in Cape Cod
Barnstable
Barnstable
Provincetown
Provincetown
Eastham
Eastham
Locations on Cape Cod
{{Location map many | Cape Cod
| width    = 250
| caption  = Locations on Cape Cod
| lat1 = 41.7 | long1 = -70.3 | label1 = Barnstable
| lat2 = 42.0583 | long2 = -70.1792 | label2 = Provincetown
| lat3 = 41.830 | long3 = -69.974 | label3 = Eastham
}}

Location map+[edit]

Here is a fairly complex real-world example, showing 17 points and linked labels in a small 320px image. Careful experimentation with "|position=" and "|background=" allows us to legibly label the points:

Click to expand code for the lighthouse example
{{Location map+ | Cape Cod
| width   = 320
| caption = The lighthouses of Cape Cod |alt=The lighthouses of Cape Cod
| places  =
 {{Location map~ | Cape Cod
  | lat = 41.51639 | long = -70.6575 
  | link=Nobska Light | label = [[Nobska Light|Nobska]]
 }}
 {{Location map~ | Cape Cod
  | lat = 41.68222 | long = -70.66028 |background=#fefee9 
  | link=Wing's Neck Light |label=[[Wing's Neck Light|Wing's&nbsp;Neck]]
 }}
 {{Location map~ | Cape Cod
  | lat = 41.72278 | long = -70.28111 |position=top
  | link=Sandy Neck Light |label=[[Sandy Neck Light|Sandy&nbsp;Neck]] 
 }}
 {{Location map~ | Cape Cod
  | lat = 41.636278 | long = -70.2885 |position=bottom
  | link=Hyannis Harbor Light | label=[[Hyannis Harbor Light|Hyannis&nbsp;Harbor]] 
 }}
 {{Location map~ | Cape Cod
  | lat = 41.574256 | long = -70.250056 |position=bottom
  | link=Bishop and Clerks Light 
  | label=[[Bishop and Clerks Light|Bishop &amp;&nbsp;Clerks]] 
 }}
 {{Location map~ | Cape Cod
  | lat = 41.651733 | long = -70.169186 |position=top |background=#fefee9
  | link=West Dennis Light | label = [[West Dennis Light|W.Dennis]] 
 }}
 {{Location map~ | Cape Cod
  | lat = 42.021227 | long = -70.1935 |position=bottom
  | link=Wood End Light | label = [[Wood End Light|Wood&nbsp;End]] 
 }}
 {{Location map~ | Cape Cod
  | lat = 42.033119 | long = -70.168653 |position=top |link=Long Point Light
  | label=[[Long Point Light|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Long&nbsp;Pt.]]
 }}
 {{Location map~ | Cape Cod
  | lat = 42.062333 | long = -70.24472 |position=left
  | link=Race Point Light | label = [[Race Point Light|Race<br /> Pt.]]
 }}
 {{Location map~ | Cape Cod
  | lat = 42.039523 | long = -70.060938 |position=right
  | link=Highland Light | label = [[Highland Light|Highland]] 
 }}
 {{Location map~ | Cape Cod
  | lat = 41.860139 | long = -69.952944 |position=right
  | link=Nauset Light | label = [[Nauset Light|Nauset]] 
 }}
 {{Location map~ | Cape Cod
  | lat = 41.845 | long = -69.96 |position=bottom 
  | link=Three Sisters of Nauset
  | label=[[Three Sisters of Nauset|Three&nbsp;Sisters]] 
 }}
 {{Location map~ | Cape Cod
  | lat = 41.559333 | long = -69.993722  |position=right
  | link=Monomoy Point Light | label = [[Monomoy Point Light|Monomoy Point]]
 }}
 {{Location map~ | Cape Cod
  | lat = 41.658407 | long = -69.984471 |background=#c6ecff |position=bottom
  | link=Stage Harbor Light | label = [[Stage Harbor Light|Stage&nbsp;Harbor]]
 }}
 {{Location map~ | Cape Cod
  | lat = 41.9307 | long = -70.0343 |position=right
  | link=Mayo Beach Light | label = [[Mayo Beach Light|Mayo&nbsp;Beach]]
 }}
 {{Location map~ | Cape Cod
  | lat = 41.86889 | long = -70.07167 
  | link=Billingsgate Island Light 
  | label=[[Billingsgate Island Light|Billingsgate Island]]
 }}
 {{Location map~ | Cape Cod
  | lat = 41.671307 | long = -69.96 |position=right 
  | link=Chatham Light |label = [[Chatham Light|Chatham]]
 }}
}}

See also[edit]

Location map templates
Infobox templates incorporating (passing values to) the Location map template