Jump to content

Template:Infobox road/doc

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Emerson7 (talk | contribs) at 05:27, 21 January 2010 (tweak formatting and layout for clarity). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.


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. Note that this is a complete list of every variable that can be used with Infobox road and that many are unnecessary in most cases. Variables that are empty can be omitted.

{{Infobox road
| marker_image     =
| state            =
| highway_name     =
| name_notes       =
| type             =
| route            =
| alternate_name   =
| maint            =
| section          =
| map              =
| map_alt          =
| map_notes        =
| map_custom       =
| length_mi        =
| length_round     =
| length_ref       =
| length_notes     =
| established      =
| decommissioned   =
| direction_a      =
| terminus_a       =
| beltway_city     =
| junction         =
| direction_b      =
| terminus_b       =
| counties         =
| rural_municipalities =
| cities           =
| system           =
| spur_type        =
| spur_of          =
| previous_type    =
| previous_route   =
| next_type        =
| next_route       =
| browse           =
}}

Parameter breakdown

Political entities

Three parameters exist for supplying the political entity that the road is located in. Only one may be used on a given article, preferably the most applicable of the three.

Parameter What it takes Suggested usage
state The two-letter abbreviation of the state that the article route is located in U.S. roads
province The two-letter abbreviation of the province that the article route is located in Canadian roads
country Full name of the country that the article route is located in International roads

Shields and highway names

If no political entity is specified, two parameters may be used to add a shield and the highway name. If a political entity is specified, there is no need to use these parameters except to overwrite the text generated by the political entity, "type" and "route".

  • marker_image: shield image to be displayed
  • highway_name: road name to be displayed, usually the number of the road (example: "New York State Route 5").

Length

Multiple scenarios for lengths have been detailed below.

  • If neither length_mi nor length_km exists, no length is displayed.
  • If both length_mi and length_km are defined, use length_first to specify which one appears first. Accepted values are "mi" and "km".
  • If only one of length_mi or length_km is defined, that one appears first. The other is calculated and rounded to length_round (default 0) places. If the length is to a greater precision than the nearest unit, adjust length_round to match but be sure to avoid false precision.
  • length_ref, if defined, appears after the first length. Use a citation for the length or {{fact}} here. Be sure that the first length is the one for which you have a reference.
  • length_notes, if defined, appears as a note below the length. This can be used to show former length, or future length, etc.

General content

  • name_notes: foot notes that will be displayed in small text underneath the highway name
  • type: usually the two-letter state abbreviation for state roads; see the state WikiProject for more details
  • route: This is the number of the route the article is about (used only with a political entity)
  • 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)
  • maint: The agency that maintains the highway
  • section The section of code that defines this route. Only CA and WA use this, and the appropriate subpage ([[/CA law]] for example) must be set up.
  • map: image name of a map for the route, without the Image: namespace prefix, which the template will place into an image link for you. For example, map=map_name|map_alt=alt text will render as: [[Image:map_name|290x172px|alt=alt text]].
    • map_alt: alt text for the map, for visually impaired readers. See WP:ALT. This parameter should be specified if map is specified.
    • map_notes: an optional parameter with text to display along with the map.
    • map_custom: optionally set to yes if you want to override the template's default image link; then you may specify your own complete image link with: map=[[Image:map_name|...]]
    • For best results, your map image width should be 290px.
    • See the maps task force for maps.
  • established: This is the date the route was commissioned or assigned to its current alignment
  • decommissioned: date the route was decommissioned
  • direction_a: For U.S. roads, this should be either south or west to keep in accordance with the U.S. Roads project, which lists termini and junctions in progression traveling from West to East and South to North.
  • starting_terminus: This is where the route begins and, for U.S. roads, is either at the southern terminus or western terminus.
  • beltway_city: for beltways. This is the city that the beltway encircles
  • junction: a list of major junctions. Each WikiProject has different standards for major junctions, so consult the relevant WikiProject for more details.
  • direction_b: The opposite of direction_a
  • ending_terminus: where the route ends, in accordance with the guidelines set forth with starting_terminus
  • counties: a list of counties that the route enters
  • rural_municipalities: a list of rural municipalities that the route enters (specific to Manitoba and Saskatchewan)
  • cities: Used to list the cities that the route serves. Note: Per a discussion about The U.S. Roads wikiproject standards this is being phased out for roads in the United States.
  • system: the highway system that the article route is part of
  • spur_type: defines the type of route that the route is a spur of. Use for spur routes, such as a loop road, bypass, alternate route, business route, truck route, or other type of route. Example: Use WV for West Virginia Route 10 Alternate.
  • spur_of: defines what the parent route is, such as Highway 7A's parent is Highway 7, or Interstate 110's parent is Interstate 10. The usual text that would go here is the road number, such as "7" or "10" or "500".
  • previous_type: This is the type of route that proceeds the current one in the system. For U.S. roads, the value for this is: Interstate, US, or (State) for Interstates, U.S. Routes and other state roads, respectively. Each state has a different parameter for state roads, so consult the WikiProject if in doubt.
  • previous_route: The number of the route preceding this one
  • next_type: Same as previous_type but for the route following this one
  • next_route: The number of the route succeeding this one
  • browse: use to add additional browse lines

Example

Outline of a green cube viewed obliquely, edged in white, containing "N TP J" in larger letters superimposed with "TURNPIKE" in smaller letters
Route 700
Route information
Maintained by the New Jersey Turnpike Authority
Length122.40 mi[1][2] (196.98 km)
11.03 mi (17.75 km) Western Spur[3]
6.55 mi (10.54 km) Pennsylvania Extension[2]
8.17 mi (13.1 km) Newark Bay Extension[4]
Existed1951–present
Major junctions
Major intersections NJ 168 near Camden
I-95/I-276/PA Tpk in Mansfield Twp
I-195 in Robbinsville Twp
NJ 18 in East Brunswick Twp
I-287/NJ 440 in Edison Twp
GSP/US 9 in Woodbridge Twp
I-278 in Linden/Elizabeth
I-78 in Newark
NJ 495 in Secaucus
I-80 in Teaneck Twp
Location
CountryUnited States
StateNew Jersey
Highway system
Error: Invalid type: Interstate700 Error: Invalid type: Interstate
{{Infobox road
| marker_image      = [[Image:New Jersey Turnpike Shield.svg|70px|alt=Outline of a green cube viewed obliquely, edged in white, containing "N TP J" in larger letters superimposed with "TURNPIKE" in smaller letters]]
| state             = NJ
| type              = NJ
| route             = 700
| highway_name      = New Jersey Turnpike
| maint             = the New Jersey Turnpike Authority
| length_mi         = 122.40
| length_round      = 2
| length_ref        = <ref name="sld 0">{{cite web|url=http://www.state.nj.us/transportation/refdata/sldiag/00000700__-.pdf|title=Route 700 Straight Line Diagram|accessdate=2007-04-26|format=PDF|publisher=[[New Jersey Department of Transportation|NJDOT]]}}</ref><ref name="sld 1" /><!--equation is 76.78+52.17-6.55=122.4-->
| length_notes      = {{convert|11.03|mi|km|2|abbr=on|}} Western Spur<ref name="sld 2">{{cite web|url=http://www.state.nj.us/transportation/refdata/sldiag/00000095W__-.pdf|title=Route 95W Straight Line Diagram|accessdate=2007-04-26|format=PDF|publisher=[[New Jersey Department of Transportation|NJDOT]]}}</ref><br>{{convert|6.55|mi|km|2|abbr=on}} Pennsylvania Extension<ref name="sld 1">{{cite web|url=http://www.state.nj.us/transportation/refdata/sldiag/00000095__-.pdf|title=Route 95 Straight Line Diagram|accessdate=2007-04-26|format=PDF|publisher=[[New Jersey Department of Transportation|NJDOT]]}}</ref><br>{{convert|8.17|mi|km|1|abbr=on}} Newark Bay Extension<ref name="sld 3">{{cite web|url=http://www.state.nj.us/transportation/refdata/sldiag/00000078__-.pdf|title=Route 78 Straight Line Diagram|accessdate=2007-04-26|format=PDF|publisher=[[New Jersey Department of Transportation|NJDOT]]}}</ref>
| established       = 1951
| direction_a       = South
| direction_b       = North
| starting_terminus = [[Image:I-295.svg|25px|link=]][[Image:US 40.svg|20px|link=]] [[Interstate 295 (Delaware-New Jersey)|I-295]]/[[U.S. Route 40|US 40]] in [[Pennsville Township, New Jersey|Pennsville]]
| junction          = [[Image:Circle sign 168.svg|25px|link=]] [[New Jersey Route 168|NJ 168]] near [[Camden, New Jersey|Camden]]<!--to Atlantic City Expressway and I-76--><br>[[Image:I-95.svg|20px|link=]][[Image:I-276.svg|25px|link=]] [[Interstate 95 in New Jersey|I-95]]/[[Interstate 276|I-276]]/[[Pennsylvania Turnpike|PA Tpk]] in [[Mansfield Township, Burlington County, New Jersey|Mansfield Twp]]<br>[[Image:I-195.svg|25px|link=]] [[Interstate 195 (New Jersey)|I-195]] in [[Robbinsville Township, New Jersey|Robbinsville Twp]]<br>[[Image:Circle sign 18.svg|20px|link=]] [[New Jersey Route 18|NJ 18]] in [[East Brunswick Township, New Jersey|East Brunswick Twp]]<br>[[Image:I-287.svg|25px|link=]][[Image:Circle sign 440.svg|25px|link=]] [[Interstate 287|I-287]]/[[New Jersey Route 440|NJ 440]] in [[Edison, New Jersey|Edison Twp]]<br>[[Image:GSPkwy Shield.svg|20px|link=]][[Image:US 9.svg|20px|link=]] [[Garden State Parkway|GSP]]/[[U.S. Route 9 in New Jersey|US 9]] in [[Woodbridge Township, New Jersey|Woodbridge Twp]]<br>[[Image:I-278.svg|25px|link=]] [[Interstate 278|I-278]] in [[Linden, New Jersey|Linden]]/[[Elizabeth, New Jersey|Elizabeth]]<br>[[Image:I-78.svg|20px|link=]] [[Interstate 78|I-78]] in [[Newark, New Jersey|Newark]]<br>[[Image:Circle sign 495.svg|25px|link=]] [[New Jersey Route 495|NJ 495]] in [[Secaucus, New Jersey|Secaucus]]<br>[[Image:I-80.svg|20px|link=]] [[Interstate 80 in New Jersey|I-80]] in [[Teaneck, New Jersey|Teaneck Twp]]
| ending_terminus   = [[Image:I-95.svg|20px|link=]][[Image:US 1-9.svg|25px|link=]][[Image:US 46.svg|20px|link=]] [[Interstate 95 in New Jersey|I-95]]/[[U.S. Route 1/9|US 1/9]]/[[U.S. Route 46|46]] in [[Fort Lee, New Jersey|Fort Lee]]
| previous_type     = Interstate
| previous_route    = 695
| browse_route      = 700
| next_type         = Interstate
| next_route        = 895
}}

References

  1. ^ "Route 700 Straight Line Diagram" (PDF). NJDOT. Retrieved 2007-04-26.
  2. ^ a b "Route 95 Straight Line Diagram" (PDF). NJDOT. Retrieved 2007-04-26.
  3. ^ "Route 95W Straight Line Diagram" (PDF). NJDOT. Retrieved 2007-04-26.
  4. ^ "Route 78 Straight Line Diagram" (PDF). NJDOT. Retrieved 2007-04-26.