Template:Trail Map: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
No edit summary
(change all queries to arrayprint)
Line 15: Line 15:
-->{{#arraydefine:othertrailnames|{{{Other Trails|}}}}}<!--  
-->{{#arraydefine:othertrailnames|{{{Other Trails|}}}}}<!--  
-->{{#arraymerge:alltrailnames|maintrail|othertrailnames}}<!--  
-->{{#arraymerge:alltrailnames|maintrail|othertrailnames}}<!--  
-->{{#ask: [[{{#arraymap:{{#arrayprint:alltrailnames}}|,|@@@@|{{#titleparts:@@@@}}|{{!}}{{!}}}}]]
-->{{#ask: [[{{#arrayprint:alltrailnames|{{!}}{{!}}}}]]
| ?Has KML Link
| ?Has KML Link
| pagetitle = hide
| pagetitle = hide
Line 21: Line 21:
| name = KMLlinks
| name = KMLlinks
}}<!--  
}}<!--  
-->{{#compound_query:[[{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]]
-->{{#compound_query:[[{{#arrayprint:alltrailnames|{{!}}{{!}}}}]]
  ;icon=MarkerT.png
  ;icon=MarkerT.png
  ;?Trailhead location
  ;?Trailhead location
Line 27: Line 27:
  ;?Trail Distance #-n-p2
  ;?Trail Distance #-n-p2
  ;?Trail Marking
  ;?Trail Marking
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Parking]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Photo spot]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Waterfall]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Other photo spot]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Overlook]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Shelter]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Point of interest]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Campground]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Cave]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Water crossing]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Bench]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Trail bridge]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Comm tower]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Cemetery]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Playground]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Summit]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Toilet]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Tunnel]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Picnic spot]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Trail sign]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Road crossing]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Old structure]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Horseback]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Alien landing]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Rest]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Skiing]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Tower]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Power line]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[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::{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] [[Is Marker Type::Blowdown]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[Is Marker Type::Blowdown]]
  ; icon = treedown.png
  ; icon = treedown.png
  ;?Has Marker Location
  ;?Has Marker Location

Revision as of 23:53, 10 November 2019

This returns a map of the trails associated with the trail page it is called on.

It should be called in the following format:

{{Trail Map|Main Trail={{PAGENAME}}|Other Trails= }}

Parameter Main Trail is optional and will default to the pagename. Optionally, additional trails can be requested to have the KML be shown by listing Trail page names separated by commas.

Future features could allow specifying map settings.

Edit the page to see the template text.