Template:Park trail table: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Make park field optional - defaults to pagename if not provided) |
||
Line 11: | Line 11: | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
</noinclude> | </noinclude> | ||
<includeonly>{{#ask: [[Category:Trail||Trails]] [[Park::{{{Park}}}]] | <includeonly>{{#ask: [[Category:Trail||Trails]] [[Park::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }}]] | ||
| mainlabel=Park Trails | | mainlabel=Park Trails | ||
| ?Trail Distance#mi=Distance | | ?Trail Distance#mi=Distance |
Revision as of 09:25, 18 November 2018
This returns a table of the trails associated with the park page it is called on.
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 Trail blaze.
If selected, 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}}|Show stubs=yes/blank}}
Edit the page to see the template text.