Template:Trail Map: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(add parking to map)
m (Fix messup)
Line 21: Line 21:
| name = KMLlinks
| name = KMLlinks
}}<!--  
}}<!--  
-->{{#compound_query:[[{{#arrayprint:maintrail}}]]
-->{{#compound_query:[[{{#arrayprint:alltrailnames|{{!}}{{!}}}}]]
  ;icon=MarkerA.png
;icon=MarkerT.png
;?Trailhead location
;?Difficulty
;?Trail Distance #-n-p2
;?Trail Marking
|[[{{#arrayprint:maintrail}}]]
  ; icon = MarkerA.png
  ;?Parking location
  ;?Parking location
  ;?Difficulty
  ;?Difficulty
  ;?Trail Distance #-n-p2
  ;?Trail Distance #-n-p2
  ;?Trail Marking
  ;?Trail Marking
|[[{{#arrayprint:alltrailnames|{{!}}{{!}}}}]]
; icon = MarkerA.png
;?Has Marker Location
;?Has Marker Title
;?Has Marker Description
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[Is Marker Type::Parking]]
|[[Category:Map Markers]] [[-Has subobject::{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] [[Is Marker Type::Parking]]
  ; icon = MarkerA.png
  ; icon = MarkerA.png

Revision as of 11:17, 24 December 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.