Editing Template:Park trail table
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
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 | 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. | |||
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 | {{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. | ||
</noinclude> | |||
<includeonly>{{#ask: [[Category:Trail||Trails]] [[Park::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }}]] | |||
| mainlabel=Park Trails | |||
| ?Trail Distance#mi=Distance | |||
| ?Difficulty=Difficulty | |||
| ?Trail Blaze=Blaze | |||
|format=table | |||
</noinclude><includeonly> | |||
{{#ask:[[Category:Trail||Trails]] [[Park::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }}]] | |||
|mainlabel= | |||
| ?Trail Distance#mi | |||
| ?Difficulty= | |||
| ?Trail | |||
|format= | |||
}} | }} | ||
{{#if:{{{Show stubs|}}}|And the following trails without dedicated pages | |||
{{#ask: [[-Has subobject::Warriors Path State Park]] | |||
| ?Trail=Park Trails | |||
| ?Trail Distance#mi=Distance | |||
| ?Difficulty=Difficulty | |||
| ?Trail Blaze=Blaze | |||
| mainlabel=- | | mainlabel=- | ||
| format=table | |||
}}}}</includeonly> | |||
|format= | |||
}} | |||