Wikipedia:WikiProject Australian Roads/Infobox testcases

Infobox conversion sandbox tests

Please note: The older the box, the more likely it may not reflect current proposal ideas, especially as discussion progresses.
Older testcases which have had their use should be moved to the archive.

Use the following code to create a section comparing {{Infobox Australian road}} and {{Infobox road}} for a road:

==Testcase #: [[Road name]]=={{Multicol}}{{Infobox Australian road...}}{{Multicol-break}}{{Infobox road/sandbox...}}{{Multicol-end}}

Testcase 2: Roe Highway


Roe Highway

Map of Perth's central suburbs with Roe Highway highlighted in red
Route information
Length35 km (22 mi)
Planned length35 km (22 mi)
Untolled length35 km (22 mi)
Tolled length35 km (22 mi)
Length under
construction
35 km (22 mi)
Overall length35 km (22 mi)
Existed1980s–present
Allocation
Major junctions
Major intersections
Location
CountryAustralia
StateWestern Australia
Major suburbsMiddle Swan, Cannington, Kenwick, Midland, Perth Airport, Canning Vale, Leeming
Highway system
Highways in Western Australia


Great Eastern Highway

View east from Great Eastern Highway at The Lakes (a rural locality east of Perth)
Route information
Length595 km (370 mi)
Planned length595 km (370 mi)
Untolled length595 km (370 mi)
Tolled length595 km (370 mi)
Length under
construction
595 km (370 mi)
Overall length595 km (370 mi)
Existed1890s–present
Allocation
Tourist
routes
  • Golden Pipeline Heritage Trail (multiple locations)
  • Tourist Drive 203 (Guildford – Woodbridge)
Major junctions
Major intersections
Location
CountryAustralia
StateWestern Australia
Major settlementsPerth, Northam, Merredin, Southern Cross, Coolgardie, Kalgoorlie
Highway system
Highways in Western Australia

Testcase 4: Hume Highway (post-alphanumeric)

This highway's infobox has already been updated on 1 June 2013.


Hume Highway

Map of south-eastern Australia with Hume Highway highlighted in green
Route information
Length844 km (524 mi)
Planned length844 km (524 mi)
Untolled length844 km (524 mi)
Tolled length844 km (524 mi)
Length under
construction
844 km (524 mi)
Overall length844 km (524 mi)
Existed1817–present
Allocation
  • A22
  • (City - Liverpool)
  • A28
  • (Liverpool - Prestons)
  • M31 (Hume Motorway)
  • (Prestons – Berrima)
  • M31
  • (Berrima – NSW/Vic. Border)
  • M31 (Hume Freeway)
  • (NSW/Vic. Border – Campbellfield)
Major junctions
Northeast end
Major intersections
Southwest end
Location
CountryAustralia
StatesNew South Wales, Victoria
Major settlementsSydney, Goulburn, Yass, Tarcutta, Albury, Wodonga, Wangaratta, Benalla, Seymour, Craigieburn, Melbourne
Highway system


Great Northern Highway

Great Northern Highway near Paynes Find
Route information
MaintenanceMain Roads Western Australia
Length3,204 km (1,991 mi)
Planned length3,204 km (1,991 mi)
Untolled length3,204 km (1,991 mi)
Tolled length3,204 km (1,991 mi)
Length under
construction
3,204 km (1,991 mi)
Overall length3,204 km (1,991 mi)
Allocation
Major junctions
Major intersections
Location
CountryAustralia
StateWestern Australia
Major settlementsMidland (Perth), Bullsbrook, Muchea, Bindoon, New Norcia, Pithara, Dalwallinu, Wubin, Paynes Find, Mount Magnet, Cue, Meekatharra, Newman, Hamersley Range National Park, South Hedland, Broome, Derby, Fitzroy Crossing, Halls Creek, Wyndham
Highway system
Highways in Western Australia

Testcase 6: Albany Highway


Albany Highway

Albany Highway at Cannington
Route information
Maintenance
Length410 km (250 mi)
Planned length410 km (250 mi)
Untolled length410 km (250 mi)
Tolled length410 km (250 mi)
Length under
construction
410 km (250 mi)
Overall length410 km (250 mi)
Allocation State Route 30
Major junctions
Major intersections
Location
CountryAustralia
StateWestern Australia
Major settlementsPerth, Armadale, North Bannister, Williams, Arthur River, Kojonup, Cranbrook, Mount Barker, Narrikup, Orana, Albany
Highway system
Highways in Western Australia

Alternate version: exclude maintained by info (leave explanation for article), alternate use of Major junctions:

Albany Highway

Albany Highway at Cannington
Route information
Length410 km (250 mi)
Planned length410 km (250 mi)
Untolled length410 km (250 mi)
Tolled length410 km (250 mi)
Length under
construction
410 km (250 mi)
Overall length410 km (250 mi)
Allocation State Route 30
Major junctions
Major intersections
Location
CountryAustralia
StateWestern Australia
Major settlementsPerth, Armadale, North Bannister, Williams, Arthur River, Kojonup, Cranbrook, Mount Barker, Narrikup, Orana, Albany
Highway system
Highways in Western Australia

Testcase 7: Olympic Highway


Olympic Highway

Route information
Length318 km (198 mi)
Planned length318 km (198 mi)
Untolled length318 km (198 mi)
Tolled length318 km (198 mi)
Length under
construction
318 km (198 mi)
Overall length318 km (198 mi)
Allocation
  • Olympic Highway (National Route 41)
  • (Cowra to Wagga Wagga)
  • Sturt Highway / Olympic Highway (National Highway 20 / National Route 41)
  • (Wagga Wagga)
  • Olympic Highway (National Route 41)
  • (Wagga Wagga to Albury)

  • For more details see this section of the article
Major junctions
Major intersections
Location
CountryAustralia
StateNew South Wales
Major settlementsCowra, Young, Cootamundra, Wagga Wagga, Culcairn, Albury
Highway system
Highways in New South Wales

Alternatively:{{plainlist|

  • Olympic Highway (National Route 41)
  • (All sections)
  • Sturt Highway / Olympic Highway (National Highway 28 / National Route 41)
  • (within Wagga Wagga)

...or you may have a further alternative suggestion to propose. (This affects the original infobox too). It may even be decided to be best left up to editors to decide which scheme works best for their particular road.

Note: As can be seen by the original infobox a direct conversion would have been inadequate (it doesn't mention the duplex at all). Of course on most infoboxes the conversion will be direct, it will be up to WP:AURD, WP:AUS, and other Australian editors to fix up any issues post-conversion

Testcase 8: Newell Highway


Newell Highway

Map of south-eastern Australia with Newell Highway highlighted in green
Route information
Length1,062 km (660 mi)
Planned length1,062 km (660 mi)
Untolled length1,062 km (660 mi)
Tolled length1,062 km (660 mi)
Length under
construction
1,062 km (660 mi)
Overall length1,062 km (660 mi)
Allocation
  • National Highway 39 (all sections)
  • National Route 37 (Narrabri - Narrabri West
  • National Route 34 (Coonabarabran - Gilgandra)
  • National Route 24 (Marsden - West Wyalong)
  • State Route 94 (Mirrool - Ardlethan)
  • Proposed:

A39 to replace National Highway 39[6][7]

Major junctions
Major intersections
Location
CountryAustralia
StateNew South Wales
Major settlementsMoree, Narrabri, Coonabarabran, Gilgandra, Dubbo, West Wyalong, Narrandera, Finley
Highway system
Highways in New South Wales

Testcase 9: Calder Highway

Calder Highway
Route information
Length448 km (278 mi)
Allocation
Major junctions
Major intersections
Location
CountryAustralia
StateVictoria
Major settlementsMildura, Ouyen, Charlton, Bendigo
Highway system
Highways in Victoria

Notes:

  • Map appears to be incorrect
  • This is essentially a direct conversion with minimal checking of existing facts
  • Other ways of adding the allocation could also be used

Testcase 10: Alpine Way

This article was updated by me when I added snow restriction information to the page, I have also made corrections and added a pic from Flickr.


Alpine Way
Alpine Way, near Thredbo
Route information
Length126 km (78 mi)
Existed1950s–present
RestrictionsCarrying snow chains may be required at certain times of the year.
Major junctions
Major intersections
Location
CountryAustralia
StateNew South Wales
Major settlementsJindabyne, Thredbo, [[Tom Groggin]], Khancoban
Highway system
Highways in New South Wales

Preconverted to WP:ACCESS and MOS:BOLD requirements


Sydney–Newcastle Freeway

Route information
Length127 km (79 mi)
Planned length127 km (79 mi)
Untolled length127 km (79 mi)
Tolled length127 km (79 mi)
Length under
construction
127 km (79 mi)
Overall length127 km (79 mi)
Existed1963–present
Allocation
  • National Highway 1
  • (Entire Length)
  • Future: M1
  • Former: F3
Major junctions
Major intersections
  • Pacific Highway (Metroad 1 / State Route 83)
  • Pacific Highway (State Route 83)
  • Doyalson Link Road (State Route 111)
  • Mandalong Road (State Route 133)
  • Freemans Drive (State Route 82)
  • George Booth Drive (State Route 128)
Location
CountryAustralia
StateNew South Wales
Major suburbsMinmi, Awaba, Mandalong, Warnervale, Tuggerah, Ourimbah, Somersby, Peats Ridge, Mount White, Berowra
Highway system
Highways in New South Wales


Documentation

Standard usage:

{{Infobox road|country=AUS|state=|type=|name=|map=|map_notes=|map_alt=|length_km=|established=|allocation=|direction_a=|end_a=|junction=|direction_b=|end_b=|locations=}}

Parameters

Parameters to adjust settings:

  • country: Must be set as |country=AUS so that Australian settings for the infobox are used
  • state: The two- or three-letter abbreviation of the state/territory - only use if the road is within a single state. This parameter allows Highway System section at the bottom of the infobox to include state-specific links.
  • type: the type of road the article is about. This parameter changes the infobox colour scheme used for headings, and the label used for locations. The following are options are available:
type=DescriptionColoursLocations label
freewayFreeway-standard (controlled access) roadText: Black
Background: #D2E2F9
Major suburbs
city highwayHighways within city/suburban areasText: Black
Background: #E9F9D2
Major suburbs
highwayHighways outside of city/suburban areasText: Black
Background: #E9F9D2
Major settlements
roadMajor roads within city/suburban areasText: Black
Background: #FFFFE0
Major suburbs
rural roadMajor roads outside of city/suburban areasText: Black
Background: #FFFFE0
Major settlements
streetMinor roads and streets, generally within a single suburbText: Black
Background: #F9E2D2
Suburb
trackOutback tracks. These generally have restrictions (e.g. fuel) and/or require permits.Text: Black
Background: #F9E2D2
Primary destinations
defaulttype either omitted or not specified correctlyText: #FFE133
Background: #3A7119
Primary destinations
  • header_type: Used to override the above colour schemes for certain types of roads. The allowed values are:
header_type=DescriptionColours
  • under construction
  • const
  • uc
Construction has begun on the road and no sections have been opened to traffic.
Do not use for roads that are open to traffic in some capacity
Text: Black
Background: #FC6
  • former
  • decommissioned
Decommissioned or former highwaysText: Black
Background: #AAA

Top section

  • name: The name of the road. Appears at the top of the infobox.
  • alternate_name: Any alternate or additional names. Will appear below the text specified in the name parameter
  • map: or photo: image name of a map for or photo of the road, without the File: 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: [[File:map_name|290x172px|alt=alt text]].
    • map_alt: or photo_alt: alt text for the map or photo, for visually impaired readers. See WP:ALT. This parameter should be specified if map or photo is specified.
    • map_notes: or photo_notes: an optional parameter with text to display along with the map or photo.
    • 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=[[File:map_name|...]]
    • For best results, a map's image width should be 290px.

Route information

  • maint: the agency that maintains the road. Enter a wikilink if the agency has a Wikipedia article.
  • length_km: length of the route in kilometres. The length in miles is automatically calculated and rounded to the same level of precision as the stated value.
    • length_round: number of decimal places to be used in the conversion. If the length should be converted to a greater precision than the given value, 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.
  • established: this is the date the route was commissioned or assigned to its current alignment. (Alternate parameter: formed)
  • decommissioned: date the route was decommissioned (Alternate parameter: deleted)
  • history: a brief summary of the route's history. Typically used in place of the above two parameters.
  • allocation: a list of road routes allocated to the roadway. Future of former allocations can be noted at the end of the list or within the article, depending on complexity and whether there have been multiple previous changes.
  • tourist: a list of the tourist routes that follow the route
  • restrictions: a brief mention of any restrictions on the road. Examples include regular seasonal closures or permit requirements needed by motorists.

Major junctions

  • beltway_city, orbital, loop, or tloop: for beltways, orbitals, loop roads, or tourist loops only. This is the city that the beltway/orbital/loop encircles. The output differs between the three to accommodate variation in English for different geographic areas. In the case of tourist loops, using |tloop=none will omit a location around which the roadway would loop.
  • direction_a: the direction of the road's starting point, from the route. Will display as <direction_a> end: in the infobox.
  • terminus_a or end_a: this is where the route begins
  • junction: a list of major junctions. Use {{Plainlist}} to generate the list.
  • direction_b: The opposite of "direction_a"
  • terminus_b or end_b: where the route ends

This template is capable of creating separate "major junction" sections for individual segments of a route that is split into two to four segments. The parameters associated with this feature are:

  • section#, where # is the number of the segment (1 being the first entered into the infobox, 2 being the next, and so on). By default, the text "Major intersections" is replaced in the header with "Section #"; this parameter allows for a custom header to be used.
  • length_mi# or length_km#: "length_mi" or "length_km" for the # segment
    • length_round#: "length_round" for the # segment
    • length_ref#: "length_ref" for the # segment
    • length_notes#: "length_notes" for the # segment
  • direction_a: same as described above; however, in this usage it will provide a default direction for the beginning point of all of the segments. If the direction of one endpoint is different, use direction_a# for that endpoint.
  • terminus_a# or end_a#: "terminus_a"/"end_a" for the # segment
  • junction#: "junction" for the # segment
  • direction_b: same as described above; however, in this usage it will provide a default direction for the ending point of all of the segments. If the direction of one endpoint is different, use direction_b# for that endpoint.
  • terminus_b# or end_b#: for the # segment

Locations

  • states: used to list the states and/or territories that a road travels through. Do not use if the road is within a single state/territory. Full wikimarkup is required.
  • locations: used to list the locations that the route serves; label varies based on route type (see above)
  • lga: optional parameter used to list the Local Government Areas that the route serves

Use of route marker icons

  • Route marker icons in the infobox should be 20 pixels high (size: x20px). The {{AUshield}} template defaults to a height of 20 pixels for all shields (though this can be adjusted using the |size= parameter).
  • Icons should have a textual explanation for accessibility reasons, and to assist international readers decode their meaning. For the junction list, this is achieved by including a small text note in parentheses at the end of the line. The following notes should be used:
Example Highway (National Highway 1)
Example Highway (National Route 1)
Example Highway (State Route 2)
Example Highway (Tourist Drive 2)
Example Highway (M1)
Place the note between <small> and </small> to make it appear in small text, eg:
{{AUshield|N|1}} Example Highway <small>(National Highway 1)</small>
  • A road's associated route icons should not be attached as marker images to the infobox, but instead be listed in the "Allocation" section. Again, use a height of 20 pixels and a textual explanation:
National Highway 1
If the allocation is only for part of the road, use a small text note in parentheses to indicate the endpoints:
National Highway 1 (Middle SwanMuchea)
The route text may be wikilinked to an appropriate section of a list article:
State Route 2
The same basic rules apply with tourist route allocations using the |tourist= parameter.


  • The marker_image parameter should normally not be used. However, if the road in question has a logo, this parameter can be used to display such an image under the road name. The parameter requires full wikimarkup.

Use of lists

Some parameters (such as |junction=) require information to be entered in a list form. To do this without bullets showing up, put the list within the {{Plainlist}} template.Example:

{{Plainlist|* First item* Second item* Third item}}

results in

  • First item
  • Second item
  • Third item

instead of

  • First item
  • Second item
  • Third item