This template is in articles about specific hiking trails or cycleways. The example on the right shows a good example of how a trail template is properly used.
{{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 = }}
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 testcases for more examples.
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 [[]]
and external links []
.
Example:
{| 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}}... }}}}|}
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.
The parent infobox needs to be encapsulated in a table as in the above example.
{| style="float:right; clear:right; border:0; margin:-0.5em 0 0 0;"|-|(parent infobox)|}
{{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]}}
No description.