Template:Park trail map: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(cleanup wording)
(Change to passing park name)
Line 1: Line 1:
<noinclude>This returns a map of the trails associated with the park page it is called on.
<noinclude>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 [[Property:Park|Park]] set to the page name.  
More specifically, it maps the coordinates in [[Property:Trailhead location]] from the pages with [[:Category:Trail]] and the property [[Property:Park|Park]] set to the page name or other passed page name.  


It should be called in the following format:
It should be called in the following format:
<pre>
<pre>
{{Park trail map}}
{{Park trail map|Park={{PAGENAME}}}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude>
</noinclude>
<includeonly>{{#ask: [[Category:Trail]] [[Park::{{PAGENAME}}]] [[Trailhead location::+]]
<includeonly>{{#ask: [[Category:Trail]] [[Park::{{#if:{{{Park}}}|{{{Park}}}|{{PAGENAME}}]] [[Trailhead location::+]]
  | ?Trailhead location
  | ?Trailhead location
  | format = map
  | format = map

Revision as of 19:55, 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.