Template:Park trail map: Difference between revisions
Jump to navigation
Jump to search
(cleanup wording) |
m (didn't work) |
||
(93 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>This returns a map of the trails associated with the park page it is called on. | <noinclude>This returns a map of the trails associated with the park page it is called on. | ||
More specifically, it maps the coordinates in [[Property:Trailhead location]] from the pages with [[:Category: | More specifically, it maps the coordinates in [[Property:Trailhead location]] from the pages with [[:Category:Trails]] and the property [[Property:Park|Park]] set to the page name or other passed page name. | ||
It should be called in the following format: | It should be called in the following format: | ||
<pre> | <pre> | ||
{{Park trail map}} | {{Park trail map|Park={{PAGENAME}}|Zoom=<nothing will kmlrezoom, number will zoom to that level}} | ||
</pre> | </pre> | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
</noinclude> | |||
<includeonly>{{# | The template is too detailed to show an example. See [[Warriors' Path State Park]] map for an example. | ||
| ? | |||
| | [[Category:Park Class Items]] | ||
| icon = MarkerT.png | </noinclude><includeonly>{{#arraydefine:parkname|{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}}}}}}{{#compound_query:[[Category:Parks]] [[{{#arrayprint:parkname}}]] | ||
| width = auto | ;icon=MarkerA.png | ||
;?Main Location | |||
;?Park Type | |||
}}</includeonly> | ;?Park Website | ||
|[[Category:Trails]] [[Park::{{#arrayprint:parkname}}]] | |||
;icon=MarkerT.png | |||
;?Trailhead location | |||
;?Difficulty | |||
;?Trail Distance #-n-p2 | |||
;?Trail Marking | |||
|[[Category:Trail Stubs]] [[-Has subobject::{{#arrayprint:parkname}}]] | |||
;icon=MarkerT.png | |||
;?Trailhead location | |||
;?Trail | |||
;?Difficulty | |||
;?Trail Distance #-n-p2 | |||
;?Trail Marking | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Parking]] | |||
; icon = MarkerA.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Photo spot]] | |||
; icon = MarkerB.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Waterfall]] | |||
; icon = MarkerC.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Other photo spot]] | |||
; icon = MarkerD.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Overlook]] | |||
; icon = MarkerE.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Shelter]] | |||
; icon = MarkerF.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Point of interest]] | |||
; icon = MarkerG.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Campground]] | |||
; icon = MarkerH.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Cave]] | |||
; icon = MarkerI.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Water crossing]] | |||
; icon = MarkerJ.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Bench]] | |||
; icon = MarkerK.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Trail bridge]] | |||
; icon = MarkerL.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Comm tower]] | |||
; icon = MarkerM.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Cemetery]] | |||
; icon = MarkerN.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Playground]] | |||
; icon = MarkerO.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Summit]] | |||
; icon = MarkerP.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Toilet]] | |||
; icon = MarkerQ.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Tunnel]] | |||
; icon = MarkerR.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Picnic spot]] | |||
; icon = MarkerS.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Trail sign]] | |||
; icon = MarkerT.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Road crossing]] | |||
; icon = MarkerU.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Old structure]] | |||
; icon = MarkerV.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Horseback]] | |||
; icon = MarkerW.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Alien landing]] | |||
; icon = MarkerX.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Rest]] | |||
; icon = MarkerY.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Skiing]] | |||
; icon = Marker1.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Tower]] | |||
; icon = Marker2.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Power line]] | |||
; icon = powerline.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Blowdown]] | |||
; icon = treedown.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Ranger Station]] | |||
; icon = Rangerstation.png | |||
;?Has Marker Location | |||
;?Has Marker Title | |||
;?Has Marker Description | |||
|format=googlemaps | |||
|kmlrezoom={{#if: {{{Zoom|}}}|no|yes}} | |||
|zoom={{#if: {{{Zoom|}}}|{{{Zoom|}}}}} | |||
|types=satellite, hybrid, terrain | |||
|width=auto | |||
|height=600 | |||
|showtitle=no | |||
|template=Map Balloon Template | |||
|kml={{filepath:{{#titleparts:{{#arrayprint:parkname}}}}.kml}} | |||
}} | |||
{{#if:{{filepath:{{#titleparts:{{#arrayprint:parkname}}}}.kml}}|[{{filepath:{{#titleparts:{{#arrayprint:parkname}}}}.kml}} Download KML] / [{{#replace:http://tehcc.org/clubwiki/index.php?title=Special:Upload&wpDestFile={{#arrayprint:parkname}}.kml&wpForReUpload=1|<nowiki> </nowiki>|_}} Upload new version] / [[:File:{{#titleparts:{{#arrayprint:parkname}}}}.kml|KML File Page]]|[[File:{{#titleparts:{{#arrayprint:parkname}}}}.kml{{!}}Upload KML]]}}</includeonly> |
Latest revision as of 08:24, 9 May 2020
This returns a map of the trails associated with the park page it is called on.
More specifically, it maps the coordinates in Property:Trailhead location from the pages with Category:Trails and the property Park set to the page name or other passed page name.
It should be called in the following format:
{{Park trail map|Park={{PAGENAME}}|Zoom=<nothing will kmlrezoom, number will zoom to that level}}
Edit the page to see the template text.
The template is too detailed to show an example. See Warriors' Path State Park map for an example.