Template:List trail template: Difference between revisions
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...") |
Tag: Undo |
||
(16 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
{{List trail template | {{List trail template | ||
|#userparam= | |#userparam= | ||
|listpage= | |||
|trail= | |trail= | ||
|park= | |park= | ||
Line 28: | Line 29: | ||
</noinclude><includeonly>{{#switch:{{{#userparam|}}} | </noinclude><includeonly>{{#switch:{{{#userparam|}}} | ||
|intro={{{!}} border="1" class="wikitable sortable" | |intro={{{!}} border="1" class="wikitable sortable" | ||
! | ! Trail | ||
! Highlight | |||
! Distance | ! Distance | ||
! | ! Length | ||
! | ! Use | ||
! | ! Features | ||
! | ! Modify | ||
{{!}}- | {{!}}- | ||
|outro={{!}}} | |outro={{!}}} | ||
|row={{!}}- | |row={{!}}- | ||
{{!}}[[{{{trail|}}}{{!}}{{#explode:{{{trail|}}}|<nowiki/> (<nowiki/>|0}}]] | {{!}}<big>[[{{{trail|}}}{{!}}{{#explode:{{{trail|}}}|<nowiki/> (<nowiki/>|0}}]]</big><small>{{#if: {{{park|}}}|<br />[[{{{park|}}}]]}}{{#if: {{{system|}}}|<br />{{#arraymap:{{{system|}}}|, |@@@@|[[@@@@]]|, }}}}</small> | ||
{{!}}{{{ | {{!}}{{{highlight|}}} | ||
{{!}}{{{ | {{!}}{{#geodistance:Kingsport, TN, USA|{{{parking|}}}|unit=mi|decimals=1}} | ||
{{!}}{{{ | {{!}}{{{round trip|}}} | ||
{{!}}{{Auto List to Icons|List={{{use|}}}}} | {{!}}{{Auto List to Icons|List={{{use|}}}}} | ||
{{!}}{{{ | {{!}}{{Auto List to Icons|List={{{features|}}}}} | ||
{{!}}rowspan="2"{{!}}{{#formlink:form=List|link type=button|link text=Edit|target={{{listpage|}}}|popup|reload}} | |||
{{!}}- | {{!}}- | ||
{{!}} colspan="6" {{!}} Comment: {{{list comment|}}} | |||
{{!}} | |||
{{!}}{{{ | |||
{{!}}- | {{!}}- | ||
|header={{!}}- | |header={{!}}- | ||
!colspan=" | !colspan="7"{{!}}{{{header|}}} | ||
{{!}}- | {{!}}- | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 12:41, 6 January 2021
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= |listpage= |trail= |park= |system= |highlight= |parking= |round trip= |use= |features= |list comment= }}