Template:Park trail map: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
m (add template category)
(converting - mid save)
Line 12: Line 12:


[[Category:Park Class Items]]
[[Category:Park Class Items]]
</noinclude>
</noinclude><includeonly><display_map center="36.514327,-82.478399" type="terrain" zoom="15" width="auto" height="500" gkml="{{filepath:{{#titleparts:{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}}}}}}.kml}}">
<includeonly>{{#compound_query: [[Category:Trail||Trails]] [[Park::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }}]] [[Trailhead location::+]]
{{#ask:[[Category:Trail||Trails]] [[Park::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }}]]
|mainlabel=title
| ?Trailhead location=location
| ?Difficulty=difficulty
| ?Trail Distance#mi-p2=distance
| ?Trail Marking=marking
|format=plainlist
|headers=hide
|template=Map Marker Template
|userparam=trail
|named args=yes
}}{{#ask: [[Category:Trail Stubs]] [[-Has subobject::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }}]]
| mainlabel=-
| ?Trail=title
| ?Trailhead location=location
| ?Difficulty=difficulty
| ?Trail Distance#mi-p2=distance
| ?Trail Marking=marking
|format=plainlist
|headers=hide
|link=none
|template=Map Marker Template
|userparam=trail stub
|named args=yes
}}{{#ask: [[Category:Map Markers]] [[-Has subobject::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }}]]
| mainlabel=-
| ?Has Marker Location=location
| ?Has Marker Title=title
| ?Has Marker Description=details
| ?Is Marker Type=icon
|format=plainlist
|headers=hide
|link=none
|template=Map Marker Template
|userparam=marker
|named args=yes
}}
</display_map>
 
 
 
 
 
 
{{#compound_query: [[Category:Trail||Trails]] [[Park::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }}]] [[Trailhead location::+]]
  ; ?Trailhead location
  ; ?Trailhead location
  ; icon = MarkerT.png
  ; icon = MarkerT.png

Revision as of 13:10, 13 December 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:Trails 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.

The template is too detailed to show an example. See Warriors' Path State Park map for an example.