Template:Park trail list: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(Created page with "<noinclude>This returns a table of the trails associated with the park page it is called on. More specifically, it lists the pages with Category:Trail and the property [...")
 
m (add template category)
 
(27 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>This returns a table of the trails associated with the park page it is called on.
<noinclude>This returns a list of the trails associated with the park page it is called on.


More specifically, it lists the pages with [[:Category:Trail]] and the property [[Property:Park|Park]] set to the page name. It also displays the property [[Property:Trail distance round trip|Trail distance round trip]] in miles and the entered [[Property:Difficulty|Difficulty]].
More specifically, it lists the pages with [[:Category:Trails]] and the property [[Property:Park|Park]] set to the page name.  


It should be called in the following format:
It should be called in the following format. Typically expected for the current page, but change as needed:
<pre>
<pre>
{{Park trail list}}
{{Park trail list|Park={{PAGENAME}}}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
Example output for Warriors Path State Park:
{{#ask: [[Category:Trail||Trails]] [[Park::Warriors' Path State Park]]
| format=list
}}
[[Category:Park Class Items]]
</noinclude>
</noinclude>
<includeonly>{{#ask: [[Category:Trail]] [[Park::{{PAGENAME}}]]  
<includeonly>{{#ask: [[Category:Trail||Trails]] [[Park::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }}]]  
  | mainlabel=Park Trails
  | format=list
| ?Trail distance round trip#mi = Length in mi
| ?Difficulty
}}</includeonly>
}}</includeonly>

Latest revision as of 10:25, 20 November 2018

This returns a list of the trails associated with the park page it is called on.

More specifically, it lists the pages with Category:Trails and the property Park set to the page name.

It should be called in the following format. Typically expected for the current page, but change as needed:

{{Park trail list|Park={{PAGENAME}}}}

Edit the page to see the template text.

Example output for Warriors Path State Park: Boneyard, Boneyard Connector, Connector, Darwin's Connector, Darwin's Revenge, Devil's Backbone, Fall Creek Loop, Fawn Loop, Holston Bluffs, Lake Hollow, Lake Road (Warriors Path State Park), Lakeshore, Magic Carpet Ride, Overlook, Pawpaw, Pawpaw Connector, Ridge Top (Warriors Path State Park), Riverbank, Rock City, Sinking Waters, Whitetail Alternate, Whitetail Loop, Woodland Ridge, Zipline