Template:Park trail list: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(add trail blaze to description)
m (add template category)
 
(24 intermediate revisions by the same user 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, the entered [[Property:Difficulty|Difficulty]], and the [[Property:Trail blaze|Trail blaze]].
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#mi = Length in mi
| ?Difficulty
| ?Trail blaze
}}</includeonly>
}}</includeonly>

Latest revision as of 11: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