Editing
Template:Infobox trail/doc
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> {{Template other | {{Notice|Please note this documentation is also included in [[Wikipedia:WikiProject Hiking Trails]].}} {{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}} This template is | {{tl|Infobox trail}} is the primary template to be used }} in articles about specific [[hiking]] trails or [[cycleway]]s. The example on the right shows a good example of how a trail template is properly used. == Blank template == {{Parameter names example |_template=Infobox trail | embed | cellstyle | name | photo | photo_size | photo_alt | caption | title | established | began | completed | closed_date | length | length_km | length_mi | location | designation | trailheads | use | elev_gain_and_loss | elev_change | elev_change_m | elev_change_ft | highest_name | highest_m | highest_ft | highest | lowest_name | lowest_m | lowest_ft | lowest | grade | difficulty | season | months | waymark | sights | hazards | surface | ROW | maintainer | website | map | map_name | map_alt | map_size | map_caption | route | route_state }} <pre> {{Infobox trail | name = | embed = | cellstyle = | photo = | photo_size = | photo_alt = | caption = | title = | established = | began = | completed = | closed_date = | length = | location = | designation = | trailheads = | use = | elev_gain_and_loss = | elev_change = <!-- Use elev_gain_and_loss if the gain and/or loss is known. Use this field when only the change is known. --> | highest = | lowest = | grade = | difficulty = | season = | months = | waymark = | sights = | hazards = | surface = | ROW = | maintainer = | certification = | website = | map = | map_name = | map_caption = | map_size = | map_alt = | route = | route_state = }} </pre> {{clear}} == Parameter descriptions == {| class=wikitable |- !Parameter !! Description |- !name |Name of the trail |- !length_km |Length of the trail in kilometers, as a single number. Will convert to miles automatically |- !length_mi |Length of the trail in miles, as a single number. Will convert to kilometers automatically. For information on use of units see [[WP:UNITS|Manual of Style Units]]. |- !length |Length of trail, no auto-conversion. Use if you want to add more words or citation to length. |- !location |Location of the trail including park, state, county or region where appropriate and country. |- !trailheads |where trail begins and ends |- !use |always include at least hiking or cycling or ... |- !photo |Photo of the area around the trail. Specify as filename.jpg, no need for "File:". Please use a high-resolution original (at least 300 pixels wide). |- !photo_size |Width of displayed photo, in pixels. Defaults to 250. |- !photo_alt |[[WP:ALT|Alternate text]] for the displayed photo |- !designation |Any designation which the trail has received e.g. [[National Trails (United Kingdom)|UK National Trail]] or [[National Scenic Trail|U.S. National Scenic Trail]]. |- !established |Establishment date |- !elev_gain_and_loss |The elevation gain and/or loss e.g. "<nowiki>{{convert|300|m|ft|-1}}</nowiki> gain" or "<nowiki>{{convert|300|m|ft|-1}}</nowiki> gain in; <nowiki>{{convert|100|m|ft|-1}}</nowiki> gain out". Please express the gain or loss in meters or feet, not kilometers or miles. |- !elev_change |rowspan=3|The sum of the altitude climbed or descended through the trail. Auto-converts units if _ft or _m suffix is used. |- !elev_change_ft |- !elev_change_m |- !highest_m |rowspan=2|Elevation of highest point on trail, in either meters or feet (will autoconvert). For information on the use of units see [[WP:UNITS|Manual of Style Units]]. |- !highest_ft |- !highest_name |Name of highest point in trail (for use with '''highest_ft''' or '''highest_m''') |- !highest |Free field for highest point in trail, use when citations is needed |- !lowest_m |rowspan=4|Similar to '''highest_''' etc., except describing the lowest point of the trail |- !lowest_ft |- !lowest_name |- !lowest |- !grade |The grade in percent, typical with former railroad right-of-ways |- !difficulty |The difficulty of the trail for a typical healthy person based on a [[Wikipedia:Reliable sources|reliable source]] |- !season |The season(s) that the trail may be hiked, or is easily accessible |- !months |The months that the trail may be hiked, or is easily accessible |- !sights |Significant sights along the way |- !hazards |Major hazards that a hiker may encounter, as documented by a reliable source |- !surface |The trail surface: natural, gravel, ballast, asphalt, etc. |- !ROW |The current or former Right of way, e.g. railroads or railways |- !maintainer |The organisation responsible for maintaining the route |- !website |Website of the organization that maintains the trail |- !waymark |The waymark (sign or symbol) used to mark or signpost the route |- !map |Map of the trail, if an image |- !map_name |Map name. Default is "Trail map". |- !map_size |Size of map (either in px or %) |- !map_alt |Alt text for map |- !map_caption |Caption for map |- !route |Map of the trail, if a [[WP:ROUTE|route diagram template]] |- !route_state |Collapsed state of route map |} == Embed inside another infobox == The trail infobox can be embedded inside another infobox for seamless display of info. For example, a trail that is also a protected area, such as the [[Kal-Haven Trail]]. See the [[Template:Infobox trail/testcases|testcases]] for more examples. === Inserting the trail infobox inside the parent infobox === The trail infobox can only be inserted after certain field values of the parent template. Specifically, only after fields whose values are not passed to another template by the parent templates source code. In other words, the parent templates source code for the field has to output the fields' value without passing it to a template. This may require examining the parent templates source code. It is ok to insert after field values that contain internal <code>[[]]</code> and external links <code>[]</code>.<br /> Example: <pre> {| style="float:right; clear:right; border:0; margin:-0.5em 0 0 0;" |- |{{Infobox protected area | name = Kal-Haven Trail ... | governing_body = <div>[[Michigan Department of Natural Resources]]</div> {{Infobox trail | embed = yes | cellstyle = padding:0.1em 0.3em; | name = Kal-Haven Trail | length = {{convert|34.5|mi|km|1}} ... }} }} |} </pre> Note the <div> tag surrounding the governing_body wiki link. It is needed to reduce the vertical spacing between the governing_body field and the first hiking trail field, in this case, length. === Parent infobox encapsulation === The parent infobox needs to be encapsulated in a table as in the above example. <pre><nowiki> {| style="float:right; clear:right; border:0; margin:-0.5em 0 0 0;" |- |(parent infobox) |} </nowiki></pre> == Parameters == {| class="wikitable" ! style="width: 14%" | Field name || Description |- |<code>embed</code> || Set to <code>embed = yes</code> when embedding inside another Infobox. |- |<code>cellstyle</code> || Set to a class/style that matches the outer Infoboxes cell class/style so that the columns line up properly. Example for using with {{tl|Infobox protected area}}:<br /><code>cellstyle = padding:0.1em 0.3em;</code> |- |<code>title</code> || A first colored header before the main infobox, used when embedded, to show the trail name |} == Example == {{Infobox trail | name = Wonderland Trail | photo = CowlitzDivide.JPG | caption = Mt Rainier from the Cowlitz Divide along the Wonderland Trail | location = [[Mount Rainier National Park]], [[Washington (state)|Washington]], [[United States]] | length = {{convert|93|mi|km|0}}<ref name="Filley"> {{cite book | author = Filley, Bette | year = 2002 | title = Discovering the Wonders of the Wonderland Trail: Encircling Mount Rainier | publisher = Dunamis House | isbn = 1-880405-09-1 | edition = 5th }}</ref> | trailheads = [[Longmire, Washington|Longmire Lodge]] <br/> [[Mowich Lake]] <br/> Ipsut Creek Camp Ground <br/> [[Sunrise (Mount Rainier)|Sunrise parking area]] <br/> White River Camp Ground <br/> Fryingpan Creek Trailhead <br/> Box Canyon <br/> Reflection Lakes <br/> Cougar Rock | use = [[Hiking]] | elev_gain_and_loss = {{convert|22000|ft|m|-2}} gain approximately<ref name="Filley"/> | highest = Panhandle Gap {{convert|6750|ft|m|-1}}<ref name="SpringManningMRNP"> {{cite book | author = Spring, Ira | author-link = Ira Spring | author-link2 = Harvey Manning | author2=Manning, Harvey | year = 1999 | title = 50 Hikes in Mount Rainier National Park | publisher = The Mountaineers | isbn = 0-89886-572-7 }}</ref> | lowest = Ipsut Creek Campground {{convert|2320|ft|m|-1}}<ref name="Filley"/> | season = Summer to early [[Autumn|fall]] | months = Mid-July through late September | website = [http://www.nps.gov/mora/planyourvisit/the-wonderland-trail.htm nps.gov/mora/planyourvisit/the-wonderland-trail.htm] }} <pre style="overflow:auto;"> {{Infobox trail | name = Wonderland Trail | photo = CowlitzDivide.JPG | caption = Mt Rainier from the Cowlitz Divide along the Wonderland Trail | location = [[Mount Rainier National Park]], [[Washington (state)|Washington]], [[United States]] | length = {{convert|93|mi|km|0}}<ref name="Filley"> {{cite book | author = Filley, Bette | year = 2002 | title = Discovering the Wonders of the Wonderland Trail: Encircling Mount Rainier | publisher = Dunamis House | isbn = 1-880405-09-1 | edition = 5th }}</ref> | trailheads = [[Longmire, Washington|Longmire Lodge]] <br/> [[Mowich Lake]] <br/> Ipsut Creek Camp Ground <br/> [[Sunrise (Mount Rainier)|Sunrise parking area]] <br/> White River Camp Ground <br/> Fryingpan Creek Trailhead <br/> Box Canyon <br/> Reflection Lakes <br/> Cougar Rock | use = [[Hiking]] | elev_gain_and_loss = {{convert|22000|ft|m|-2}} gain approximately<ref name="Filley"/> | highest = Panhandle Gap {{convert|6750|ft|m|-1}}<ref name="SpringManningMRNP"> {{cite book | author = Spring, Ira | author-link = Ira Spring | author-link2 = Harvey Manning | author2=Manning, Harvey | year = 1999 | title = 50 Hikes in Mount Rainier National Park | publisher = The Mountaineers | isbn = 0-89886-572-7 }}</ref> | lowest = Ipsut Creek Campground {{convert|2320|ft|m|-1}}<ref name="Filley"/> | season = Summer to early [[Autumn|fall]] | months = Mid-July through late September | website = [http://www.nps.gov/mora/planyourvisit/the-wonderland-trail.htm nps.gov/mora/planyourvisit/the-wonderland-trail.htm] }} </pre> {{template reference list}} === Tracking category === * {{clc|Pages using infobox trail with unknown parameters}} <includeonly> {{#ifeq:{{{nocat|}}}|true||{{sandbox other|| <!-- Categories below this line, please; interwikis at Wikidata --> [[Category:Place infobox templates|Trail]] [[Category:Embeddable templates]] [[Category:Templates that add a tracking category]] }}}}</includeonly>
Edit summary
(Briefly describe your changes)
Please note that all contributions to A2wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
A2wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Category link with count
(
edit
)
Template:Cite book
(
edit
)
Template:Clc
(
edit
)
Template:Clear
(
edit
)
Template:Comma separated entries
(
edit
)
Template:Convert
(
edit
)
Template:Convinfobox
(
edit
)
Template:Convinfobox/2
(
edit
)
Template:Convinfobox/pri2
(
edit
)
Template:Convinfobox/prisec2
(
edit
)
Template:Documentation subpage
(
edit
)
Template:Hatnote
(
edit
)
Template:Infobox
(
edit
)
Template:Infobox trail
(
edit
)
Template:Lua
(
edit
)
Template:Main other
(
edit
)
Template:Mbox
(
edit
)
Template:Notice
(
edit
)
Template:Parameter names example
(
edit
)
Template:Str left
(
edit
)
Template:Strong
(
edit
)
Template:Template link
(
edit
)
Template:Template other
(
edit
)
Template:Template reference list
(
edit
)
Template:Terminate sentence
(
edit
)
Template:Tl
(
edit
)
Module:Arguments
(
edit
)
Module:Check for unknown parameters
(
edit
)
Module:Citation/CS1
(
edit
)
Module:Citation/CS1/COinS
(
edit
)
Module:Citation/CS1/Configuration
(
edit
)
Module:Citation/CS1/Date validation
(
edit
)
Module:Citation/CS1/Identifiers
(
edit
)
Module:Citation/CS1/Utilities
(
edit
)
Module:Citation/CS1/Whitelist
(
edit
)
Module:Citation/CS1/styles.css
(
edit
)
Module:Convert
(
edit
)
Module:Convert/data
(
edit
)
Module:Convert/text
(
edit
)
Module:Hatnote
(
edit
)
Module:Hatnote/styles.css
(
edit
)
Module:Infobox
(
edit
)
Module:Infobox/styles.css
(
edit
)
Module:InfoboxImage
(
edit
)
Module:List
(
edit
)
Module:Lua banner
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Parameter names example
(
edit
)
Module:Separated entries
(
edit
)
Module:String
(
edit
)
Module:TableTools
(
edit
)
Module:Yesno
(
edit
)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Current events
Random page
About A2wiki
interaction
Help
Community portal
Recent changes
Upload file
Tools
What links here
Related changes
Special pages
Page information