Template:Park trail list: Difference between revisions
(add trail blaze to table) |
m (add template category) |
||
(25 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>This returns a | <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: | 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}} }}]] | ||
| | | format=list | ||
}}</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