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 | |
Length | 35 km (22 mi) |
Planned length | 35 km (22 mi) |
Untolled length | 35 km (22 mi) |
Tolled length | 35 km (22 mi) |
Length under construction | 35 km (22 mi) |
Overall length | 35 km (22 mi) |
Existed | 1980s–present |
Allocation |
|
Major junctions | |
| |
Location | |
Country | Australia |
State | Western Australia |
Major suburbs | Middle Swan, Cannington, Kenwick, Midland, Perth Airport, Canning Vale, Leeming |
Highway system | |
Highways in Western Australia |
Testcase 3: Great Eastern Highway
Great Eastern Highway | |
---|---|
![]() View east from Great Eastern Highway at The Lakes (a rural locality east of Perth) | |
Route information | |
Length | 595 km (370 mi) |
Planned length | 595 km (370 mi) |
Untolled length | 595 km (370 mi) |
Tolled length | 595 km (370 mi) |
Length under construction | 595 km (370 mi) |
Overall length | 595 km (370 mi) |
Existed | 1890s–present |
Allocation |
|
Tourist routes |
|
Major junctions | |
| |
Location | |
Country | Australia |
State | Western Australia |
Major settlements | Perth, 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 | |
Length | 844 km (524 mi) |
Planned length | 844 km (524 mi) |
Untolled length | 844 km (524 mi) |
Tolled length | 844 km (524 mi) |
Length under construction | 844 km (524 mi) |
Overall length | 844 km (524 mi) |
Existed | 1817–present |
Allocation |
|
Major junctions | |
Northeast end |
|
| |
Southwest end | |
Location | |
Country | Australia |
States | New South Wales, Victoria |
Major settlements | Sydney, Goulburn, Yass, Tarcutta, Albury, Wodonga, Wangaratta, Benalla, Seymour, Craigieburn, Melbourne |
Highway system | |
Testcase 5: Great Northern Highway
Great Northern Highway | |
---|---|
![]() Great Northern Highway near Paynes Find | |
Route information | |
Maintenance | Main Roads Western Australia |
Length | 3,204 km (1,991 mi) |
Planned length | 3,204 km (1,991 mi) |
Untolled length | 3,204 km (1,991 mi) |
Tolled length | 3,204 km (1,991 mi) |
Length under construction | 3,204 km (1,991 mi) |
Overall length | 3,204 km (1,991 mi) |
Allocation |
|
Major junctions | |
| |
Location | |
Country | Australia |
State | Western Australia |
Major settlements | Midland (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 |
|
Length | 410 km (250 mi) |
Planned length | 410 km (250 mi) |
Untolled length | 410 km (250 mi) |
Tolled length | 410 km (250 mi) |
Length under construction | 410 km (250 mi) |
Overall length | 410 km (250 mi) |
Allocation | ![]() |
Major junctions | |
| |
Location | |
Country | Australia |
State | Western Australia |
Major settlements | Perth, 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 | |
Length | 410 km (250 mi) |
Planned length | 410 km (250 mi) |
Untolled length | 410 km (250 mi) |
Tolled length | 410 km (250 mi) |
Length under construction | 410 km (250 mi) |
Overall length | 410 km (250 mi) |
Allocation | ![]() |
Major junctions | |
| |
Location | |
Country | Australia |
State | Western Australia |
Major settlements | Perth, 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 | |
Length | 318 km (198 mi) |
Planned length | 318 km (198 mi) |
Untolled length | 318 km (198 mi) |
Tolled length | 318 km (198 mi) |
Length under construction | 318 km (198 mi) |
Overall length | 318 km (198 mi) |
Allocation |
|
Major junctions | |
| |
Location | |
Country | Australia |
State | New South Wales |
Major settlements | Cowra, 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 | |
Length | 1,062 km (660 mi) |
Planned length | 1,062 km (660 mi) |
Untolled length | 1,062 km (660 mi) |
Tolled length | 1,062 km (660 mi) |
Length under construction | 1,062 km (660 mi) |
Overall length | 1,062 km (660 mi) |
Allocation | |
Major junctions | |
| |
Location | |
Country | Australia |
State | New South Wales |
Major settlements | Moree, Narrabri, Coonabarabran, Gilgandra, Dubbo, West Wyalong, Narrandera, Finley |
Highway system | |
Highways in New South Wales |
Testcase 9: Calder Highway
Calder Highway | |
---|---|
![]() | |
Route information | |
Length | 448 km (278 mi) |
Allocation |
|
Major junctions | |
| |
Location | |
Country | Australia |
State | Victoria |
Major settlements | Mildura, 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 | |
Length | 126 km (78 mi) |
Existed | 1950s–present |
Restrictions | Carrying snow chains may be required at certain times of the year. |
Major junctions | |
| |
Location | |
Country | Australia |
State | New South Wales |
Major settlements | Jindabyne, Thredbo, [[Tom Groggin]], Khancoban |
Highway system | |
Highways in New South Wales |
Testcase 11: Sydney-Newcastle Freeway
Preconverted to WP:ACCESS and MOS:BOLD requirements
Sydney–Newcastle Freeway | |
---|---|
Route information | |
Length | 127 km (79 mi) |
Planned length | 127 km (79 mi) |
Untolled length | 127 km (79 mi) |
Tolled length | 127 km (79 mi) |
Length under construction | 127 km (79 mi) |
Overall length | 127 km (79 mi) |
Existed | 1963–present |
Allocation |
|
Major junctions | |
| |
Location | |
Country | Australia |
State | New South Wales |
Major suburbs | Minmi, 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= | Description | Colours | Locations label |
---|---|---|---|
freeway | Freeway-standard (controlled access) road | Text: Black Background: #D2E2F9 | Major suburbs |
city highway | Highways within city/suburban areas | Text: Black Background: #E9F9D2 | Major suburbs |
highway | Highways outside of city/suburban areas | Text: Black Background: #E9F9D2 | Major settlements |
road | Major roads within city/suburban areas | Text: Black Background: #FFFFE0 | Major suburbs |
rural road | Major roads outside of city/suburban areas | Text: Black Background: #FFFFE0 | Major settlements |
street | Minor roads and streets, generally within a single suburb | Text: Black Background: #F9E2D2 | Suburb |
track | Outback tracks. These generally have restrictions (e.g. fuel) and/or require permits. | Text: Black Background: #F9E2D2 | Primary destinations |
default | type either omitted or not specified correctly | Text: #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= | Description | Colours |
---|---|---|
| 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 |
| Decommissioned or former highways | Text: 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 Swan – Muchea)
- The route text may be wikilinked to an appropriate section of a list article:
- 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