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 and  for a road:

Testcase 4: Hume Highway (post-alphanumeric)
This highway's infobox has already been updated on 1 June 2013.

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

Testcase 7: Olympic Highway
Alternatively: {{plainlist|
 * {{AUshield|R|41}} Olympic Highway (National Route 41)
 * (All sections)
 * {{AUshield|N|20|R|41}} Sturt Highway / Olympic Highway (National Highway 28 / National Route 41)
 * (within {{NSWcity|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
{{Infobox road/sandbox {{AUshield|NSW|A39}} A39 to replace National Highway 39 }} }} }} {{col-end}}
 * country=AUS
 * state=NSW
 * type=highway
 * name=Newell Highway
 * map=Location Newell Hwy.svg
 * map_alt=Map
 * map_notes=Map of south-eastern Australia with Newell Highway highlighted in green
 * length_km      = 1062
 * allocation={{Plainlist|
 * {{AUshield|N|39}} National Highway 39 (all sections)
 * {{AUshield|R|37}} National Route 37 (Narrabri - Narrabri West
 * {{AUshield|R|34}} National Route 34 (Coonabarabran - Gilgandra)
 * {{AUshield|R|24}} National Route 24 (Marsden - West Wyalong)
 * {{AUshield|S|94}} State Route 94 (Mirrool - Ardlethan)
 * Proposed:
 * direction_a=North
 * end_a={{AUshield|N|A39|S|85}} Leichhardt Highway (National Highway A39 / State Route 85), Goondiwindi, Queensland: NSW/Qld Border
 * junction={{Plainlist|
 * {{AUshield|S|85}} Barwon Highway (State Route 85)
 * {{AUshield|R|42}} Cunningham Highway (National Route 42)
 * {{AUshield|R|44}} Bruxner Highway (National Route 44)
 * {{AUshield|R|46}} Carnarvon Highway (National Route 46)
 * {{AUshield|R|38}} Gwydir Highway (National Route 38)
 * {{AUshield|R|37}} Kamilaroi Highway (National Route 37)
 * {{AUshield|R|34}} Oxley Highway (National Route 34)
 * {{AUshield|R|55|S|86}} Castlereagh Highway (National Route 55 / State Route 86)
 * {{AUshield|R|34}} Oxley Highway (National Route 34)
 * {{AUshield|S|84}} Golden Highway {State Route 84)
 * {{AUshield|R|32}} Mitchell Highway (National Route 32)
 * {{AUshield|S|90}} Escort Way {State Route 90)
 * Lachlan Valley Way
 * Henry Lawson Way
 * {{AUshield|R|24}} Mid-Western Highway (National Route 24)
 * {{AUshield|S|85}} Goldfields Way {State Route 85)
 * {{AUshield|R|24}} Mid-Western Highway (National Route 24)
 * {{AUshield|S|94}} Burley Griffin Way {State Route 94)
 * Irrigation Way
 * {{AUshield|N|20}} Sturt Highway (National Highway 20)
 * {{AUshield|S|87}} Kidman Way (State Route 24)
 * {{AUshield|R|58}} Riverina Highway (National Route 24)
 * direction_b=South
 * end_b={{AUshield|N|A39}} Goulburn Valley Highway (National Highway A39), Tocumwal, New South Wales: NSW/Vic Border
 * locations=Moree, Narrabri, Coonabarabran, Gilgandra, Dubbo, West Wyalong, Narrandera, Finley

Testcase 9: Calder Highway
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.

Testcase 11: Sydney-Newcastle Freeway
Preconverted to WP:ACCESS and MOS:BOLD requirements

=Documentation= Standard usage:

Parameters to adjust settings:

 * country: Must be set as 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:
 * header_type: Used to override the above colour schemes for certain types of roads. The allowed values are:

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  namespace prefix, which the template will place into an image link for you. For example,   will render as:.
 * 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:
 * 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 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  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: ). 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  and   to make it appear in small text, eg:
 * Example Highway (National Highway 1)


 * 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:
 * 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: First item

Second item

Third item

results in

instead of