Template:List trail template: Difference between revisions
Jump to navigation
Jump to search
m (Tim moved page List trail template to Template:List trail template without leaving a redirect: forgot namespace) |
(try now) |
||
Line 27: | Line 27: | ||
</pre> | </pre> | ||
</noinclude><includeonly>{{#switch:{{{#userparam|}}} | </noinclude><includeonly>{{#switch:{{{#userparam|}}} | ||
|intro= | |intro={{{!}} border="1" class="wikitable sortable" | ||
|outro= | ! Trail | ||
|row= | ! Highlight | ||
! Distance | |||
! Length | |||
! Use | |||
! Features | |||
{{!}}- | |||
|outro={{!}}} | |||
|row={{!}}- | |||
{{!}}[[{{{trail|}}}{{!}}{{#explode:{{{trail|}}}|<nowiki/> (<nowiki/>|0}}]]</br><small>{{{park|}}}{{#if: {{{park|}}}{{{system|}}}|, }}{{{system|}}}</small> | |||
{{!}}{{{distance|}}} | |||
{{!}}{{{highlight|}}} | |||
{{!}}{{#geodistance:Kingsport, TN, USA|{{{parking|}}}|unit=mi|decimals=1}} | |||
{{!}}{{{round trip|}}} | |||
{{!}}{{Auto List to Icons|List={{{use|}}}}} | |||
{{!}}{{Auto List to Icons|List={{{features|}}}}} | |||
{{!}}- | |||
{{!}} colspan="6" {{!}} Comment: {{{list comment|}}} | |||
{{!}}- | |||
|header={{!}}- | |header={{!}}- | ||
!colspan="6"{{!}}{{{header|}}} | !colspan="6"{{!}}{{{header|}}} | ||
{{!}}- | {{!}}- | ||
}}</includeonly> | }}</includeonly> |
Revision as of 22:08, 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= }}