Template:Infobox road small/doc

From The Democratikan Wiki
Revision as of 19:46, 26 December 2023 by wikipedia>Tom.Reding (→‎top: {{High-use}})
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Infobox road small is a compact version of {{infobox road}} that is intended to be used where the full infobox would be a bit excessive or unwieldy, such as in a subsection of an article.

Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.

Usage

The infobox accepts four recommended parameters and several optional parameters.

Recommended
  • One of the following:
    • country: country that the route is in
    • province: province that the route is in (for Canadian provinces only)
    • state: state that the route is in (for U.S. and Mexican states only)
  • type: type of the route, syntax is identical to that used by {{Jct}}
  • route: the number of the route
    • For Australia only (i.e. |country=AUS), the text entered here is shown in the lower section of the infobox, labelled as "Route number:"
  • location: location of the route, either a single location or the locations of the route's termini separated by an en dash. Pages with transclusions that do not specify a location are added to Category:Infobox road small transclusions without location.
Optional
  • name: overrides the highway name displayed by default; use only if necessary
  • marker_image: overrides the route marker displayed by default; use only if necessary. Use |marker_image=none if the route does not have a route marker.
  • county: county that the route is in (necessary only for county routes)
  • length_mi: length of the route (use only if length is in miles)
  • length_km: length of the route (use only if length is in kilometers)
  • length_ref: reference for the length
  • formed: year that the designation was assigned (Alternate parameter: established)
    • historic: set as yes for historic routes never formally decommissioned
  • deleted: year that the designation was removed. This parameter can be used without |formed= for designations that existed for a year or less. (Alternate parameter: decommissioned)
  • yr_ref: unified reference for formed/deleted years that displays at the end of the line. You can optionally add individual refs in the "formed" and "deleted" fields.
  • history: for concise notes when the history is more complicated than simple beginning and ending dates
  • header_type: the infobox will use the color coding set up in {{Infobox road}} for a country/state/province for each type of roadway. For other cases, the infobox has a small set of alternate header shades for specific sets of articles. They are:
    • under construction: for roads where construction has begun on the highway and no sections have been opened to traffic. Do not use for roads that are open to traffic in some capacity. (Alternate values: const, uc)
    • historic: for roads of a historic nature, such as auto trails or highways posted with brown, historical or scenic signage. (Alternate values: historical, hist, scenic)
    • former: for highway designations no longer maintained by the corresponding government authority. (Alternate value: decommissioned)
    • freeway: Canada only. For roads that are freeways for their entire length.
    • minor: UK only. For A roads signed with black-on-white markers.
  • tourist: a list of the tourist routes that follow the route; currently only set up for use in Australia, New Zealand, Canada, and the US.

Blank syntax

<syntaxhighlight lang="wikitext">

</syntaxhighlight>

Examples

Interstate 5 Business marker

Interstate 5 Business

LocationNational City, California
Existed1960s–1990s

<syntaxhighlight lang="wikitext" width=75%>

Interstate 5 Business marker

Interstate 5 Business

LocationNational City, California
Existed1960s–1990s

</syntaxhighlight>

LocationJersey City, New Jersey
Length4.11 mi<ref name=SLD2>"U.S. Route 1-9 Truck straight line diagram" (PDF). New Jersey Department of Transportation. Retrieved 2007-04-12.</ref> (6.61 km)

<syntaxhighlight lang="wikitext" width=75%>

LocationJersey City, New Jersey
Length4.11 mi<ref name=SLD2>"U.S. Route 1-9 Truck straight line diagram" (PDF). New Jersey Department of Transportation. Retrieved 2007-04-12.</ref> (6.61 km)

</syntaxhighlight>

Great Eastern Highway
(Wheatbelt region)

LocationWundowieBoorabbin
Length376.59 km<ref name="ISA">"Wheatbelt Network" (PDF). Integrated Service Arrangement. Main Roads Western Australia. 28 February 2011. Archived from the original on 3 August 2013. Retrieved 20 December 2013.</ref> (234.00 mi)
Route numberFile:Australian national highway 94.svg National Highway 94

<syntaxhighlight lang="wikitext" width=75%>

Great Eastern Highway
(Wheatbelt region)

LocationWundowieBoorabbin
Length376.59 km<ref name="ISA">"Wheatbelt Network" (PDF). Integrated Service Arrangement. Main Roads Western Australia. 28 February 2011. Archived from the original on 3 August 2013. Retrieved 20 December 2013.</ref> (234.00 mi)
Route numberFile:Australian national highway 94.svg National Highway 94

</syntaxhighlight>

See also

  • {{infobox road}}, a fully functional infobox intended to be used as an article's main infobox

References

<references group="" responsive="1"></references>