Template:Park trail table: Difference between revisions
Jump to navigation
Jump to search
m (fix capitalization) |
m (plural category) |
||
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. | ||
More specifically, it makes a table of the pages with [[:Category: | 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 blaze|Trail blaze]]. | ||
If selected, it will also show any trail stubs created on the park page. | If selected, it will also show any trail stubs created on the park page. | ||
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: | <includeonly>{{#ask: [[Category:Trails]] [[Park::{{{Park}}}]] | ||
| mainlabel=Park Trails | | mainlabel=Park Trails | ||
| ?Trail Distance#mi=Distance | | ?Trail Distance#mi=Distance |
Revision as of 23:43, 17 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.