Template:Park trail table template: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(add links to trail stub names)
m (make table sortable)
Line 21: Line 21:
[[Category:Universal Templates]]
[[Category:Universal Templates]]
</noinclude><includeonly>{{#switch:{{{#userparam|}}}
</noinclude><includeonly>{{#switch:{{{#userparam|}}}
|intro={{{!}} border="1" class="wikitable"
|intro={{{!}} border="1" class="wikitable sortable"
! Park Trails
! Park Trails
! Distance
! Distance

Revision as of 10:46, 12 December 2018

This is a format template for the Template:Park trail table. It is expected to be used in conjunction with a semantic query. The parameter userparam is part of the format 'template' and is used to specify the switch to 'row' when needed. Otherwise repeated calls can use the template to envoke the intro, outro, or a header output. If using the header output, you can specify the additional 'header' parameter to give it the text to place in the header row.

This template was created to handle the combination of trail pages and trail stubs (park page subobjects). As of now, this seems to be the only way to seamlessly accomplish that in a pleasing format.

It expects the following usage format.

{{Park trail table template
 |#userparam=
 |header=
 |trail=
 |distance=
 |difficulty=
 |marking=
}}

But its usage in practice is like this with the middle two calls of the header and actual query being repeated as necessary

ADD LATER

Edit the page to see the template text.