Template:Trail Map: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
m (why is external linking different than internal?)
(add passing page name)
Line 183: Line 183:
|kml={{#arraymap:{{#arrayprint:KMLlinks}}|,|@@@@|{{#replace:@@@@|<nowiki> </nowiki>|_}}|,}}
|kml={{#arraymap:{{#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:{{#arrayprint:maintrail}}.kml|KML File Page]] / [{{Create Profile Link|KML={{filepath:{{#titleparts:{{#arrayprint:maintrail}}}}.kml}}}} Create Profile Chart]|[[File:{{#titleparts:{{#arrayprint:maintrail}}}}.kml{{!}}Upload KML]]}}<br /></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:{{#arrayprint:maintrail}}.kml|KML File Page]] / [{{Create Profile Link|KML={{filepath:{{#titleparts:{{#arrayprint:maintrail}}}}.kml}}|Title={{#arrayprint:maintrail}}}} Create Profile Chart]|[[File:{{#titleparts:{{#arrayprint:maintrail}}}}.kml{{!}}Upload KML]]}}<br /></includeonly>

Revision as of 10:27, 14 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.