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 Marking]]. | ||
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. | ||
Example output for | '''Note:''' Site is in a transition from "Trail Blaze" to "Trail Marking" - searches for "Blaze" for now, but at some tipping point I will change this to "Marking" | ||
{{#ask:[[Category:Trail||Trails]] [[Park:: | Example output for Warriors' Path State Park: | ||
|mainlabel= | {{#ask: [[Category:Trail||Trails]] [[Park::Warriors' Path State Park]] | ||
| ?Trail Distance#mi | | mainlabel=Park Trails | ||
| ?Difficulty= | | ?Trail Distance#mi=Distance | ||
| ?Difficulty=Difficulty | |||
| ?Trail Blaze=Blaze | |||
|format=table | |||
| ?Trail | |||
|format= | |||
}} | }} | ||
[[Category:Park Class Items]] | [[Category:Park Class Items]] | ||
</noinclude><includeonly>{{Park trail table template|#userparam=intro}} | </noinclude> | ||
<includeonly>{{Park trail table template|#userparam=intro}} | |||
{{#ask:[[Category:Trail||Trails]] [[Park::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }}]] | {{#ask:[[Category:Trail||Trails]] [[Park::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }}]] | ||
|mainlabel=trail | |mainlabel=trail | ||
| ?Trail Distance#mi | | ?Trail Distance#mi=distance | ||
| ?Difficulty=difficulty | | ?Difficulty=difficulty | ||
| ?Trail Marking=marking | | ?Trail Marking=marking | ||
|format=plainlist | |format=plainlist | ||
|headers=hide | |headers=hide | ||
Line 60: | Line 36: | ||
|named args=yes | |named args=yes | ||
}} | }} | ||
{{#ask: [[Category:Trail | {{#ask: [[Category:Trail||Trails]] [[-Has subobject::{{#if: {{{Park|}}}|{{{Park|}}}|{{PAGENAME}} }}]] | ||
| mainlabel=- | | mainlabel=- | ||
| ?Trail=trail | | ?Trail=trail | ||
| ?Trail Distance#mi | | ?Trail Distance#mi=distance | ||
| ?Difficulty=difficulty | | ?Difficulty=difficulty | ||
| ?Trail Marking=marking | | ?Trail Marking=marking | ||
|format=plainlist | |format=plainlist | ||
|headers=hide | |headers=hide | ||
|link=none | |link=none | ||
|template=Park trail table template | |template=Park trail table template | ||
|userparam= | |userparam=row | ||
|named args=yes | |named args=yes | ||
}} | }} | ||
{{Park trail table template|#userparam=outro}}</includeonly> | {{Park trail table template|#userparam=outro}}</includeonly> |