Bước tới nội dung

Bản mẫu:Infobox Australian road/doc

Bách khoa toàn thư mở Wikipedia

Cách sử dụng

[sửa mã nguồn]

{{Infobox Australian road}} is the standard infobox used in Australian articles. Australian articles using {{Infobox road}} should be converted to use this infobox as it contains additional functionality, including that of {{Infobox street}} and {{Infobox road junction}}. Code exists for implementation of {{Infobox road small}} functionality if that is deemed to be necessary. See this discussion for more information.

To use this template

[sửa mã nguồn]
  1. Copy the relevant blank template from the Blank infobox template page into the beginning of your document, remembering to put the code at the very top of the article and the first word of the article on the very next line. For road junctions, use the reduced parameter set at Template:Infobox Australian road/Blank#Road junctions.
  2. Enter values for the parameters as outlined in the table below. Fields left blank will automatically be hidden.
  3. Preview.
  4. Save the page with an appropriate edit summary.

Parameters

[sửa mã nguồn]

All parameters used by this template are optional, except for |type=. Some parameters require others to be completed in order to display data correctly. The following are available:

Parameter Description Source/notes Values
type type of road Required parameter. Sets up the template for a specific type of road or road junction. "highway", "road", "rural road", "street", "expressway", "freeway", "motorway", "parkway", "track" or "junction"
urban If the road is wholly contained within an urban area, set |urban=yes. "yes" or empty
jtype type of junction Type of road junction. See Thể loại:Road junction types for examples. wikitext (can contain links)
status
 or
uc_former
road status Status of the road for use in limited circumstances. Only use when the road is under construction, proposed or has been closed. Under construction: "uc" or "under construction"
Proposed: "proposed"
Closed: "closed"
road_name name of road Primary name used for road plain text, do not wikilink
road_name2 alternative name Alternative name(s) for road plain text, do not wikilink. When there is more than one name, separate them with a solidus ( / ). If there are more than two names, use {{Plainlist}}
city location of the road Place where the road is located. This should be as detailed as is necessary. For road junctions, this will typically be a suburb. wikitext (can contain links)
state state where the road is located Use the 2 or 3 digit state code corresponding to the location used for direction_a and end_a. It will automatically be converted to the full state name and wikilinked. If the road passes through more than one state, use state2 for the "other end" of the road. "qld", "nsw", "act", "vic", "tas", "sa", "wa", "nt" or "jbt".
state2 If the road passes through only one state, this parameter will not be used. When it is used, use the 2 or 3 digit state code corresponding to the location used for direction_b and end_b. It will automatically be converted to the full state name and wikilinked.
route_image route shield/box See here for a list of shields image filename without "File:"
route_image2-8
photo generic image of the road
photosize width of photo This is an optional parameter, generally used for images with portrait orientation. If not specified, image width defaults to 270px numeric value, should not be greater than 300
caption image caption a caption for the image wikitext (can contain links)
photo_alt alt text for the image
location location map image a map showing the location of the road. See this example. See here for a list of map images. If an image is not available, the locator map function may be used to provide the reader with an indication of the road's general location. image filename without "File:"
loc_caption location map caption a caption for the location map wikitext (can contain links)
location_alt alt text for the location map
alternative_location_map locator map Forces the locator map to use an alternative, rather than the state map, regardless of the contents of state. Name of the alternative map
force_national_map Forces the locator map to use the Australian, rather than the state map, regardless of the contents of state. "yes" or leave blank, plain text, do not link
use_lga_map Forces the locator map to use the lga map. For this to work, both state and lga must be set, with only one value in each.
relief forces the locator map to use the relief version of the map. For an example of the relief map used in an infobox, see Top End.
coordinates road coordinates For coordinates, use {{coord}} with display=inline,title. Please do not be overly precise.
If the locator map function is being used, this may be omitted, as the template generates the {{coord}} string from the locator map parameters, in which case this parameter is overridden.
Example:
{{Coord|32|45|41.3|S|151|44|38.6|E|type:landmark_region:AU-NSW|display=inline,title}}
latd_a
latm_a
lats_a
end_a latitude coordinates field degrees
minutes
seconds
longd_a
longm_a
longs_a
end_a longitude
pushpin_label_position_a end_a label position position of the map label for end_a relative to the pushpin left, right, top, bottom
default: left
latd_b
latm_b
lats_b
end_b latitude coordinates field degrees
minutes
seconds
longd_b
longm_b
longs_b
end_b longitude
pushpin_label_position_b end_b label position position of the map label for end_b relative to the pushpin left, right, top, bottom
default: left
pushpin_map_caption caption a caption for the locator map optional, wikitext (can contain links)
map_alt alt text for the locator map wikitext (can contain links)
length road length length of the road in km unformatted numeric value, will be formatted if length >= 1000.
length_rnd rounding Primarily for short roads such as Mouat Street. single integer numeric value
length_ref length reference reference for the length of the road properly formatted reference, preferably use {{cite web}}, {{cite news}} or other citation template
height road junction height height of the road junction in metres unformatted numeric value, will be formatted if length >= 1000.
height_rnd rounding single integer numeric value
height_ref height reference reference for the height of the road junction properly formatted reference, preferably use {{cite web}}, {{cite news}} or other citation template
spans number of spans number of bridge spans at the road junction number
direction_a road direction direction of one end of the road. For split roads (see further down), instead use direction_a1, direction_a2 and direction_a3 plain text, "North", "South", "East", "West" or, when the direction is not one of these, use an abbreviated version, "NE", "SSW" etc. See Cardinal direction for advice.
direction_b direction of the other end of the road. For split roads (see further down), instead use direction_b1, direction_b2 and direction_b3
end_a road end location of the end of the road. For split roads, instead use end_a1, end_a2 and end_a3 route shield, wikitext (can contain links)
end_b location of the other end of the road. For split roads, instead use end_b1, end_b2 and end_b3
est date opened date or year that the road was opened plain text
closed date closed date or year that the road was closed
gazetted gazetted dat Date the road was gazetted date
gazetted_ref gazettal reference Reference for the road's gazettal properly formatted reference, preferably use {{cite web}}, {{cite news}} or other citation template
built_by construction details Name of the company or authority that built the road wikitext (can contain links)
maintained maintenance authority Name of the authority that maintains the road
history route history brief, significant notes about the road's history that should be expanded upon in the prose, and not be a replacement for it.
roads roads at the junction List of roads at the road junction. Use {{Plainlist}}
route routes route allocation route shield, wikitext (can contain links)
former former route information Information about former route designation, etc.
tourist tourist routes a list of the tourist routes that follow the road
ring ring road The name of the locality that the ring road encircles. If this parameter is defined, it will override tloop</tloop>. When this parameter is used, direction_a and direction_b should not be used. wikitext (can contain links)
tloop tourist loop The name of the locality that the tourist rad encircles. If ring is defined, it will override this parameter. When this parameter is used, direction_a and direction_b should not be used.
split split road If the road is split into named sections, set this to a non-null value. When set, it enables parameters listed further down this list used for the individual sections. up to 3 sections may be specified "yes" or leave blank, plain text, do not link
exits route list of major exits/interchanges. For split roads, instead use exits1, exits2 and exits3

Note: Do not include a note linking to the full list further down the article. Per the Manual of Style for Infoboxes, this is not the purpose of the infobox – the table of contents provides that function.

route shield, wikitext (can contain links)
section1-3 section headings For split roads with named sections, use section1, section2 and section3 to specify the names for each of up to 3 sections. wikitext (can contain links)
region region(s) region(s) through which the road passes route shield, wikitext (can contain links)
lga lga(s) List of LGA(s) through which the road passes. For multiple LGAs, use {{Plainlist}} wikitext (can contain links)
through suburbs/settlements List of suburbs and other settlements through which the road passes. For multiple locations, use {{Plainlist}}
show_links show highway links? causes "Highway system" links to be shown at the bottom of the infobox. Is turned on by default when type = "highway", "expressway", "freeway", "motorway", or "parkway", and is usually not used for the other road types. "yes" or "no" or leave blank (for default behaviour), plain text, do not link
show_links2 show additional highway link causes an additional "Highway system" link to be shown for the specified state or territory, in addition to the links automatically determined from the state and state2 parameters. Will have no effect unless the highway links are already shown, either by default or with |show_links=yes "qld", "nsw", "act", "vic", "tas", "sa", "wa", or "nt".
restrictions general restrictions brief, significant notes about any restrictions on the road, such as regular seasonal closures or permit requirements needed for access. Content here should be expanded upon in the prose, and not be a replacement for it. wikitext (can contain links)
permit permits required? If permits are required, include number. Leave blank if not required. Only visible when type=track plain text
fuel fuel availability Brief description of fuel availability on the road, only visible when |type=track wikitext (can contain links)
facilities facilities available Brief description of facilities on the road, only visible when |type=track
TemplateData

An infobox template for Australian road articles.

Tham số bản mẫu

Tham sốMiêu tảKiểuTrạng thái
type of roadtype

Sets up the template for a specific type of road or road junction. Allowed values are "highway", "road", "rural road", "street", "expressway", "freeway", "motorway", "parkway", "track" or "junction"

Chuỗi dàibắt buộc
in urban area?urban

If the road is wholly contained within an urban area, set to "yes", otherwise leave blank

Không rõtùy chọn
type of junctionjtype

Type of road junction

Không rõtùy chọn
road statusstatus uc_former

Only use when the road is under construction, proposed or has been closed. Allowed values: "uc" or "under construction" or "proposed" or "closed"

Chuỗi dàitùy chọn
name of roadroad_name name

Primary name used for road (plain text, do not wikilink)

Chuỗi dàikhuyên dùng
alternative nameroad_name2

Alternative name(s) for road. plain text, do not wikilink. When there is more than one name, separate them with a solidus ( / ). If there are more than two names, use {{Plainlist}}

Không rõtùy chọn
location of the roadcity

Place where the road is located. This should be as detailed as is necessary. For road junctions, this will typically be a suburb.

Không rõtùy chọn
state where the road is locatedstate

Use the 2 or 3 digit state code corresponding to the location used for direction_a and end_a. If the road passes through more than one state, use the state2 parameter for the "other end" of the road. Allowed values: "qld", "nsw", "act", "vic", "tas", "sa", "wa", "nt" or "jbt".

Chuỗi dàikhuyên dùng
state (other end of road)state2

If the road passes through more than one state, use the 2 or 3 digit state code corresponding to the location used for direction_b and end_b. Allowed values: "qld", "nsw", "act", "vic", "tas", "sa", "wa", "nt" or "jbt".

Chuỗi dàitùy chọn
route shield/box -- normally not requiredroute_image

ONLY use for articles about a specific route, NOT for articles about named roads! Specify the image filename (without "File:") for the specific route's marker image

Không rõtùy chọn
route_image2route_image2

không có miêu tả

Không rõlỗi thời
route_image3route_image3

không có miêu tả

Không rõlỗi thời
route_image4route_image4

không có miêu tả

Không rõlỗi thời
route_image5route_image5

không có miêu tả

Không rõlỗi thời
route_image6route_image6

không có miêu tả

Không rõlỗi thời
route_image7route_image7

không có miêu tả

Không rõlỗi thời
route_image8route_image8

không có miêu tả

Không rõlỗi thời
photo or roadphoto

generic image of the road. Specify as image filename without "File:"

Không rõtùy chọn
width of photophotosize

Width of photo in pixels. Optional, generally used for images with portrait orientation. Specify a numeric value less than 300.

Sốtùy chọn
photo captioncaption

a caption for the photo

Không rõtùy chọn
alt text for photophoto_alt

alt text for the photo. See [[MOS:ALT]] for guidance

Không rõtùy chọn
alt text for imagealt

alt text for photo or location map image

Không rõlỗi thời
location map imagelocation

a map showing the location of the road. Specify an image filename, without "File:"

Không rõtùy chọn
location map captionloc_caption

a caption for the location map, generally of the form "Map of (somewhere) with (road name) highlighted in (colour)"

Không rõtùy chọn
alt text for location maplocation_alt

alt text for the location map image. See [[MOS:ALT]] for guidance

Không rõtùy chọn
alternative_location_mapalternative_location_map

(locator map parameter) Forces the locator map to use an alternative, rather than the state map, regardless of the contents of 'state' parameter.

Không rõtùy chọn
force_national_mapforce_national_map

(locator map parameter) Forces the locator map to use an alternative, rather than the state map, regardless of the contents of 'state' parameter.

Không rõtùy chọn
use_lga_mapuse_lga_map

(locator map parameter) Forces the locator map to use the lga map. For this to work, both 'state' and 'lga' parameters must be set, with only one value in each.

Không rõtùy chọn
reliefrelief

(locator map parameter) forces the locator map to use the relief version of the map.

Không rõtùy chọn
end_a latitude (degrees)latd_a

degrees component of the end_a latitude

Không rõtùy chọn
end_a latitude (minutes)latm_a

minutes component of the end_a latitude

Không rõtùy chọn
end_a latitude (seconds)lats_a

seconds component of the end_a latitude

Không rõtùy chọn
end_a longitude (degrees)longd_a

degrees component of the end_a longitude

Không rõtùy chọn
end_a longitude (minutes)longm_a

minutes component of the end_a longitude

Không rõtùy chọn
end_a longitude (seconds)longs_a

seconds component of the end_a longitude

Không rõtùy chọn
end_a label positionpushpin_label_position_a

position of the map label for end_a relative to the pushpin. allowed values: "left", "right", "top", or "bottom" (defaults to left)

Không rõtùy chọn
latd_blatd_b

không có miêu tả

Không rõtùy chọn
latm_blatm_b

không có miêu tả

Không rõtùy chọn
lats_blats_b

không có miêu tả

Không rõtùy chọn
longd_blongd_b

không có miêu tả

Không rõtùy chọn
longm_blongm_b

không có miêu tả

Không rõtùy chọn
longs_blongs_b

không có miêu tả

Không rõtùy chọn
end_b label positionpushpin_label_position_b

position of the map label for end_b relative to the pushpin. allowed values: "left", "right", "top", or "bottom" (defaults to left)

Không rõtùy chọn
latitudelatitude

không có miêu tả

Không rõtùy chọn
longitudelongitude

không có miêu tả

Không rõtùy chọn
locator map captionpushpin_map_caption

a caption for the locator map

Không rõtùy chọn
alt text for locator mapmap_alt

alt text for the locator map. See [[MOS:ALT]] for guidance

Không rõtùy chọn
road coordinatescoordinates

For coordinates: either at the midpoint, or for both ends of the road. Use {{coord}} with display=inline,title. Please do not be overly precise. If the locator map function is being used, this may be omitted, as the template generates the {{coord}} string from the locator map parameters, in which case this parameter is overridden.

Không rõtùy chọn
coordinates_displaycoordinates_display

không có miêu tả

Không rõtùy chọn
date openedest

date or year that the road was opened

Không rõkhuyên dùng
date closedclosed

date or year that the road was closed

Không rõtùy chọn
gazetted dategazetted

Date that the road was gazetted

Không rõtùy chọn
gazettal referencegazetted_ref

Reference for the road's gazettal

Không rõtùy chọn
construction detailsbuilt_by

Name of the company or authority that built the road

Không rõtùy chọn
maintenance authoritymaintained

Name of the authority that maintains the road

Không rõtùy chọn
brief historyhistory

brief, significant notes about the road's history that should be expanded upon in the prose, and not be a replacement for it.

Không rõtùy chọn
road lengthlength

Length of the road in km. Specify an unformatted numeric value

Sốtùy chọn
length roundinglength_rnd

Primarily for short roads such as [[Mouat Street]]. Specify a single integer numeric value

Sốtùy chọn
length referencelength_ref

reference for the length of the road. <ref> tags required; an existing reference can be reused

Không rõtùy chọn
road junction heightheight

height of the road junction in metres

Không rõtùy chọn
height roundingheight_rnd

single integer numeric value

Không rõtùy chọn
height referenceheight_ref

reference for the height of the road junction. <ref> tags required; an existing reference can be reused

Không rõtùy chọn
number of spansspans

number of bridge spans at the road junction

Sốtùy chọn
roads at the junctionroads

For a road junction, list of roads at the junction. Use {{Plainlist}}

Không rõtùy chọn
route number(s)route

route marker image (use {{AUshield}}) AND route number as text (can be a wikilink). Use {{Plainlist}} to specify multiple route allocations.

Không rõkhuyên dùng
former route informationformer

Information about former route designation, etc.

Không rõtùy chọn
tourist routestourist

a list of the tourist routes that follow the road

Không rõtùy chọn
ring roadring

The name of the locality that the ring road encircles. When this parameter is used, direction_a and direction_b should not be used.

Không rõtùy chọn
tourist looptloop

The name of the locality that the tourist road encircles. When this parameter is used, direction_a and direction_b should not be used.

Không rõtùy chọn
direction of one end of road. direction_a

direction of one end of the road. Specify a plain text direction, such as "North", "South", "Northwest", etc.

Không rõkhuyên dùng
end of roadend_a

intersecting road and location of the end of the road.

Không rõkhuyên dùng
major exits/intersectionsexits

list of major exits/interchanges. Use {{Plainlist}}

Không rõkhuyên dùng
direction of other end of roaddirection_b

direction of the other end of the road. Specify a plain text direction, such as "North", "South", "Northwest", etc.

Không rõkhuyên dùng
other end of roadend_b

intersecting road and location of the other end of the road.

Không rõkhuyên dùng
section1section1

không có miêu tả

Không rõtùy chọn
splitsplit

không có miêu tả

Không rõtùy chọn
direction_a1direction_a1

không có miêu tả

Không rõtùy chọn
end_a1end_a1

không có miêu tả

Không rõtùy chọn
exits1exits1

không có miêu tả

Không rõtùy chọn
direction_b1direction_b1

không có miêu tả

Không rõtùy chọn
end_b1end_b1

không có miêu tả

Không rõtùy chọn
directiondirection

không có miêu tả

Không rõtùy chọn
section2section2

không có miêu tả

Không rõtùy chọn
direction_a2direction_a2

không có miêu tả

Không rõtùy chọn
end_a2end_a2

không có miêu tả

Không rõtùy chọn
exits2exits2

không có miêu tả

Không rõtùy chọn
direction_b2direction_b2

không có miêu tả

Không rõtùy chọn
end_b2end_b2

không có miêu tả

Không rõtùy chọn
section3section3

không có miêu tả

Không rõtùy chọn
direction_a3direction_a3

không có miêu tả

Không rõtùy chọn
end_a3end_a3

không có miêu tả

Không rõtùy chọn
exits3exits3

không có miêu tả

Không rõtùy chọn
direction_b3direction_b3

không có miêu tả

Không rõtùy chọn
end_b3end_b3

không có miêu tả

Không rõtùy chọn
LGA(s)lga

LGA(s) through which the road passes. For multiple LGAs, use {{Plainlist}}

Không rõtùy chọn
region(s)region

region(s) through which the road passes

Không rõtùy chọn
suburbs/settlementsthrough

List of suburbs and other settlements through which the road passes.

Không rõtùy chọn
general restrictionsrestrictions

brief, significant notes about any restrictions on the road, such as regular seasonal closures or permit requirements needed for access. Content here should be expanded upon in the prose, and not be a replacement for it.

Không rõtùy chọn
permits requiredpermit

If permits are required, include number. Leave blank if not required. Only visible when 'type' parameter is specified as 'track'

Không rõtùy chọn
fuel availabilityfuel

Brief description of fuel availability on the road. Only visible when 'type' parameter is specified as 'track'

Không rõtùy chọn
facilities availablefacilities

Brief description of facilities on the road. Only visible when 'type' parameter is specified as 'track'

Không rõtùy chọn
show highway links?show_links

causes "Highway system" links to be shown at the bottom of the infobox. Is turned on by default when type = "highway", "expressway", "freeway", "motorway", or "parkway", and is usually not used for the other road types. Specify "yes" or "no" or leave blank (for default behaviour)

Không rõtùy chọn
show additional highway linkshow_links2

causes an additional "Highway system" link to be shown for the specified state or territory, in addition to the links automatically determined from the 'state' and 'state2' parameters. Will have no effect unless the highway links are already shown, either by default or by setting 'show_links' parameter to 'yes'. Allowed values: "qld", "nsw", "act", "vic", "tas", "sa", "wa", or "nt"

Không rõtùy chọn

The infobox type affects the colour of the top bar of the infobox.

Colour[a] |type=
Snow Flurry (greenish) highway
Light Yellow road, rural road
Antique White street
Lavender expressway, freeway, motorway, parkway
Cape Honey (yellowish) track
Ghost White junction
Mauve Undefined
|status=, |uc_former=
Grandis under construction, uc, proposed
Dark Grey closed
  1. ^ Colour names per this site

"Ref" fields

[sửa mã nguồn]

Any references should be placed within the respective "_ref" parameter's field and not within the field reserved solely for a numeric value. For example, place the reference used for the length of the road in the {{{length_ref}}} and not in the {{{length}}} parameter. Otherwise, an error may result.

Unformatted numbers and expression errors

[sửa mã nguồn]

Certain parameters require numeric values to be entered in an unformatted/raw fashion—i.e. 1000.0 NOT 1,000.0. If an expression error is present, simply remove any commas or spaces from the number.

Deprecated parameter tracking

[sửa mã nguồn]

Articles that include deprecated parameters are automatically added to Thể loại:Australian road articles using deprecated parameters.

Microformat

[sửa mã nguồn]

The HTML mark up produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.

If the place or venue has an "established", "founded", "opened" or similar date, use {{Start date}}.

hCard uses HTML classes including:

  • adr
  • agent
  • category
  • county-name
  • extended-address
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • region
  • street-address
  • vcard

Geo is produced by calling {{coord}}, and uses HTML classes:

  • geo
  • latitude
  • longitude

Please do not rename or remove these classes; nor collapse nested elements which use them.

When giving coordinates, please don't be overly precise.