Wikipedia:WikiProject Australian Roads/Infobox testcases
This is the project sandbox of WikiProject Australian Roads. A project sandbox is a subpage of the project's project page. It serves as a testing spot and page development space for the project and is not an encyclopedia article. For a sandbox of your own, create a project subpage. Other sandboxes: Main sandbox | Tutorial sandbox 1, 2, 3, 4, 5 | Template sandbox |
Infobox conversion sandbox tests
[edit]- 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
[edit]
|
|
Testcase 3: Great Eastern Highway
[edit]
|
|
Testcase 4: Hume Highway (post-alphanumeric)
[edit]This highway's infobox has already been updated on 1 June 2013.
|
|
Testcase 5: Great Northern Highway
[edit]Testcase 6: Albany Highway
[edit]
|
Alternate version: exclude maintained by info (leave explanation for article), alternate use of Major junctions:
|
Testcase 7: Olympic Highway
[edit]
|
|
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
[edit]
|
|
Testcase 9: Calder Highway
[edit]
|
|
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
[edit]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
[edit]Preconverted to WP:ACCESS and MOS:BOLD requirements
|
|
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
[edit]Parameters to adjust settings:
[edit]- 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
[edit]- 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
[edit]- 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
[edit]- 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
[edit]- 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
[edit]- 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
[edit]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
- ^ "Alpha-numeric route numbers". Roads and Maritime Services. New South Wales Government. Retrieved 4 October 2012.
- ^ Alpha-Numeric Route Numbering for NSW. It is here!, Ozroads: the Australian Roads Website. Retrieved on 16 August 2008.
- ^ Alpha Numeric route numbers - A new Road Numbering System, NSW Transport Roads & Maritime Services. Retrieved on 6 October 2012.
- ^ Alpha-Numeric Route Numbering for NSW. It is here!, Ozroads: the Australian Roads Website. Retrieved on 29 December 2007.
- ^ Alpha Numeric route numbers - A new Road Numbering System, NSW Transport Roads & Maritime Services. Retrieved on 6 October 2012.
- ^ Alpha-Numeric Route Numbering for NSW. It is here!, Ozroads: the Australian Roads Website. Retrieved on 29 December 2007.
- ^ Alpha Numeric route numbers - A new Road Numbering System, NSW Transport Roads & Maritime Services. Retrieved on 6 October 2012.
- ^ Alpha Numeric route numbers - A new Road Numbering System, Roads and Maritime Services. Retrieved 11 May 2013.