Template:Trail Map: Difference between revisions
Jump to navigation
Jump to search
(try separating kml links with ;) |
(back to comma) |
||
Line 22: | Line 22: | ||
<br />{{#arrayprint:othertrailnames|{{!}}{{!}}}} | <br />{{#arrayprint:othertrailnames|{{!}}{{!}}}} | ||
<br />{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}} | <br />{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}} | ||
<br />{{#arrayprint:KMLlinks| | <br />{{#arrayprint:KMLlinks|,|@@@@|{{#replace:@@@@|<nowiki> </nowiki>|_}}}} | ||
{{#compound_query:[[{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] | {{#compound_query:[[{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] | ||
;icon=MarkerT.png | ;icon=MarkerT.png | ||
Line 181: | Line 181: | ||
|showtitle=no | |showtitle=no | ||
|template=Map Balloon Template | |template=Map Balloon Template | ||
|kml={{#arrayprint:KMLlinks| | |kml={{#arrayprint:KMLlinks|,|@@@@|{{#replace:@@@@|<nowiki> </nowiki>|_}}}} | ||
}} | }} | ||
{{#if:{{filepath:{{#titleparts:{{#arrayprint:maintrail}}}}.kml}}|[{{filepath:{{#titleparts:{{#arrayprint:maintrail}}}}.kml}} Download KML] / [{{#replace:http://tehcc.org/clubwiki/index.php?title=Special:Upload&wpDestFile={{#arrayprint:maintrail}}.kml&wpForReUpload=1|<nowiki> </nowiki>|_}} Upload new version]|[[File:{{#titleparts:{{#arrayprint:maintrail}}}}.kml{{!}}Upload KML]]}}</includeonly> | {{#if:{{filepath:{{#titleparts:{{#arrayprint:maintrail}}}}.kml}}|[{{filepath:{{#titleparts:{{#arrayprint:maintrail}}}}.kml}} Download KML] / [{{#replace:http://tehcc.org/clubwiki/index.php?title=Special:Upload&wpDestFile={{#arrayprint:maintrail}}.kml&wpForReUpload=1|<nowiki> </nowiki>|_}} Upload new version]|[[File:{{#titleparts:{{#arrayprint:maintrail}}}}.kml{{!}}Upload KML]]}}</includeonly> |
Revision as of 11:48, 19 December 2018
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.
Edit the page to see the template text.