Template:Park trail table template: Difference between revisions
(Created page with "<noinclude>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...") |
(make stubs row switch) |
||
Line 30: | Line 30: | ||
|row={{!}}- | |row={{!}}- | ||
{{!}}{{{trail|}}} | {{!}}{{{trail|}}} | ||
{{!}}{{{distance|}}} | |||
{{!}}{{{difficulty|}}} | |||
{{!}}{{{marking|}}} | |||
{{!}}- | |||
|stubs row={{!}}- | |||
{{!}}{{#ifexist: {{{trail|}}} | {{{trail|}}}{{#info: This trail name already exists as a page on this wiki. Either the page was created after making this "stub" or a name collision has occurred. Delete the trail stub from this park or make the trail stub name on this park unique. | error }} | {{{trail|}}}{{#info: This trail is a "stub" either because of its short length, lack of significance, or the page hasn't been created yet. The page can be created, but then delete the stub reference from this park. | info }} }} | |||
{{!}}{{{distance|}}} | {{!}}{{{distance|}}} | ||
{{!}}{{{difficulty|}}} | {{!}}{{{difficulty|}}} |
Revision as of 10:36, 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.