Template:Park trail table: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(add link none to stubs)
m (cleanup)
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 table of the trails associated with the park page it is called on along with any assigned Trail Stubs.


More specifically, it makes a table of the pages with [[:Category:Trails]] and the property [[Property:Park|Park]] set to the page name. It also displays the properties [[Property:Trail Distance|Trail Distance]] in miles, the [[Property:Difficulty|Difficulty]], and the [[Property:Trail Marking]].
More specifically, it makes a table of the pages with [[:Category:Trails]] and the property [[Property:Park|Park]] set to the page name. It also displays the properties [[Property:Trail Distance|Trail Distance]] in miles, the [[Property:Difficulty|Difficulty]], and the [[Property:Trail Marking]].


If selected, it will also show any trail stubs created on the park page.  
It will also show any trail stubs created on the park page.  


It should be called in the following format. Typically expected for the current page, but change as needed:
It should be called in the following format. Typically expected for the current page, but change as needed:
<pre>
<pre>
{{Park trail list|Park={{PAGENAME}}|Show stubs=yes/blank}}
{{Park trail list|Park={{PAGENAME}}}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
'''Note:''' Site is in a transition from "Trail Blaze" to "Trail Marking" - searches for "Blaze" for now, but at some tipping point I will change this to "Marking"


Example output for Warriors' Path State Park:  
Example output for Warriors' Path State Park:  
{{#ask: [[Category:Trail||Trails]] [[Park::Warriors' Path State Park]]  
{{Park trail table template|#userparam=intro}}
  | mainlabel=Park Trails
{{#ask:[[Category:Trail||Trails]] [[Park::Warriors' Path State Park]]
  | ?Trail Distance#mi=Distance
  |mainlabel=trail
  | ?Difficulty=Difficulty
| ?Trail Distance#mi=distance
  | ?Trail Blaze=Blaze
| ?Difficulty=difficulty
  |format=table
| ?Trail Marking=marking
|format=plainlist
|headers=hide
|template=Park trail table template
|userparam=row
|named args=yes
}}
{{#ask: [[Category:Trail Stubs]] [[-Has subobject::Warriors' Path State Park]]
| mainlabel=-
| ?Trail=trail
  | ?Trail Distance#mi=distance
  | ?Difficulty=difficulty
  | ?Trail Marking=marking
  |format=plainlist
|headers=hide
|link=none
|template=Park trail table template
|userparam=stubs row
|named args=yes
}}
}}
{{Park trail table template|#userparam=outro}}
[[Category:Park Class Items]]
[[Category:Park Class Items]]
</noinclude>
</noinclude>

Revision as of 11:45, 12 December 2018

This returns a table of the trails associated with the park page it is called on along with any assigned Trail Stubs.

More specifically, it makes a table of the pages with Category:Trails and the property Park set to the page name. It also displays the properties Trail Distance in miles, the Difficulty, and the Property:Trail Marking.

It will also show any trail stubs created on the park page.

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:

Park Trails Distance Difficulty Marking Usage Highlight
[[Boneyard|Boneyard]] 2.329 mi3.748 km <br /> Medium Black Triangle


[[Boneyard Connector|Boneyard Connector]] 0.0445 mi0.0716 km <br /> Easy None


[[Connector|Connector]] 0.28 mi0.451 km <br /> Easy None


[[Darwin's Connector|Darwin's Connector]] 0.1 mi0.161 km <br /> Easy None


[[Darwin's Revenge|Darwin's Revenge]] 2.06 mi3.315 km <br /> Medium Black Diamond


[[Devil's Backbone|Devil's Backbone]] 1.2 mi1.931 km <br /> Medium Red


[[Fall Creek Loop|Fall Creek Loop]] 0.92 mi1.481 km <br /> Medium Orange


[[Fawn Loop|Fawn Loop]] 0.61 mi0.982 km <br /> Easy Yellow


[[Holston Bluffs|Holston Bluffs]] 0.384 mi0.618 km <br /> Easy White


[[Lake Hollow|Lake Hollow]] 0.56 mi0.901 km <br /> Easy None


[[Lake Road (Warriors Path State Park)|Lake Road 0.84 mi1.351 km <br /> Easy None


[[Lakeshore|Lakeshore]] 0.31 mi0.499 km <br /> Easy Black


[[Magic Carpet Ride|Magic Carpet Ride]] 0.204 mi0.328 km <br /> Medium None


[[Overlook|Overlook]] 0.73 mi1.175 km <br /> Easy None


[[Pawpaw|Pawpaw]] 0.561 mi0.903 km <br /> Medium Blue


[[Pawpaw Connector|Pawpaw Connector]] 0.1 mi0.161 km <br /> Easy None


[[Ridge Top (Warriors Path State Park)|Ridge Top 0.48 mi0.772 km <br /> Hard None


[[Riverbank|Riverbank]] 0.24 mi0.386 km <br /> Easy Blue


[[Rock City|Rock City]] 0.5 mi0.805 km <br /> Medium Black


[[Sinking Waters|Sinking Waters]] 1.75 mi2.816 km <br /> Easy Green, Yellow, Blue


[[Whitetail Alternate|Whitetail Alternate]] 0.2 mi0.322 km <br /> Medium None


[[Whitetail Loop|Whitetail Loop]] 2.306 mi3.711 km <br /> Medium Blue Triangle


[[Woodland Ridge|Woodland Ridge]] 0.78 mi1.255 km <br /> Medium None


[[Zipline|Zipline]] 0.353 mi0.568 km <br /> Easy None