Template:Trail: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
m (remove if's on known keepers)
(switching to css style)
Line 28: Line 28:
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>{| style="width: 350px; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
</noinclude><includeonly>{| class="Infobox_Trail"
! style="text-align: center; background-color:#D1CEC3;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
! style="text-align: center;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
|-
|-
| colspan=2 border=0 height="200" align="center" valign="top" | {{#ifexist: Media:{{PAGENAME}} Banner.jpg|[[File:{{PAGENAME}} Banner.jpg|350px]]|<div style="width:250px"><div class="pops" style="width:200px;height:200px;line-height:250px;text-align:center;border: 1px solid #404040">''[[media:{{PAGENAME}} Banner.jpg|Click here to upload a picture]]''</div></div>}}
| colspan=2 border=0 height="200" align="center" valign="top" | {{#ifexist: Media:{{PAGENAME}} Banner.jpg|[[File:{{PAGENAME}} Banner.jpg|350px]]|<div style="width:250px"><div class="pops" style="width:200px;height:200px;line-height:250px;text-align:center;border: 1px solid #404040">''[[media:{{PAGENAME}} Banner.jpg|Click here to upload a picture]]''</div></div>}}
|-
|-
! style="text-align: center; background-color:#D1CEC3; height: 1em;" colspan="2" |  
! colspan="2" |  
|-
|-
{{#if: {{{Trail Number|}}}|! style="text-align: left; background-color:#D1CEC3;" | Trail Number}}
{{#if: {{{Trail Number|}}}|! Trail Number}}
{{#if: {{{Trail Number|}}}|{{!}} [[Trail number::{{{Trail Number|}}}]]}}
{{#if: {{{Trail Number|}}}|{{!}} [[Trail number::{{{Trail Number|}}}]]}}
|-
|-
{{#if: {{{Park|}}}|! style="text-align: left; background-color:#D1CEC3;" | Park}}
{{#if: {{{Park|}}}|! Park}}
{{#if: {{{Park|}}}|{{!}} [[Park::{{{Park|}}}]]}}
{{#if: {{{Park|}}}|{{!}} [[Park::{{{Park|}}}]]}}
|-
|-
{{#if: {{{Land Owner|}}}|! style="text-align: left; background-color:#D1CEC3;" | Land Owner}}
{{#if: {{{Land Owner|}}}|! Land Owner}}
{{#if: {{{Land Owner|}}}|{{!}} [[Land Owner::{{{Land Owner|}}}]]}}
{{#if: {{{Land Owner|}}}|{{!}} [[Land Owner::{{{Land Owner|}}}]]}}
|-
|-
{{#if: {{{Wilderness Area|}}}|! style="text-align: left; background-color:#D1CEC3;" | Wilderness Area}}
{{#if: {{{Wilderness Area|}}}|! Wilderness Area}}
{{#if: {{{Wilderness Area|}}}|{{!}} [[Wilderness Area::{{{Wilderness Area|}}}]]}}
{{#if: {{{Wilderness Area|}}}|{{!}} [[Wilderness Area::{{{Wilderness Area|}}}]]}}
|-
|-
! style="text-align: left; background-color:#D1CEC3;" | Nearest City
! Nearest City
| [[City::{{{City|}}}]]
| [[City::{{{City|}}}]]
|-
|-
! style="text-align: left; background-color:#D1CEC3;" | [[Property:State | State]]
! [[Property:State | State]]
| [[State::{{{State}}}]]
| [[State::{{{State}}}]]
|-
|-
! style="text-align: left; background-color:#D1CEC3;" | Trail Marking
! Trail Marking
| [[Trail Marking::{{{Trail Marking}}}]]
| [[Trail Marking::{{{Trail Marking}}}]]
|-
|-
! style="text-align: left; background-color:#D1CEC3;" | [[Template:List to Icons| Trail Use]]
! [[Template:List to Icons| Trail Use]]
| {{List to Icons|List={{{Trail Use|}}}}}{{#set:Allowed activities={{{Trail Use|}}}|+sep=,}}
| {{List to Icons|List={{{Trail Use|}}}}}{{#set:Allowed activities={{{Trail Use|}}}|+sep=,}}
|-
|-
! style="text-align: left; background-color:#D1CEC3;" | [[Template:List to Icons| Features]]
! [[Template:List to Icons| Features]]
| {{List to Icons|List={{{Trail Features|}}}}}{{#set:Features={{{Trail Features|}}}|+sep=,}}
| {{List to Icons|List={{{Trail Features|}}}}}{{#set:Features={{{Trail Features|}}}|+sep=,}}
|-
|-
! style="text-align: left; background-color:#D1CEC3;" | [[ClubWIKI:Difficulty Rating| Difficulty Rating]]
! [[ClubWIKI:Difficulty Rating| Difficulty Rating]]
| [[Difficulty::{{{Difficulty Rating}}}]]
| [[Difficulty::{{{Difficulty Rating}}}]]
|-
|-
! style="text-align: left; background-color:#D1CEC3;" | Hiking Time
! Hiking Time
| [[Hike Time::{{{Hike Time}}}]]
| [[Hike Time::{{{Hike Time}}}]]
|-
|-
{{#if: {{{Trail Distance|}}}|! style="text-align: left; background-color:#D1CEC3;" | Distance:<br>round-trip/trail only}}
{{#if: {{{Trail Distance|}}}|! Distance:<br>round-trip/trail only}}
{{#if: {{{Trail Distance|}}}|{{!}} [[Trail distance round trip::{{{Round Trip Distance|}}}]] / [[Trail Distance::{{{Trail Distance}}}]]}}
{{#if: {{{Trail Distance|}}}|{{!}} [[Trail distance round trip::{{{Round Trip Distance|}}}]] / [[Trail Distance::{{{Trail Distance}}}]]}}
|-
|-
! style="text-align: left; background-color:#D1CEC3;" | Trail Type
! Trail Type
| [[Trail Type::{{{Trail Type}}}]]
| [[Trail Type::{{{Trail Type}}}]]
|-
|-
! style="text-align: left; background-color:#D1CEC3;" | {{#if: {{{Low Point|}}}| Low /&nbsp;}}High Point
! {{#if: {{{Low Point|}}}| Low /&nbsp;}}High Point
| {{#if: {{{Low Point|}}}| [[Trail Low Point::{{{Low Point}}}]] /&nbsp;}}[[Trail High Point::{{{High Point}}}]]
| {{#if: {{{Low Point|}}}| [[Trail Low Point::{{{Low Point}}}]] /&nbsp;}}[[Trail High Point::{{{High Point}}}]]
|-
|-
! style="text-align: left; background-color:#D1CEC3;" | Elevation Change
! Elevation Change
| [[Trail Elevation Change::{{{Elevation Change}}}]]
| [[Trail Elevation Change::{{{Elevation Change}}}]]
|-
|-
! style="text-align: left; background-color:#D1CEC3;" | Parking
! Parking
| [[Parking location::{{{Parking location|}}}]]
| [[Parking location::{{{Parking location|}}}]]
|-
|-
! style="text-align: left; background-color:#D1CEC3;" | Trailhead
! Trailhead
| [[Trailhead location::{{{Trailhead location|}}}]]
| [[Trailhead location::{{{Trailhead location|}}}]]
|-
|-
Line 89: Line 89:
{{#display_map:{{{Parking location|}}}~{{#titleparts:{{PAGENAME}}}}~Main Parking Location|zoom=8|width=100%|height=180px|type=roadmap|controls=}}
{{#display_map:{{{Parking location|}}}~{{#titleparts:{{PAGENAME}}}}~Main Parking Location|zoom=8|width=100%|height=180px|type=roadmap|controls=}}
|-
|-
! style="text-align: center; background-color:#D1CEC3;" colspan="2" | <span style="font-size: larger;">[http://maps.google.com/maps?q={{#replace:{{{Parking location|}}}}} Show In Google Maps]</span>
! style="text-align: center;" colspan="2" | <span style="font-size: larger;">[http://maps.google.com/maps?q={{#replace:{{{Parking location|}}}}} Show In Google Maps]</span>
|}[[Category:Trail]]</includeonly>
|}[[Category:Trail]]</includeonly>

Revision as of 18:08, 15 November 2018

This is the 'Trail' template. This template creates the 'sidebar' with info about each trail like the state, nearest city, coordinates of the tail head. If not used, entries marked "Optional" should be left blank (no '*') in the usage to avoid erroneous data connections.

It should be called in the following format:

{{Infobox Trail
 | Trail Number = Optional - Typically a Forest Service Trail #
 | Park = Optional - should be name of a park without [[ ]] that has a page
 | Land Owner = Optional - Expected to typically be name of city, state, or national forest (e.g. Kingsport, Cherokee National Forest, or Tennessee)
 | Wilderness Area = Optional - Name of wilderness area if it applies
 | City = Nearest city
 | State = State located in
 | Marking = Trail marking - only color if standard rectangle, otherwise include shape
 | Trail Use = Things you can do on the trail (ATV, dog free, horse, camp, etc.) 
 | Trail Features = Things you get to see (Waterfalls, open views, caves, rivers, etc.)
 | Difficulty Rating = Easy / Medium / Hard
 | Hike Time = Default Hours, but accepts Min
 | Round Trip Distance = Typical/shortest trip distance to get from parking to do the trail and back (Default Miles, but accepts Ft, Meters, and km)
 | Trail Distance = The strict length of the trail ignoring any repeated sections for obsessive unique trail counters (Default Miles, but accepts Ft, Meters, and km)
 | Trail Type = Loop / In-and-Out / Segment (Choose one of the three)
 | Elevation Gain = Total climbing distance for described hike direction (Default Feet but accepts Yards, Meters, km)
 | Elevation Loss = Total descending distance for described hike direction (Default Feet but accepts Yards, Meters, km)
 | Low Point = Optional - As it is, the lowest elevation of the trail (Default Feet but accepts Yards, Meters, km)
 | Elevation Change = Optional - Simple mathematical difference between Low point and High point (Default Feet but accepts Yards, Meters, km)
 | High Point = Default Feet but accepts Yards, Meters, km
 | Parking location = Lat,Lon format, long term replacing Latitude and Longitude above (sets IB map pin)
 | Trailhead location = Optional if not within visual distance of parking location
}}

Edit the page to see the template text.