Template:Park trail table: Difference between revisions
Jump to navigation
Jump to search
(creating the table template with optional stubs table) |
m (fixing stubs #if) |
||
Line 7: | Line 7: | ||
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/ | {{Park trail list|Park={{PAGENAME}}|Show stubs=yes/blank}} | ||
</pre> | </pre> | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
Line 18: | Line 18: | ||
|format=table | |format=table | ||
}} | }} | ||
{{#if:Show stubs | {{#if:{{{Show stubs|}}}|And the following trails without dedicated pages | ||
{{#ask: [[-Has subobject::Warriors Path State Park]] | {{#ask: [[-Has subobject::Warriors Path State Park]] | ||
| ?Trail=Park Trails | | ?Trail=Park Trails |
Revision as of 06:06, 26 April 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:Trail 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.