Template:Park trail count: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(Created page with "<noinclude>This counts the number of trails with the "Park" property set to the page name of the page this template is called on. More specifically it coun...")
 
(Format when used is weird. Trying something.)
Line 9: Line 9:
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude>
</noinclude>
<includeonly>
<includeonly>{{#ask: [[Category:Trail]] [[Park::{{PAGENAME}}]]
{{#ask: [[Category:Trail]] [[Park::{{PAGENAME}}]]
  | ?Trail distance round trip#mi
  | ?Trail distance round trip#mi
  | format=count
  | format=count
}}
}}</includeonly>
</includeonly>

Revision as of 08:28, 11 September 2015

This counts the number of trails with the "Park" property set to the page name of the page 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.

It should be called in the following format:

{{Park trail count}}

Edit the page to see the template text.