Template:Park trail count: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
m (reword the instructions)
(Remove unneeded return of trail miles in query)
Line 10: Line 10:
</noinclude>
</noinclude>
<includeonly>{{#ask: [[Category:Trail]] [[Park::{{PAGENAME}}]]
<includeonly>{{#ask: [[Category:Trail]] [[Park::{{PAGENAME}}]]
| ?Trail distance round trip#mi
  | format=count
  | format=count
}}</includeonly>
}}</includeonly>

Revision as of 12:08, 11 September 2015

This returns the number of trails assigned to the park that this template is called on.

More specifically it counts the number of pages with Category:Trail and the property Park set to the page name this template is called on.

It should be called in the following format:

{{Park trail count}}

Edit the page to see the template text.