Template:Infobox Trail: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
m (add note that trailhead coords will be used for dynamic trails map - maybe add logic to automatically use parking coords if trailhead coords not specified?)
(Add optional fields for land owner and wilderness area including SMW hooks)
Line 7: Line 7:
  | Trail Number = Optional - Typically a Forest Service Trail #
  | Trail Number = Optional - Typically a Forest Service Trail #
  | Park = Optional - should be name of a park without [[ ]] that has a page
  | Park = Optional - should be name of a park without [[ ]] that has a page
  | City = *
| Land Owner = Optional - Expected to typically be name of city, state, or national forest (e.g. Kingsport, Cherokee National Forest, or Tennessee)
  | State = *
| Wilderness Area = Optional - Name of wilderness area if it applies
  | Marking = *
  | City = Nearest city
  | State = State located in
  | Marking = Trail marking - only color if standard rectangle, otherwise include shape
  | Trail Use = {{ATV‎}} {{Biking}} {{Camping}} {{Dogs}} {{Fishing}} {{Hike}} {{Horses}} {{Shelter}} {{Skiing}} {{Waterfall}}  
  | Trail Use = {{ATV‎}} {{Biking}} {{Camping}} {{Dogs}} {{Fishing}} {{Hike}} {{Horses}} {{Shelter}} {{Skiing}} {{Waterfall}}  
  | Difficulty Rating = Easy / Medium / Hard
  | Difficulty Rating = Easy / Medium / Hard
Line 30: Line 32:
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
12/4/2016 Added fields for land owner and wilderness areas
</noinclude><includeonly><!----
</noinclude><includeonly><!----


Line 57: Line 61:
{{#if: {{{Park|}}}|! Park}}
{{#if: {{{Park|}}}|! Park}}
{{#if: {{{Park|}}}|{{!}} [[Park::{{{Park|}}}]]}}
{{#if: {{{Park|}}}|{{!}} [[Park::{{{Park|}}}]]}}
|-
{{#if: {{{Land Owner|}}}|! Land Owner}}
{{#if: {{{Land Owner|}}}|{{!}} [[Land owner::{{{Owner|}}}]]}}
|-
{{#if: {{{Wilderness Area|}}}|! Wilderness Area}}
{{#if: {{{Wilderness Area|}}}|{{!}} [[Wilderness area::{{{Wilderness|}}}]]}}
|-
|-
! Nearest City
! Nearest City

Revision as of 10:24, 4 December 2016

This is the 'Infobox Trail' template. This template creates the 'sidebar' with info about each trail like the state, nearest city, nearest medical, coordinates of the tail head. If not used, entries marked "Optional" should be least blank (no '*') in the usage to avoid erroneous data connections. Lines marked "OBSOLETE" are not to be used and should be deleted in the usage if updating a trail page. They are left here for backward compatibility and will be removed once the conversion is complete.

It should be called in the following format:

{{Infobox Trail
 | Image Name = Placeholder.gif
 | 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 = {{ATV‎}} {{Biking}} {{Camping}} {{Dogs}} {{Fishing}} {{Hike}} {{Horses}} {{Shelter}} {{Skiing}} {{Waterfall}} 
 | Difficulty Rating = Easy / Medium / Hard
 | Hike Time = Default Hours, but accepts Min
 | Distance = OBSOLETE - Hike distance, unclear intent; round trip? Segments? Lollipops? (Default Miles, but accepts Ft, Meters, and km)
 | 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
 | Latitude = OBSOLETE - Latitude location of parking location in decimal format
 | Longitude = OBSOLETE - Longitude location of parking location in decimal format
 | Parking coords = Lat,Lon format, long term replacing Latitude and Longitude above (sets IB map pin)
 | Trailhead coords = Optional - Lat,Lon format, likely use this on the trail map, use will place a pin on the dynamic trails map on front page
 | Medical = *
}}

Edit the page to see the template text.

12/4/2016 Added fields for land owner and wilderness areas