Template:Infobox Trail: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(trying fixed coordinates)
(add template category)
 
(76 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>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.
<!----
!
! This template creates the 'sidebar' with info about each trail like the  
! state, nearest city, nearest medical, coordinates of the tail head.
!
-->


This is the 'Infobox Trail' template.
It should be called in the following format:
It should be called in the following format:
<pre>
<pre>
{{Infobox Trail
{{Infobox Trail
                    | Image Name = Placeholder.gif
| Image Name = Placeholder.gif
                    | City = *
| Trail Number = Optional - Typically a Forest Service Trail #
                    | State = *
| Park = Optional - should be name of a park without [[ ]] that has a page
                    | Marking = *
| Land Owner = Optional - Expected to typically be name of city, state, or national forest (e.g. Kingsport, Cherokee National Forest, or Tennessee)
                    | Trail Use = <list names of other templates>
| Wilderness Area = Optional - Name of wilderness area if it applies
                    | Difficulty Rating = *
| City = Nearest city
                    | Hike Time = *
| State = State located in
                    | Distance = *
| Marking = Trail marking - only color if standard rectangle, otherwise include shape
                    | Elevation Gain = *
| Trail Use = {{ATV‎}} {{Biking}} {{Camping}} {{Dogs}} {{Fishing}} {{Hike}} {{Horses}} {{Shelter}} {{Skiing}} {{Waterfall}}
                    | High Point = *
| Difficulty Rating = Easy / Medium / Hard
                    | Latitude = *
| Hike Time = Default Hours, but accepts Min
                    | Longitude = *
| Distance = OBSOLETE - Hike distance, unclear intent; round trip? Segments? Lollipops? (Default Miles, but accepts Ft, Meters, and km)
                    | Medical = *
| 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 = *
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>
{{#set:
Trail head coordinates=-32.715°, -77.03201°
}}
<div style="float: right; width: 270px">
<!----hide the table of contents, I'm not expecting our pages so long that they're needed -->
__NOTOC__


<div class="Infobox_Trail">
12/4/2016 Added fields for land owner and wilderness areas
<!--the class assignment makes sure we get the right CSS applied from Common.css -->
[[Category:Obsolete Templates]]
</noinclude><includeonly><!----
 
hide the table of contents, I'm not expecting our pages so long that they're needed
-->__NOTOC__
<div style="float: right; width: 350px"><div class="Infobox_Trail"><!--
the class assignment makes sure we get the right CSS applied from Common.css  
 
Begin main table
-->
{| style="width: 100%; margin:5px 0 0 0; background:none; border-spacing: 0px;"
| style="width:50%; vertical-align:top;" |
{|  
{|  
<!--lines like the one below create a visual divider bar cell -->
<!--lines like the one below create a visual divider bar cell -->
!colspan="2" |
!colspan="2" |
|-
|-
| colspan=2 border=0 height="200" align="center" valign="top" | [[Image:{{{Image Name}}}|270px]]
| colspan=2 border=0 height="200" align="center" valign="top" | [[Image:{{{Image Name}}}|350px]]
|-  
|-  
!colspan="2" |
!colspan="2" |
|-
|-
! width="150" | Trail Name
! width="150" | Trail Name
| width="130" | {{PAGENAME}}
| width="200" | {{PAGENAME}}
|-
{{#if: {{{Trail Number|}}}|! Trail Number}}
{{#if: {{{Trail Number|}}}|{{!}} [[Trail number::{{{Trail Number|}}}]]}}
|-
{{#if: {{{Park|}}}|! Park}}
{{#if: {{{Park|}}}|{{!}} [[Park::{{{Park|}}}]]}}
|-
{{#if: {{{Land Owner|}}}|! Land Owner}}
{{#if: {{{Land Owner|}}}|{{!}} [[Land Owner::{{{Land Owner|}}}]]}}
|-
{{#if: {{{Wilderness Area|}}}|! Wilderness Area}}
{{#if: {{{Wilderness Area|}}}|{{!}} [[Wilderness Area::{{{Wilderness Area|}}}]]}}
|-
|-
! Nearest City
! Nearest City
Line 56: Line 76:
|-
|-
! Trail Marking
! Trail Marking
| {{{Marking}}}
| [[Trail Blaze::{{{Marking}}}]]
|-
|-
! [[ClubWIKI:Trail Use| Trail Use/Features]]
! [[ClubWIKI:Trail Use| Trail Use/Features]]
Line 65: Line 85:
|-
|-
! Hiking Time
! Hiking Time
| [[Hike Time::{{{Hike Time}}} Hours]]
| [[Hike Time::{{{Hike Time}}}]]
|-
|-
! Distance, round-trip
{{#if: {{{Distance|}}}|! Distance, round-trip}}
| [[Trail distance round trip::{{{Distance}}} Miles]]
{{#if: {{{Distance|}}}|{{!}} [[Trail distance round trip::{{{Distance|}}}]]}}
|-
|-
! Elevation Gain
{{#if: {{{Trail Distance|}}}|! Distance:<br>round-trip/trail only}}
| [[Elevation Gain::{{{Elevation Gain}}} Feet]]
{{#if: {{{Trail Distance|}}}|{{!}} [[Trail distance round trip::{{{Round Trip Distance|}}}]] / [[Trail Distance::{{{Trail Distance}}}]]}}
|-
|-
! High Point
{{#if: {{{Trail Type|}}}|! Trail Type}}
| [[Trail High Point::{{{High Point}}} Feet]]
{{#if: {{{Trail Type|}}}|{{!}} [[Trail Type::{{{Trail Type}}}]]}}
|-
|-
! Latitude
! Climb/Descent Elevation
| {{#lat_deg2dms: {{{Latitude}}}}}
| [[Elevation Gain::{{{Elevation Gain}}}]] / [[Elevation Loss::{{{Elevation Loss}}}]]
|-
|-
! Longitude
! {{#if: {{{Low Point|}}}| Low /&nbsp;}}{{#if: {{{Elevation Change|}}}|Diff /&nbsp;}}High Point
| {{#long_deg2dms: {{{Longitude}}}}}
| {{#if: {{{Low Point|}}}| [[Trail Low Point::{{{Low Point}}}]] /&nbsp;}}{{#if: {{{Elevation Change|}}}| [[Trail Elevation Difference::{{{Elevation Change}}}]] /&nbsp;}}[[Trail High Point::{{{High Point}}}]]
|-
|-
! Nearest Medical
{{#if: {{{Parking coords|}}}|! Parking}}
| {{{Medical}}}
{{#if: {{{Parking coords|}}}|{{!}} [[Parking location::{{{Parking coords|}}}]]}}
|-
{{#if: {{{Trailhead coords|}}}|! Trailhead}}
{{#if: {{{Trailhead coords|}}}|{{!}} [[Trailhead location::{{{Trailhead coords|}}}]]}}
|-
{{#if: {{{Medical|}}}|! Nearest Medical}}
{{#if: {{{Medical|}}}|{{!}} {{{Medical}}}}}
|-
|-
! Trip Reports
! Trip Reports
Line 94: Line 120:
|-
|-
| colspan=2 id="gmap" border=0 height="180" valign="top" style="margin-top: 20px;" |  
| colspan=2 id="gmap" border=0 height="180" valign="top" style="margin-top: 20px;" |  
{{#display_map:{{{Latitude}}}, {{{Longitude}}}
{{#display_map:{{#if: {{{Parking coords|}}}|{{{Parking coords|}}}|{{{Latitude}}},{{{Longitude}}}}}
|zoom=8
|zoom=8
|width=270px
|width=270px
|height=180px
|height=180px
|type=roadmap
|type=roadmap
|controls=type
|controls=zoom
}}
}}
|
|
|-
|-
! colspan="2" id="maplink" | [http://maps.google.com/maps?q={{{Latitude}}},{{{Longitude}}} Show Large Map]
! colspan="2" id="maplink" | [http://maps.google.com/maps?q={{#if: {{{Parking coords|}}}|{{{Parking coords|}}}|{{{Latitude}}},{{{Longitude}}}}} Show Large Map]<!--


<!-- close inner table -->
close inner table -->
|}
|}
<!-- close outer table -->
<!-- close outer table -->
<!-- |} -->
|}
</div>
</div></div>[[Category:Trail]]</includeonly>
</div></includeonly>

Latest revision as of 10:01, 20 November 2018

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