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 along with any assigned Trail Stubs.
<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 either the [[:Category:Trail]] (legacy) or [[:Category:Trails]] (revised categorization) and the property [[Property:Park|Park]] set to the page name. It then combines it with a list of any Trail Stubs assigned to the Park for which the template was ran. It also displays the properties [[Property:Trail Distance|Trail Distance]] in miles, the [[Property:Difficulty|Difficulty]], the [[Property:Trail Marking|Trail Marking]], and a brief [[Property:Trail Highlight|Trail Highlight]]. To define the table format (and make it easily format in the desired manner) the queries use the Template [[Template:Park trail table template|Park trail table template]].
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]].


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.  


It should be called in the following format with the optional Park parameter (it defaults to using the name of the page from which it is run). 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 table|Park={{PAGENAME}}}}
{{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 [[Rocky Fork State Park]]:  
'''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"
{{Park trail table template|#userparam=intro}}
 
{{#ask:[[Category:Trail||Trails]] [[Park::Rocky Fork State Park]]
Example output for Warriors' Path State Park:  
  |mainlabel=trail
{{#ask: [[Category:Trail||Trails]] [[Park::Warriors' Path State Park]]  
  | ?Trail Distance#mi-p2=distance
  | mainlabel=Park Trails
  | ?Difficulty=difficulty
  | ?Trail Distance#mi=Distance
| ?Trail Marking=marking
  | ?Difficulty=Difficulty
  | ?Trail Highlight=highlight
  | ?Trail Blaze=Blaze
| ?Allowed activities=use
  |format=table
  |format=plainlist
|headers=hide
|link=none
|template=Park trail table template
|userparam=row
|named args=yes
}}
}}
{{#ask: [[Category:Trail Stubs]] [[-Has subobject::Rocky Fork State Park]]
| mainlabel=-
| ?Trail=trail
| ?Trail Distance#mi-p2=distance
| ?Difficulty=difficulty
| ?Trail Marking=marking
| ?Trail Highlight=highlight
| ?Park=park
|format=plainlist
|headers=hide
|link=none
|template=Park trail table template
|userparam=stubs row
|named args=yes
}}
{{Park trail table template|#userparam=outro}}
[[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-p2=distance
  | ?Trail Distance#mi=distance
  | ?Difficulty=difficulty
  | ?Difficulty=difficulty
  | ?Trail Marking=marking
  | ?Trail Marking=marking
| ?Trail Highlight=highlight
| ?Allowed activities=use
  |format=plainlist
  |format=plainlist
  |headers=hide
  |headers=hide
|link=none
  |template=Park trail table template
  |template=Park trail table template
  |userparam=row
  |userparam=row
Line 63: Line 38:
  | mainlabel=-
  | mainlabel=-
  | ?Trail=trail
  | ?Trail=trail
  | ?Trail Distance#mi-p2=distance
  | ?Trail Distance#mi=distance
  | ?Difficulty=difficulty
  | ?Difficulty=difficulty
  | ?Trail Marking=marking
  | ?Trail Marking=marking
| ?Trail Highlight=highlight
| ?Park=park
  |format=plainlist
  |format=plainlist
  |headers=hide
  |headers=hide
|link=none
  |template=Park trail table template
  |template=Park trail table template
  |userparam=stubs row
  |userparam=stubs row
Please note that all contributions to TEHCC Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see TEHCC Wiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)