Template:Park trail map: Difference between revisions
Jump to navigation
Jump to search
m (so many curly braces!) |
(Change to compound query of also parking) |
||
Line 9: | Line 9: | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
</noinclude> | </noinclude> | ||
<includeonly>{{# | <includeonly>{{#compound_query: [[Category:Trail]] [[Park::{{#if:{{{Park}}}|{{{Park}}}|{{PAGENAME}}}}]] [[Trailhead location::+]] | ||
| ? | ; ?Trailhead location | ||
; icon = MarkerT.png | |||
|[[Category:Trail]] [[Park::{{#if:{{{Park}}}|{{{Park}}}|{{PAGENAME}}}}]] [[Parking location::+]] | |||
; ?Parking location | |||
; icon = MarkerA.png | |||
| format = map | | format = map | ||
| width = auto | | width = auto | ||
| height = 550 | | height = 550 | ||
| type = terrain | | type = terrain | ||
}}</includeonly> | }}</includeonly> |
Revision as of 21:03, 26 April 2018
This returns a map of the trails associated with the park page it is called on.
More specifically, it maps the coordinates in Property:Trailhead location from the pages with Category:Trail and the property Park set to the page name or other passed page name.
It should be called in the following format:
{{Park trail map|Park={{PAGENAME}}}}
Edit the page to see the template text.