Template:Park trail map: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Convert to use arrays for parkname) |
||
Line 12: | Line 12: | ||
[[Category:Park Class Items]] | [[Category:Park Class Items]] | ||
</noinclude><includeonly>{{#compound_query:[[Category:Trails]] [[Park::{{PAGENAME}}]] | </noinclude><includeonly>{{#arraydefine:parkname|{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}}}}}}{{#compound_query:[[Category:Trails]] [[Park::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}}}}]] | ||
;icon=MarkerT.png | ;icon=MarkerT.png | ||
;?Trailhead location | ;?Trailhead location | ||
Line 18: | Line 18: | ||
;?Trail Distance #-n-p2 | ;?Trail Distance #-n-p2 | ||
;?Trail Marking | ;?Trail Marking | ||
|[[Category:Trail Stubs]] [[-Has subobject::{{ | |[[Category:Trail Stubs]] [[-Has subobject::{{#arrayprint:parkname}}]] | ||
;icon=MarkerT.png | ;icon=MarkerT.png | ||
;?Trailhead location | ;?Trailhead location | ||
Line 25: | Line 25: | ||
;?Trail Distance #-n-p2 | ;?Trail Distance #-n-p2 | ||
;?Trail Marking | ;?Trail Marking | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Parking]] | ||
; icon = MarkerA.png | ; icon = MarkerA.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Photo spot]] | ||
; icon = MarkerB.png | ; icon = MarkerB.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Waterfall]] | ||
; icon = MarkerC.png | ; icon = MarkerC.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Other photo spot]] | ||
; icon = MarkerD.png | ; icon = MarkerD.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Overlook]] | ||
; icon = MarkerE.png | ; icon = MarkerE.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Shelter]] | ||
; icon = MarkerF.png | ; icon = MarkerF.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Point of interest]] | ||
; icon = MarkerG.png | ; icon = MarkerG.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Campground]] | ||
; icon = MarkerH.png | ; icon = MarkerH.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Cave]] | ||
; icon = MarkerI.png | ; icon = MarkerI.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Water crossing]] | ||
; icon = MarkerJ.png | ; icon = MarkerJ.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Bench]] | ||
; icon = MarkerK.png | ; icon = MarkerK.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Trail bridge]] | ||
; icon = MarkerL.png | ; icon = MarkerL.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Comm tower]] | ||
; icon = MarkerM.png | ; icon = MarkerM.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Cemetery]] | ||
; icon = MarkerN.png | ; icon = MarkerN.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Playground]] | ||
; icon = MarkerO.png | ; icon = MarkerO.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Summit]] | ||
; icon = MarkerP.png | ; icon = MarkerP.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Toilet]] | ||
; icon = MarkerQ.png | ; icon = MarkerQ.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Tunnel]] | ||
; icon = MarkerR.png | ; icon = MarkerR.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Picnic spot]] | ||
; icon = MarkerS.png | ; icon = MarkerS.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Trail sign]] | ||
; icon = MarkerT.png | ; icon = MarkerT.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Road crossing]] | ||
; icon = MarkerU.png | ; icon = MarkerU.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Old structure]] | ||
; icon = MarkerV.png | ; icon = MarkerV.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Horseback]] | ||
; icon = MarkerW.png | ; icon = MarkerW.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Alien landing]] | ||
; icon = MarkerX.png | ; icon = MarkerX.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Rest]] | ||
; icon = MarkerY.png | ; icon = MarkerY.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Skiing]] | ||
; icon = Marker1.png | ; icon = Marker1.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Tower]] | ||
; icon = Marker2.png | ; icon = Marker2.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Power line]] | ||
; icon = powerline.png | ; icon = powerline.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
;?Has Marker Title | ;?Has Marker Title | ||
;?Has Marker Description | ;?Has Marker Description | ||
|[[Category:Map Markers]] [[-Has subobject::{{ | |[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:parkname}}]] [[Is Marker Type::Blowdown]] | ||
; icon = treedown.png | ; icon = treedown.png | ||
;?Has Marker Location | ;?Has Marker Location | ||
Line 176: | Line 176: | ||
|template=Map Balloon Template | |template=Map Balloon Template | ||
|markercluster=yes | |markercluster=yes | ||
|kml={{filepath:{{#titleparts:{{# | |kml={{filepath:{{#titleparts:{{#arrayprint:parkname}}}}.kml}} | ||
}} | }} | ||
{{#if:{{filepath:{{#titleparts:{{# | {{#if:{{filepath:{{#titleparts:{{#arrayprint:parkname}}}}.kml}}|[{{filepath:{{#titleparts:{{#arrayprint:parkname}}}}.kml}} Download KML]|[[File:{{#titleparts:{{#arrayprint:parkname}}}}.kml{{!}}Upload KML]]}}</includeonly> |
Revision as of 15:13, 14 December 2018
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}}}}
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.