Template:List trail template: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(Created page with "<noinclude>list table template for trails. Park/Trail aware. Probably will make different ones for Park vs. Trail instead of one monolithic beast. Trails will have: * Trail n...")
 
(first real attempt)
Line 28: Line 28:
</noinclude><includeonly>{{#switch:{{{#userparam|}}}
</noinclude><includeonly>{{#switch:{{{#userparam|}}}
|intro={{{!}} border="1" class="wikitable sortable"
|intro={{{!}} border="1" class="wikitable sortable"
! Park Trails
! Trail
! Highlight
! Distance
! Distance
! Difficulty
! Length
! Marking
! Use
! Usage
! Features
! Highlight
{{!}}-
{{!}}-
|outro={{!}}}
|outro={{!}}}
|row={{!}}-
|row={{!}}-
{{!}}[[{{{trail|}}}{{!}}{{#explode:{{{trail|}}}|<nowiki/> (<nowiki/>|0}}]]
{{!}}[[{{{trail|}}}{{!}}{{#explode:{{{trail|}}}|<nowiki/> (<nowiki/>|0}}]]</br><small>{{{park|}}}{{#if: {{{park|}}}{{{system|}}}|, }}{{{system|}}}</small>
{{!}}{{{distance|}}}
{{!}}{{{distance|}}}
{{!}}{{{difficulty|}}}
{{!}}{{{highlight|}}}
{{!}}{{{marking|}}}
{{!}}{{#geodistance:Kingsport, TN, USA|{{{parking|}}}|unit=mi|decimals=1}}
{{!}}{{{round trip|}}}
{{!}}{{Auto List to Icons|List={{{use|}}}}}
{{!}}{{Auto List to Icons|List={{{use|}}}}}
{{!}}{{{highlight|}}}
{{!}}{{Auto List to Icons|List={{{features|}}}}}
{{!}}-
|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 }} | {{#formredlink:target={{{trail|}}}|form=Trail|query string=Trail[Park]={{{park|}}}&Trail[Trail Marking]={{{marking|}}}&Trail[Trail Distance]={{{distance|}}}&Trail[Trail Highlight]={{{highlight|}}}&Trail[Difficulty Rating]={{{difficulty|}}} }}{{#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|}}}
{{!}}{{{difficulty|}}}
{{!}}{{{marking|}}}
{{!}}<nowiki> </nowiki>
{{!}}{{{highlight|}}}
{{!}}-
{{!}}-
{{!}} colspan="6" {{!}} Comment: {{{list comment|}}}
|header={{!}}-
|header={{!}}-
!colspan="6"{{!}}{{{header|}}}
!colspan="6"{{!}}{{{header|}}}
{{!}}-
{{!}}-
}}</includeonly>
}}</includeonly>

Revision as of 22:59, 13 May 2020

list table template for trails. Park/Trail aware. Probably will make different ones for Park vs. Trail instead of one monolithic beast.

Trails will have:

  • Trail name
  • Park or Trail System
  • Highlight (Put underneath other info?)
  • Distance from Kingsport - Could be later converted to a distance based on user configured location
  • Round trip distance
  • Trail Use Icons
  • Features Icons
  • Listing comment (underneath)

It expects the following usage format.

{{List trail template
 |#userparam=
 |trail=
 |park=
 |system=
 |highlight=
 |parking=
 |round trip=
 |use=
 |features=
 |list comment=
}}