Template:Trail Map: Difference between revisions
Jump to navigation
Jump to search
(try new approach to kmllinks) |
(and different alltrailnames list) |
||
Line 13: | Line 13: | ||
-->{{#arraydefine:othertrailnames|{{{Other Trails|}}}}}<!-- | -->{{#arraydefine:othertrailnames|{{{Other Trails|}}}}}<!-- | ||
-->{{#arraymerge:alltrailnames|maintrail|othertrailnames}}<!-- | -->{{#arraymerge:alltrailnames|maintrail|othertrailnames}}<!-- | ||
-->{{#ask: [[{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] | -->{{#ask: [[{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}}]] | ||
| ?Has KML Link | | ?Has KML Link | ||
| pagetitle = hide | | pagetitle = hide | ||
Line 21: | Line 21: | ||
-->{{#arrayprint:maintrail|{{!}}{{!}}}} | -->{{#arrayprint:maintrail|{{!}}{{!}}}} | ||
<br />{{#arrayprint:othertrailnames|{{!}}{{!}}}} | <br />{{#arrayprint:othertrailnames|{{!}}{{!}}}} | ||
<br />{{#arrayprint:alltrailnames|{{!}}{{!}}}} | <br />{{#arrayprint:alltrailnames|{{!}}{{!}}|@@@@|{{#titleparts:@@@@}}}} | ||
<br />{{#arrayprint:KMLlinks|,|@@@@|{{#replace:@@@@|<nowiki> </nowiki>|_}}}} | <br />{{#arrayprint:KMLlinks|,|@@@@|{{#replace:@@@@|<nowiki> </nowiki>|_}}}} | ||
{{#compound_query:[[{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] | {{#compound_query:[[{{#arrayprint:alltrailnames|{{!}}{{!}}}}]] |
Revision as of 11:35, 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.