6,159 bytes added
, 03:29, 16 July 2021
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
{{Module:Location map/data/doc
|image=
|examples=
=== Location map ===
{{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
}}
<pre style="width:60em">
{{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
}}
</pre>
{{clear}}
{{anchor|overlay|Overlay}}
=== Location map with overlay and linked label ===
{{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 of Provincetown colored bright red.
}}
<pre style="width:60em">
{{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 of Provincetown colored bright red.
}}
</pre>
{{clear}}
=== Location map many ===
{{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
}}
<pre style="width:60em">
{{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
}}
</pre>
{{clear}}
=== Location map+ ===
{{Cape Cod Lighthouses|width=320|float=right}}
Here is a fairly complex real-world example, showing 17 points and linked labels in a small 320px image. Careful experimentation with "{{para|position}}" and "{{para|background}}" allows us to legibly label the points:
<!--
{| class="collapsible collapsed" style="width:60em"
|-
-->
{{Collapse top |title=Click to expand code for the lighthouse example }}
<pre style="width:60em">
{{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]]
}}
}}</pre>
{{Collapse bottom}}
| see also =
* [[Module:Location map/data/USA Massachusetts]]
* [[Module:Location map/data/USA]]
}}
<includeonly>
<!-- Categories go here -->
[[Category:Massachusetts location map templates|Cape Cod]]
[[Category:Barnstable County, Massachusetts]]
</includeonly>