Template:Infobox U.S. Route/doc

From Wikipedia, the free encyclopedia

This is a documentation subpage for Template:Infobox U.S. Route (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

[edit] Usage

This is the basic syntax you need to get a complete routebox on the article page, just place this before any other text and fill in the variables. Copy and paste the following code from the box, not the source.

{{Infobox U.S. Route
|article_route=
|alternate_name=
|map=
|length_mi=
|length_round=
|length_ref=
|yrcom=
|direction_a=
|from=
|junction=
|direction_b=
|to=
|browse=
|spur_of=
}}
U.S. Route 20A
Length: 83.59 mi[1] (134.53 km)
West end: US 20 in Hamburg, NY
Major
junctions:
US 219 in Orchard Park, NY
I-390 near Geneseo, NY
East end: NY 5/US 20/NY 64 in South Bloomfield, NY
United States Numbered Highways
< US 20 NY NY 20C >
List - Bannered - Divided - Replaced

For the above parameters here's what you should fill in:

  • article_route: This is the number of the U.S. Route the article is about (ex. 20).
  • marker_image: optional - Use to display a different shield than is automatically displayed.
  • highway_name: optional - Use to display a different name than is automatically displayed.
  • alternate_name: Use in situations where the entire route has another name (i.e. NY 590 is called the Sea Breeze Expressway for its entire length)
  • map: Name of map over at Wikimedia Commons if it exists.
  • length_mi: This is the length of the route in miles. If you specify beyond integers (i.e. add a decimal value) you will need to set the following parameter, length_round
  • length_round: If your value for length_mi is a whole number, you can omit this. Otherwise it needs to be set to the decimal precision of the length_mi parameter.
  • length_ref: To do what a good article writer should, provide your reference for the length of the route using standard <ref> method. For example: <ref name="nyr">[http://www.gribblenation.net/nyroutes/ind/020_029.htm#020au New York Routes - U.S. Route 20A]</ref>
  • length_notes: optional - For any notes regarding the length.
  • yrcom: This is the date the route was commissioned or assigned to its current alignment
  • yrdcom: This is the date the route was deleted. Only include if the route has been deleted.
  • direction_a: This should be either south or west to keep in accordance with the U.S. Roads parent project, which lists termini and junctions in progression travelling from West to East and South to North.
  • from: This is where the route begins and is either at the southern terminus or western terminus.
  • junction: See WP:USH for directions regarding this parameter.
  • direction_b: The opposite of direction_a
  • to: Where the route ends, in accordance with the guidelines set forth with starting_terminus
  • spur_of: optional - Use to indicate what route the article route is a spur of.
  • browse: For intrastate U.S. Routes only - Browse lines can be added here using the {{XX browse}} templates. See WP:USH for a full explanation regarding these templates.

Any tags that do not apply to a particular route can either be omitted or left blank.

By completing the infobox as follows, you'll get a routebox like the one to the right.

{{Infobox U.S. Route
|article_route=20A
|map=US 20A (NY) map.png
|length_mi=83.59
|length_round=2
|length_ref=<ref name="nyr">[http://www.gribblenation.net/nyroutes/ind/020_029.htm#020au 
New York Routes - US Route 20A]</ref>
|yrcom=
|direction_a=West
|from=[[Image:US 20.svg|20px]] [[U.S. Route 20|US 20]] 
in [[Hamburg (village), New York|Hamburg, NY]]
|junction=[[Image:US 219.svg|25px]] [[U.S. Route 219|US 219]]
in [[Orchard Park (village), New York|Orchard Park, NY]]<br>
[[Image:I-390.svg|25px]] [[Interstate 390 (New York)|I-390]]
near [[Geneseo (village), New York|Geneseo, NY]]
|direction_b=East
|to=[[Image:NY-5.svg|20px]][[Image:US 20.svg|20px]][[Image:NY-64.svg|20px]] 
[[New York State Route 5|NY 5]]/[[U.S. Route 20|US 20]]/[[New York State Route 64|NY 64]] 
in [[South Bloomfield, New York|South Bloomfield, NY]]
|browse={{ny browse |previous_type=US |previous_route=20 |route=[[List of State Routes in New York|NY]] |next_type=NY |next_route=20C}}
}}

This template is liable to change; please return to this page if your route should in the future look 'broken'.

If you change the template, please either fix broken routeboxes on each article or post a note on the talk page so that we know we need to fix stuff. Thanks!

Also, several parameters have been deprecated. Remove them if you see them.

For more help, please visit WP:USH or post a note on WT:USH.