Template talk:Infobox road

From Wikipedia, the free encyclopedia

This infobox template has been designed for use in the various articles relating to specific highways, such as U.S. Route 6, Ohio Highway 239, the Ohio Turnpike and others.

Here is an example of how it is contemplated that the infobox would be completed:

{{Infobox_road |
  highway_name      = U.S. Highway 6 |
  marker_image      = [[Image:US6.png|100px|US 6]] |
  alternate_name    = [[Grand Army of the Republic]] Highway |
  length            = 3,205 [[Mile|miles]] (5,158 [[Kilometre|km]]) |
  direction         = West/East |
  starting_terminus = [[Bishop, California|Bishop, CA]] |
  ending_terminus   = [[Provincetown, Massachusetts|Provincetown, MA]] |
  cities            = [[Denver, Colorado|Denver]], [[Omaha, Nebraska|Omaha]], [[Des Moines, Iowa|Des Moines]], [Cleveland, Ohio|Cleveland]], [[Hartford, Connecticut|Hartford]] |
  established       = [[1926]] |
  system            = [[U.S. Highway system]] |
}}
Image:US6.png
U.S. Highway 6
Grand Army of the Republic Highway
Length: 3,205 miles (5,158 km)
Formed: 1926
Direction: West/East
From: Bishop, CA
To: Provincetown, MA
Major cities: Denver, Omaha, Des Moines, Cleveland, Hartford
System: U.S. Highway system

Highway Name: This would usually be the name of the article, such as U.S. Highway 1, Rhode Island State Highway 246, Ohio Turnpike, Lincoln Highway, etc.

Marker Image: A graphic image of the route number in its most common form, not a photograph of an actual highway sign. Preferably in a width of 100 pixels.

Alternate Name: A generally accepted nicknames or formal names given to the highway, such as "National Road," "James J. McNally Memorial Highway, " "Highway to Hell," etc.

General Direction: "West/East" or "South/North" or other designation in unusual cases such as "Southwest/Northeast" for U.S. Highway 62.

Starting Terminus: The western or southern terminus of the highway.

Ending Terminus: The eastern or northern terminus of the highway.

Major Cities: Major cities that the highway actually travels through. These will probably be very big cities for coast-to-coast U.S. highways, and they may be rather small cities for some state highways.

Established: When the highway was originally commissioned for at least a portion of the configuration that it currently has. This does not include previous commissions for the same highway number that have been decommissioned in their entirties, although this could be indicated in a parenthetical.

System: The system that this highway is a part of, such as the U.S. highways system, the Illinois state highway system, the Interstate Highway System, the Brazilian Highway System, etc.


Comments and suggestions would be greatly appreciated.

Contents

[edit] Comments

Looks pretty good. You may want to consider dropping the starting_terminus and ending_terminus fields and using directional fields instead (like "south_terminus" for displaying, well, "South Terminus" or something like that) in order to avoid the somewhat clumsy "From" and "To" construct.

Also, I'd like to see what consensus develops for using this infobox for roads that have multiple segments. --Swid 21:16, 11 August 2005 (UTC)

[edit] Usage

Please see the information on the template that I added (with noinclude tags). --Rschen7754 (talk - contribs) 04:59, 23 December 2005 (UTC)

Please stop removing the noinclude tags. The routeboxes mentioned provide a much better alternative to this one when they are provided. For New Mexico state highways (for example) this template is perfect (as well as for foreign highways). --Rschen7754 (talk - contribs) 08:03, 23 December 2005 (UTC)

[edit] Copy and paste

While it is good to see what it looks like as completed (shown above), a clean "template" of what to write for the template is needed for those copy-and-paste runthroughs. Here it is below, for quick copy-and-paste:

{{Infobox road|
 highway_name      = 
|marker_image      = 
|alternate_name    = 
|length            = 
|direction         = 
|starting_terminus = 
|ending_terminus   = 
|cities            = 
|established       = 
|system            = 
|}}

I put the pipe characters on the left so it wouldn't be necessary to type them on the right all the time. Whatever works. --Geopgeop 08:04, 11 June 2006 (UTC)

[edit] Helpme - white space

Georgia State Route 13 has a bunch of extra space, and I can't seem to remove it

It could be the space in between the "if" statements, possibly bunch them together (instead of starting each on a new line). Look at examples of how other infoboxes do consecutive "if" statements. This is a bit of a tricky question for helpme, I think village pump tech or the help desk would be better suited.--Commander Keane 01:49, 12 June 2006 (UTC)
Something like User:Commander_Keane/Sandpit works ok, although I haven't examined it much.--Commander Keane 01:57, 12 June 2006 (UTC)
I'm not sure why, but that seems to work - thanks. --SPUI (T - C) 02:15, 12 June 2006 (UTC)

[edit] New Kilometer Calculating

I'm probably missing something obvious, but when I tried to use the automatic kilometer calculation function today, it wouldn't let me round to any decimal points (as it kept rounding to a whole number). I had everything else set up correctly: only a length_mi entry was present (with a value of 3.03) and the length_ref and length_round entries were present as well. However, no matter what value I put in for length_round, it always rounded to a whole number. What am I missing here? --TMF T - C 20:55, 6 July 2006 (UTC)

I forgot to change round to length_round - try it now. --SPUI (T - C) 09:12, 8 July 2006 (UTC)

Yep, it works now. Thanks. --TMF T - C 18:41, 8 July 2006 (UTC)

[edit] Instructions

Are they up to date? I'm aware a lot of stuff got changed lately... --Rschen7754 (talk - contribs) 04:48, 4 September 2006 (UTC)

Nah, there's a lot of parameters missing out of the base example above. If I can remember to do so, I'll write some new (or updated) instructions later on. --TMF T - C 16:32, 4 September 2006 (UTC)

[edit] Disambiguation

Is it possible to disambiguate items in the type/route parameters? The Iowa Highway 1 page links to Interstate 680, but it should link to Interstate 680 (Iowa-Nebraska). Khatru2 10:15, 13 December 2006 (UTC)

Yes - you can change Template:Infobox road/IA/link Interstate to Interstate {{{num}}} (Iowa) and make the appropriate redirects. --NE2 11:04, 13 December 2006 (UTC)