Misplaced Pages

Template:Infobox Australian road/sandbox: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Template:Infobox Australian road Browse history interactively← Previous editContent deleted Content addedVisualWikitext
Revision as of 16:09, 29 May 2013 editAussieLegend (talk | contribs)Autopatrolled, Extended confirmed users, File movers, Pending changes reviewers, Rollbackers173,395 edits restoring original labels← Previous edit Latest revision as of 10:54, 26 December 2021 edit undoGKFX (talk | contribs)Extended confirmed users13,131 edits Sync with main template, remove unnecessary comments around whitespace which is trimmed anyway, use plain if statement 
(165 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{#invoke:infobox|infoboxTemplate
{{Infobox
| bodyclass = vcard | bodyclass = vcard plainlist
| aboveclass = fn org | aboveclass = fn org
| abovestyle = font-size: 120%; line-height: 1.6em; color:#000; {{#if: {{{uc_former|}}}|{{ #switch: {{lc:{{{uc_former|}}} }} | abovestyle = font-size: 125%; line-height: 1.2em; {{#if: {{{uc_former|{{{status|}}}}}}|{{ #switch: {{lc:{{{uc_former|{{{status|}}}}}} }}
|under construction = background-color:#fc6; |under construction = background-color:#fc6;
|uc = background-color:#fc6; |uc = background-color:#fc6;
|proposed = background-color:#fc6;
|closed = background-color:#aaa; |closed = background-color:#aaa;
}}|{{ #switch: {{lc:{{{type|}}} }} }}|{{ #switch: {{lc:{{{type|}}} }}
|highway = background-color:#e9f9d2; |highway = background-color:#e9f9d2;
|city highway = background-color:#e9f9d2;
|road = background-color:#ffffe0; |road = background-color:#ffffe0;
|rural road = background-color:#ffffe0; |rural road = background-color:#ffffe0;
|street = background-color:#f9e2d2; |street = background-color:#f9e2d2;
|freeway = background-color:#d2e2f9; |expressway = background-color:#d2d5f9;
|freeway = background-color:#d2d5f9;
|motorway = background-color:#d2d5f9;
|parkway = background-color:#d2d5f9;
|track = background-color:#fee8ab; |track = background-color:#fee8ab;
|junction = background-color:#f0f0ff;
| background-color: #e6c4fb; | background-color: #e6c4fb;
}} }} }} }}
| above = {{{road_name|{{{name|<includeonly>{{PAGENAME}}</includeonly>}}}}}}{{#if:{{{road_name2|}}}|<br /><span style="font-weight:normal;">{{{road_name2|}}}</span>}}{{#if: {{{state|}}}|<br /><span style="font-weight:normal; font-size: 90%;">{{ #switch: {{lc:{{{state|}}} }} | above = {{#if: {{{road_name|}}}|<div style="display:inline;">{{{road_name|{{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}}}}</div>{{#if:{{{road_name2|}}}|<br /><div style="display:inline;font-weight:normal; font-size: 90%;">{{{road_name2|}}}</div>}}{{#if: {{{state|}}}|<br /><div style="display:inline;font-weight:normal; font-size: 85%;" class="locality">{{ #switch: {{lc:{{{state|}}} }}
|sa = ] |sa = ]
|vic = ] |vic = ]
Line 26: Line 30:
|act = ] |act = ]
|jbt = ] |jbt = ]
|{{auto link|{{{state|}}}}} |<span class="region">{{auto link|{{{state|}}}}}</span>
}}</span>}}{{#if: {{{state2|}}}|<span style="font-weight:normal; font-size: 90%;">&nbsp;&nbsp;{{ #switch: {{lc:{{{state2|}}} }} }}</div>}}{{#if: {{{state2|}}}|<span style="font-weight:normal; font-size: 85%;" class="region">–{{ #switch: {{lc:{{{state2|}}} }}
|sa = ] |sa = ]
|vic = ] |vic = ]
Line 37: Line 41:
|act = ] |act = ]
|jbt = ] |jbt = ]
|{{auto link|{{{state2|}}}}} |<span class="region">{{auto link|{{{state2|}}}}}</span>
}}</span>}} }}<!--Tracking category: --> {{main other|{{#if:{{{state|}}}{{{state2|}}}||]}}}}
}}</span>}}
| image = {{#if:{{{route_image|}}}|{{#ifeq:{{#invoke:String|find|source={{main other|{{PAGENAMEBASE}}|{{{road_name|{{{name|}}}}}} }}|target=%d|plain=0}}|0|<!--no digit in article title, so don't display route_image-->|{{#ifexist:media:{{{route_image|}}}
| image = {{#ifexist:media:{{{route_image|}}}
|{{#invoke:InfoboxImage|InfoboxImage|image={{{route_image|}}}|size=40px}}&nbsp; &nbsp; |{{#invoke:InfoboxImage|InfoboxImage|image={{{route_image|}}}|size=40px}}
|{{{route_image|}}} |{{{route_image|}}}
}} }} }}
}}{{#ifexist:media:{{{route_image2|}}}
|{{#invoke:InfoboxImage|InfoboxImage|image={{{route_image2|}}}|size=40px}}&nbsp; &nbsp; | image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|sizedefault=frameless|upright={{{logo_upright|0.81}}}|alt={{{logo_alt|}}}}}
| headerstyle = background-color:#ddf; color:#000; {{#if: {{{uc_former|{{{status|}}}}}}|{{ #switch: {{lc:{{{uc_former|{{{status|}}}}}} }}
|{{{route_image2|}}}
}}{{#ifexist:media:{{{route_image3|}}}
|{{#invoke:InfoboxImage|InfoboxImage|image={{{route_image3|}}}|size=40px}}&nbsp; &nbsp;
|{{{route_image3|}}}
}}{{#ifexist:media:{{{route_image4|}}}
|{{#invoke:InfoboxImage|InfoboxImage|image={{{route_image4|}}}|size=40px}}
|{{{route_image4|}}}
}}
| image2 = {{#ifexist:media:{{{route_image5|}}}
|{{#invoke:InfoboxImage|InfoboxImage|image={{{route_image5|}}}|size=40px}}&nbsp; &nbsp;
|{{{route_image5|}}}
}}{{#ifexist:media:{{{route_image6|}}}
|{{#invoke:InfoboxImage|InfoboxImage|image={{{route_image6|}}}|size=40px}}&nbsp; &nbsp;
|{{{route_image6|}}}
}}{{#ifexist:media:{{{route_image7|}}}
|{{#invoke:InfoboxImage|InfoboxImage|image={{{route_image7|}}}|size=40px}}&nbsp; &nbsp;
|{{{route_image7|}}}
}}{{#ifexist:media:{{{route_image8|}}}
|{{#invoke:InfoboxImage|InfoboxImage|image={{{route_image8|}}}|size=40px}}
|{{{route_image8|}}}
}}
| headerstyle = color:#000; {{#if: {{{uc_former|}}}|{{ #switch: {{lc:{{{uc_former|}}} }}
|under construction = background-color:#fc6; |under construction = background-color:#fc6;
|uc = background-color:#fc6; |uc = background-color:#fc6;
|proposed = background-color:#fc6;
|closed = background-color:#aaa; |closed = background-color:#aaa;
}}|{{ #switch: {{lc:{{{type|}}} }} }}|{{ #switch: {{lc:{{{type|}}} }}
|highway = background-color:#e9f9d2; |highway = background-color:#e9f9d2;
|city highway = background-color:#e9f9d2;
|road = background-color:#ffffe0; |road = background-color:#ffffe0;
|rural road = background-color:#ffffe0; |rural road = background-color:#ffffe0;
|street = background-color:#f9e2d2; |street = background-color:#f9e2d2;
|freeway = background-color:#d2e2f9; |expressway = background-color:#d2d5f9;
|freeway = background-color:#d2d5f9;
|motorway = background-color:#d2d5f9;
|parkway = background-color:#d2d5f9;
|track = background-color:#fee8ab; |track = background-color:#fee8ab;
|junction = background-color:#f0f0ff;
| background-color: #e6c4fb; | background-color: #e6c4fb;
}} }} }} }}
| labelstyle = color:#000; {{#if: {{{uc_former|}}}|{{ #switch: {{lc:{{{uc_former|}}} }} | labelstyle = background-color:#f0f0ff; width:35%
| data1 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{imagesize|{{{image_size|}}}}}}|sizedefault=frameless|upright={{{image_upright|1.23}}}|alt={{{image_alt|}}}}}
|under construction = background-color:#fc6;
| data2 = {{#if: {{{caption|}}}|<div style="display:inline;font-size: 90%;">{{{caption|}}}</div>}}
|uc = background-color:#fc6;
| data3 = {{#ifexist:media:{{{location|}}}
|closed = background-color:#aaa;
|]
}}|{{ #switch: {{lc:{{{type|}}} }}
|{{{location|{{#invoke:Infobox mapframe|auto|onByDefault=yes|mapframe-length_km={{{length|}}}}}<!--
|highway = background-color:#e9f9d2;
Tracking category if mapframe is yes or not set, in mainspace, and P625 (coordinate location) is set on Wikidata.
|city highway = background-color:#e9f9d2;
-->{{#if: {{yesno|{{{mapframe|yes}}}|yes = {{#if: {{NAMESPACE}} || {{#property:P625}} }} }}
|road = background-color:#ffffe0;
|]
|rural road = background-color:#ffffe0;
}}<!--
|street = background-color:#f9e2d2;
-->}}}
|freeway = background-color:#d2e2f9;
}}
|track = background-color:#fee8ab;
| data4 = {{#if: {{#invoke:Infobox mapframe|autocaption|onByDefault=yes|mapframe-caption={{{loc_caption|}}}}} |<div style="display:inline;font-size: 90%;">{{#invoke:Infobox mapframe|autocaption|onByDefault=yes|mapframe-caption={{{loc_caption|}}}}}</div>}}
| background-color: #e6c4fb;
| data5 = {{#ifexist:media:{{{location|}}} || {{#invoke:Australian place map|main}} }}
}} }}
| data1 = {{{former|}}}
| data2 = {{#ifexist:media:{{{photo|}}}|]|{{{photo|}}}}}
| data3 = {{{caption|}}}
| data4 = {{#ifexist:media:{{{location|}}}|]|{{{location|}}}}}
| data5 = {{#if: {{{latd_a|}}}{{{longd_a|}}}|{{Location map many|{{#if:{{{alternative_location_map|}}}|{{{alternative_location_map}}}|{{#if: {{{force_national_map|}}} | Australia | Australia {{ #switch: {{lc:{{{state|}}}}}
|sa = South Australia
|vic = Victoria
|nsw = New South Wales
|qld = Queensland
|nt = Northern Territory
|wa = Western Australia
|tas = Tasmania
|act = Australian Capital Territory
|jbt = Jervis Bay Territory
|#default =
}}{{#if:{{{use_lga_map|}}}|&#x20;{{{lga|}}}}}}}}}
|relief = {{{relief|}}}
|label1 = {{#if:{{{direction_a|}}}|{{{direction_a}}} end}}
|lat1 = {{#if:{{{latm_a|}}}| |{{{latd_a|}}} }}
|long1 = {{#if:{{{longm_a|}}}| |{{{longd_a|}}} }}
|lat1_deg = {{{latd_a|}}}
|lat1_min = {{{latm_a|}}}
|lat1_sec = {{{lats_a|}}}
|lat1_dir = S
|lon1_deg = {{{longd_a|}}}
|lon1_min = {{{longm_a|}}}
|lon1_sec = {{{longs_a|}}}
|lon1_dir = E
|position1 = {{#if:{{{pushpin_label_position_a|}}}|{{{pushpin_label_position_a}}}|left}}
|label2 = {{#if:{{{direction_b|}}}|{{{direction_b}}} end}}
|lat2 = {{#if:{{{latm_b|}}}| |{{{latd_b|}}} }}
|long2 = {{#if:{{{longm_b|}}}| |{{{longd_b|}}} }}
|lat2_deg = {{{latd_b|}}}
|lat2_min = {{{latm_b|}}}
|lat2_sec = {{{lats_b|}}}
|lat2_dir = S
|lon2_deg = {{{longd_b|}}}
|lon2_min = {{{longm_b|}}}
|lon2_sec = {{{longs_b|}}}
|lon2_dir = E
|position2 = {{#if:{{{pushpin_label_position_b|}}}|{{{pushpin_label_position_b}}}|left}}
|marksize = 8
|float = center
|caption =
|border = none
|width = 270
|alt = {{{map_alt|}}}
}}{{#if:{{{pushpin_map_caption|}}}|<small>{{{pushpin_map_caption}}}</small>|}}
}}
| label6 = Route maps
| data6 = {{#if: {{{kml|}}}|
*
*
*
<div class="kmldata" title="Template:Infobox_Australian_road/KML/{{#if:{{{kml_map|}}}|{{{kml_map|}}}|{{PAGENAME}}}}" style="display:none;">]</div>
}}
| label7 = ] | label7 = ]
| data7 = {{#if:{{both|{{{latitude|{{{latd_a|}}}}}}|{{{longitude|{{{longd_a|}}}}}}}}| | data7 = {{#if:{{{coordinates_a|}}}|
{{Geobox coor|{{{latitude|{{{latd_a|}}}}}}|{{{latm_a|}}}|{{{lats_a|}}}| S |{{{longitude|{{{longd_a|}}}}}}|{{{longm_a|}}}|{{{longs_a|}}}| E |type:landmark_region:AU{{#if: {{{state|}}}|-{{uc:{{{state|}}} }}}}|{{#ifeq:{{{coordinates_display|}}}|inline,title||1}}}}|{{#if:{{{coordinates|}}}|{{{coordinates}}} }} }} * {{#invoke:coordinates|coordinsert|{{{coordinates_a}}}|type:landmark|region:AU{{#if: {{{state|}}}|-{{uc:{{{state}}} }}}}}}{{#if:{{both|{{{direction_a|}}}|{{{coordinates_b|}}}}}|&#32;({{{direction_a}}} end)}} }}<!--
-->{{#if:{{{coordinates_b|}}}|
| header8 = {{#if:{{{length|}}}{{{direction|}}}{{{direction_a|}}}{{{direction_b|}}}{{{est|}}}{{{closed|}}}{{{gazetted|}}}{{{maintained|}}}{{{history|}}}{{{route|}}}{{{ring|}}}{{{tloop|}}}{{{tourist|}}}{{{split|}}}|General information}}
* {{#invoke:coordinates|coordinsert|{{{coordinates_b}}}|type:landmark|region:AU{{#if: {{{state|}}}|-{{uc:{{{state}}} }}}}}}{{#if:{{both|{{{direction_b|}}}|{{{coordinates_b|}}}}}|&#32;({{{direction_b}}} end)}} }}
| class8 = navbox-abovebelow
| header8 = {{#if:{{{jtype|}}}{{{city|}}}{{{length|}}}{{{height|}}}{{{direction|}}}{{{direction_a|}}}{{{direction_b|}}}{{{est|}}}{{{closed|}}}{{{gazetted|}}}{{{built_by|}}}{{{maintained|}}}{{{history|}}}{{{route|}}}{{{former|}}}{{{ring|}}}{{{tloop|}}}{{{tourist|}}}{{{split|}}}|General information}}
| label9 = Type | label9 = Type
| data9 = {{#if: {{{road_name|}}}|{{ #switch: {{lc:{{{type|}}} }} | data9 = {{#if: {{{road_name|}}}|{{ #switch: {{lc:{{{type|error}}} }}
|highway = ] |highway = ]
|city highway = City ]
|road = ] |road = ]
|rural road = Rural ] |rural road = Rural ]
|street = ] |street = ]
|expressway = ]
|freeway = ] |freeway = ]
|motorway = ]
|parkway = ]
|track = ] |track = ]
|junction = ]
| Undefined
|error = {{error|1=Error: <code>{{!}}type=</code> not defined (])}} <!--Tracking category: --> {{main other|]}}
}} {{ #switch: {{lc:{{{type|}}} }}
| {{error|1=Error: unknown <code>{{!}}type=</code> value (])}} <!--Tracking category: --> {{main other|]}}
}} {{ #switch: {{lc:{{{uc_former|{{{status|}}}}}} }}
|under construction = &nbsp;(Under construction) |under construction = &nbsp;(Under construction)
|uc = &nbsp;(Under construction) |uc = &nbsp;(Under construction)
|closed = &nbsp;(Former road, decommisioned) |proposed = &nbsp;(Proposed)
|closed = &nbsp;(Former road, decommissioned)
}} }}
| label10 = Junction type
| data10 = {{#ifeq:{{{type|}}}|junction|{{{jtype|}}} }}
| label11 = Location
| data11 = {{auto link|{{{city|}}}}}
| label12 = Length
| data12 = {{#if:{{{length|}}}|{{#ifexpr:{{{length}}}<1
|<!--Display metric in metres-->{{#ifexpr:{{{length}}}/1.609344<0.25
|<!--Display imperial in ft-->{{formatnum:{{#expr:{{{length}}}*1000}}}}&nbsp;m ({{rnd|{{{length}}}*5280/1.609344|{{#if:{{{length_rnd|}}}|{{#expr:{{{length_rnd}}}-3}}|-2}}}}&nbsp;ft){{{length_ref|}}}
|<!--Display imperial in mi-->{{formatnum:{{#expr:{{{length}}}*1000}}}}&nbsp;m ({{rnd|{{{length}}}/1.609344|{{#if:{{{length_rnd|}}}|{{{length_rnd}}}|1}}}}&nbsp;mi){{{length_ref|}}} }}
|<!--Display metric in km and imperial in mi-->{{formatnum:{{{length}}}}}&nbsp;km ({{rnd|{{{length}}}/1.609344|{{#if:{{{length_rnd|}}}|{{{length_rnd}}}|{{#ifexpr:{{{length}}}/1.609344<10|1|0}}}}}}&nbsp;mi){{{length_ref|}}}
}}
}}
| label13 = Maximum height
| data13 = {{#ifeq:{{{type|}}}|junction|{{#if:{{{height|}}}|{{formatnum:{{{height}}}}}&nbsp;m ({{rnd|{{{height}}}*3.2808398|{{#if:{{{height_rnd|}}}|{{{height_rnd}}}|0}}}}&nbsp;ft){{{height_ref|}}} }} }}
| label14 = Spans
| data14 = {{#ifeq:{{{type|}}}|junction|{{{spans|}}} }}
| label15 = Opened
| data15 = {{{est|}}}{{#if:{{{est|}}}|{{#ifexist:Category:{{{est}}} establishments in Australia|{{main other|]}}}}}}
| label16 = Road closed
| data16 = {{{closed|}}}
| label17 = ]
| data17 = {{#if:{{{gazetted|}}}|{{{gazetted|}}}{{{gazetted_ref|}}} }}
| label18 = Built by
| data18 = {{{built_by|}}}
| label19 = Maintained by
| data19 = {{{maintained|}}}
| label20 = History
| data20 = {{{history|}}}
| label21 = Roads at junction
| data21 = {{#ifeq:{{{type|}}}|junction|{{{roads|}}} }}
| label22 = ]
| data22 = {{{route|}}}
| label23 = Former<br />route number
| data23 = {{{former|}}}
| label24 = {{#if:{{{ring|}}}|] around|{{#if:{{{tloop|}}}|Tourist loop around}} }}
| data24 = {{#if:{{{ring|}}}|{{{ring}}}|{{#if:{{{tloop|}}}|{{{tloop}}} }} }}
| label25 = Tourist routes
| data25 = {{{tourist|}}}
| data26 = {{#if:{{{split|}}}|{{#if:{{{section1|}}}{{{section2|}}}{{{section3|}}}||'''{{{road_name}}} is a split road'''}} }}

| header27 = {{#if:{{{direction_a|}}}{{{direction_a|}}}{{{end_a|}}}{{{split|}}}|Major junctions}}
| label28 = {{#if:{{{direction_a|}}}|{{{direction_a|}}} end|{{#if:{{{ring|}}}|From }} }}
| data28 = {{#if:{{{end_a|}}}|{{auto link|{{{end_a|}}} }} }}
| label29 = &nbsp;
| data29 = {{{exits|}}}
| label30 = {{#if:{{{direction_b|}}}|{{{direction_b|}}} end|{{#if:{{{ring|}}}|To }} }}
| data30 = {{#if:{{{end_b|}}}|{{auto link|{{{end_b|}}} }} }}
| data31 = {{#if:{{{split|}}}|{{Infobox
| subbox = yes | headerstyle = background:#f9f9f9; border:3px solid {{#if: {{{uc_former|{{{status|}}}}}}|{{ #switch: {{lc:{{{uc_former|{{{status|}}}}}} }}
|under construction = #fc6;
|uc = #fc6;
|proposed = #fc6;
|closed = #aaa;
}}|{{ #switch: {{lc:{{{type|}}} }}
|highway = #e9f9d2;
|road = #ffffe0;
|rural road = #ffffe0;
|street = #f9e2d2;
|expressway = #d2d5f9;
|freeway = #d2d5f9;
|motorway = #d2d5f9;
|parkway = #d2d5f9;
|track = #fee8ab;
|junction = #f0f0ff;
| #e6c4fb;
}} }} }} }}
| label10 = Length
| data10 = {{#if:{{{length|}}}|{{formatnum:{{{length}}}}}&nbsp;km ({{rnd|{{{length}}}/1.609344|{{#if:{{{length_rnd|}}}|{{{length_rnd}}}|0}}}}&nbsp;mi){{{length_ref|}}} }}
| label11 = Direction
| data11 = {{#if:{{{direction_a|}}}{{{direction_b|}}}|{{{direction_a|}}}-{{{direction_b|}}}|{{#if:{{{direction|}}}|{{{direction|}}} }} }}
| label12 = Established
| data12 = {{{est|}}}{{#ifexist:Category:{{{est}}} establishments in Australia|]}}
| label13 = Road closed
| data13 = {{{closed|}}}
| label14 = ]
| data14 = {{#if:{{{gazetted|}}}|{{{gazetted|}}}{{{gazetted_ref|}}} }}
| label15 = Maintained by
| data15 = {{{maintained|}}}
| label16 = History
| data16 = {{{history|}}}
| label17 = ]
| data17 = {{{route|}}}
| label18 = {{#if:{{{ring|}}}|] around|{{#if:{{{tloop|}}}|Tourist loop around}} }}
| data18 = {{#if:{{{ring|}}}|{{{ring}}}|{{#if:{{{tloop|}}}|{{{tloop}}} }} }}
| label19 = Tourist routes
| data19 = {{{tourist|}}}
| data20 = {{#if:{{{split|}}}|'''{{{road_name}}} is a split road''' }}
| header21 = {{#if:{{{direction_a|}}}{{{direction_a|}}}{{{direction|}}}{{{end_a|}}}{{{split|}}}|Major junctions}}
| class21 = navbox-abovebelow
| label22 = {{#if:{{{direction_a|}}}|{{{direction_a|}}} end|{{#if:{{{direction|}}}{{{start|}}}|From }} }}
| data22 = {{#if:{{{end_a|}}}|{{auto link|{{{end_a|}}} }}|{{#if:{{{start|}}}|{{auto link|{{{start|}}} }} }} }}
| label23 = &nbsp;
| data23 = {{{exits|}}}
| label24 = {{#if:{{{direction_b|}}}|{{{direction_b|}}} end|{{#if:{{{direction|}}}{{{finish|}}}|To }} }}
| data24 = {{#if:{{{end_b|}}}|{{auto link|{{{end_b|}}} }}|{{#if:{{{finish|}}}|{{auto link|{{{finish|}}} }} }} }}
| header25 = {{#if:{{{split|}}}|{{Infobox
| child = yes
| header1 = {{{section1|}}} }} }} | header1 = {{{section1|}}} }} }}
| label26 = {{#if:{{{split|}}}|{{{direction_a1|}}} end }} | label32 = {{#if:{{{split|}}}|{{{direction_a1|}}} end }}
| data26 = {{#if:{{{split|}}}|{{auto link|{{{end_a1|}}} }} }} | data32 = {{#if:{{{split|}}}|{{{end_a1|}}} }}
| label27 = {{#if:{{{split|}}}|&nbsp; }} | label33 = {{#if:{{{split|}}}|&nbsp; }}
| data27 = {{#if:{{{split|}}}|{{{exits1|}}} }} | data33 = {{#if:{{{split|}}}|{{{exits1|}}} }}
| label28 = {{#if:{{{split|}}}|{{{direction_b1|}}} end }} | label34 = {{#if:{{{split|}}}|{{{direction_b1|}}} end }}
| data28 = {{#if:{{{split|}}}|{{auto link|{{{end_b1|}}} }} }} | data34 = {{#if:{{{split|}}}|{{{end_b1|}}} }}
| header29 = {{#if:{{{split|}}}|{{Infobox | data35 = {{#if:{{{split|}}}|{{Infobox
| subbox = yes | headerstyle = background:#f9f9f9; border:3px solid {{#if: {{{uc_former|{{{status|}}}}}}|{{ #switch: {{lc:{{{uc_former|{{{status|}}}}}} }}
| child = yes
|under construction = #fc6;
| header1 = {{{section2|}}} }} }}
|uc = #fc6;
| label30 = {{#if:{{{split|}}}|{{{direction_a2|}}} end }}
|proposed = #fc6;
| data30 = {{#if:{{{split|}}}|{{auto link|{{{end_a2|}}} }} }}
| label31 = {{#if:{{{split|}}}|&nbsp; }} |closed = #aaa;
| data31 = {{#if:{{{split|}}}|{{{exits2|}}} }} }}|{{ #switch: {{lc:{{{type|}}} }}
|highway = #e9f9d2;
| label32 = {{#if:{{{split|}}}|{{{direction_b2|}}} end }}
|road = #ffffe0;
| data32 = {{#if:{{{split|}}}|{{auto link|{{{end_b2|}}} }} }}
|rural road = #ffffe0;
| header33 = {{#if:{{{split|}}}|{{Infobox
| child = yes |street = #f9e2d2;
|expressway = #d2d5f9;
| header1 = {{{section3|}}} }} }}
|freeway = #d2d5f9;
| label34 = {{#if:{{{split|}}}|{{{direction_a3|}}} end }}
|motorway = #d2d5f9;
| data34 = {{#if:{{{split|}}}|{{auto link|{{{end_a3|}}} }} }}
| label35 = {{#if:{{{split|}}}|&nbsp; }} |parkway = #d2d5f9;
|track = #fee8ab;
| data35 = {{#if:{{{split|}}}|{{{exits3|}}} }}
|junction = #f0f0ff;
| label36 = {{#if:{{{split|}}}|{{{direction_b3|}}} end }}
| #e6c4fb;
| data36 = {{#if:{{{split|}}}|{{auto link|{{{end_b3|}}} }} }}
}} }}
| header37 = {{#if:{{{region|}}}{{{lga|}}}{{{through|}}}|Location(s)}}
| class37 = navbox-abovebelow | header2 = {{{section2|}}} }} }}
| label36 = {{#if:{{{split|}}}|{{{direction_a2|}}} end }}
| label38 = ]
| data38 = {{auto link|{{{region|}}} }} | data36 = {{#if:{{{split|}}}|{{{end_a2|}}} }}
| label39 = {{#if: {{{state2|}}}|]|{{ #switch: {{lc:{{{state|}}}}} | label37 = {{#if:{{{split|}}}|&nbsp; }}
| data37 = {{#if:{{{split|}}}|{{{exits2|}}} }}
| label38 = {{#if:{{{split|}}}|{{{direction_b2|}}} end }}
| data38 = {{#if:{{{split|}}}|{{{end_b2|}}} }}
| data39 = {{#if:{{{split|}}}|{{Infobox
| subbox = yes | headerstyle = background:#f9f9f9; border:3px solid {{#if: {{{uc_former|{{{status|}}}}}}|{{ #switch: {{lc:{{{uc_former|{{{status|}}}}}} }}
|under construction = #fc6;
|uc = #fc6;
|proposed = #fc6;
|closed = #aaa;
}}|{{ #switch: {{lc:{{{type|}}} }}
|highway = #e9f9d2;
|road = #ffffe0;
|rural road = #ffffe0;
|street = #f9e2d2;
|expressway = #d2d5f9;
|freeway = #d2d5f9;
|motorway = #d2d5f9;
|parkway = #d2d5f9;
|track = #fee8ab;
|junction = #f0f0ff;
| #e6c4fb;
}} }}
| header3 = {{{section3|}}} }} }}
| label40 = {{#if:{{{split|}}}|{{{direction_a3|}}} end }}
| data40 = {{#if:{{{split|}}}|{{{end_a3|}}} }}
| label41 = {{#if:{{{split|}}}|&nbsp; }}
| data41 = {{#if:{{{split|}}}|{{{exits3|}}} }}
| label42 = {{#if:{{{split|}}}|{{{direction_b3|}}} end }}
| data42 = {{#if:{{{split|}}}|{{{end_b3|}}} }}

| header43 = {{#if:{{{region|}}}{{{lga|}}}{{{through|}}}|Location(s)}}
| label44 = ]
| data44 = {{auto link|{{{region|}}} }}
| label45 = {{#if: {{{state2|}}}|]|{{ #switch: {{lc:{{{state|}}}}}
|sa = ] |sa = ]
|vic = ] |vic = ]
Line 240: Line 246:
|] |]
}} }} }} }}
| data39 = {{{lga|}}} | data45 = {{auto link|{{{lga|}}}}}
| label40 = {{#switch: {{lc:{{{type|}}} | label46 = {{#ifeq: {{{urban|}}}|yes|Major suburbs|{{ #switch: {{lc:{{{type|}}} }}
|highway = Major settlements
}}
| highway = Major settlements |road = Major suburbs
| freeway = Major suburbs |rural road = Major settlements
|street = Suburb(s)
| city highway = Major suburbs
| road = Major suburbs |expressway = Major suburbs&nbsp;/&nbsp;towns
| rural road = Major settlements |freeway = Major suburbs&nbsp;/&nbsp;towns
| street = Suburb(s) |motorway = Major suburbs&nbsp;/&nbsp;towns
|parkway = Major suburbs&nbsp;/&nbsp;towns
| via
|via
}} }}
| data46 = {{{through|}}}

| header47 = {{#if:{{{restrictions|}}}{{{permit|}}}{{{fuel|}}}{{{facilities|}}}|Restrictions}}
| label48 = General
| data48 = {{{restrictions|}}}
| label49 = Permits
| data49 = {{#ifeq:{{{type|}}}|track|{{{permit|}}} }}
| label50 = Fuel supply
| data50 = {{{fuel|}}}
| label51 = Facilities
| data51 = {{{facilities|}}}

| header52 = {{#ifeq:{{lc:{{{show_links|{{#switch:{{lc:{{{type|}}}}}|highway|expressway|freeway|motorway|parkway=yes|#default=no}}}}}}}|no||Highway system}}
| data53 = {{#ifeq:{{lc:{{{show_links|{{#switch:{{lc:{{{type|}}}}}|highway|expressway|freeway|motorway|parkway=yes|#default=no}}}}}}}|no||
* ]
*]{{*}}]
* {{ #switch: {{lc:{{{state|}}} }}
|sa = ]
|vic = ]
|nsw = ]
|qld = ]
|nt = ]
|wa = ]
|tas = ]
|act = ]
}} }}
| data40 = {{{through|}}} * {{ #switch: {{lc:{{{show_links2|}}} }}
|sa = ]
| header41 = {{#if:{{{restrictions|}}}{{{permit|}}}{{{fuel|}}}{{{facilities|}}}|Restrictions}}
|vic = ]
| class41 = navbox-abovebelow
|nsw = ]
| label42 = General
|qld = ]
| data42 = {{{restrictions|}}}
|nt = ]
| label43 = Permits
|wa = ]
| data43 = {{#ifeq:{{{type|}}}|track|{{{permit|}}} }}
|tas = ]
| label44 = Fuel supply
|act = ]
| data44 = {{{fuel|}}}
}}
| label45 = Facilities
| data45 = {{{facilities|}}} * {{ #switch: {{lc:{{{state2|}}} }}
|sa = ]
| header46 = {{#if:{{{show_links|}}}|Highway system}}
|vic = ]
| class46 = navbox-abovebelow
|nsw = ]
| data47 = {{#if:{{{show_links|}}}|]<br />] • ]{{ #switch: {{lc:{{{state|}}} }}
|sa = <br />] |qld = ]
|vic = <br />] |nt = ]
|nsw = <br />] |wa = ]
|qld = <br />] |tas = ]
|act = ]
|nt = <br />]
|wa = <br />]
|tas = <br />]
|act = <br />]
}} }} }} }}
| below = {{align|right|<small>]</small>}} | below = {{#switch:{{NAMESPACE}}
| {{ns:0}} | {{ns:2}} | {{ns:118}} = {{If preview|----
}}
{{flatlist|
<!-- Start tracking
*]
-->{{#ifeq:{{{direction|♠}}}{{{finish|♠}}}{{{start|♠}}}{{{1|♠}}}|♠♠♠♠||]}}<!-- End tracking
*]
*]
*]
}}}}}}
}}<!-- Start tracking
-->{{#invoke:Check for unknown parameters|check|unknown={{main other|]}}|preview=Page using ] with unknown parameter "_VALUE_"|ignoreblank=y | alternative_location_map | built_by | caption | city | closed | coordinates_a | coordinates_b | direction_a | direction_a1 | direction_a2 | direction_a3 | direction_b | direction_b1 | direction_b2 | direction_b3 | end_a | end_a1 | end_a2 | end_a3 | end_b | end_b1 | end_b2 | end_b3 | est | exits | exits1 | exits2 | exits3 | facilities | force_national_map | former | fuel | gazetted_ref | gazetted | height_ref | height_rnd | height | history | image_alt | image | image_upright | jtype | length_ref | length_rnd | length | lga | loc_caption | loc_alt | location_alt | location | logo | logo_alt | logo_upright | maintained | map_alt | map_type | permit | pushpin_label_position_a | pushpin_label_position_b | pushpin_map_caption | region | relief | restrictions | ring | road_name | road_name2 | roads | route_image | route | section1 | section2 | section3 | show_links | show_links2 | spans | split | state | state2 | status | through | tloop | tourist | type | uc_former | urban | use_lga_map | mapframe | mapframe-caption | mapframe-custom | mapframe-id | mapframe-coord | mapframe-wikidata | mapframe-shape | mapframe-frame-width | mapframe-frame-height | mapframe-shape-fill | mapframe-shape-fill-opacity | mapframe-stroke-color | mapframe-stroke-colour | mapframe-stroke-width | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-geomask | mapframe-geomask-stroke-color | mapframe-geomask-stroke-colour | mapframe-geomask-stroke-width | mapframe-geomask-fill | mapframe-geomask-fill-opacity | mapframe-zoom | mapframe-length_km | mapframe-length_mi | mapframe-area_km2 | mapframe-area_mi2 | mapframe-frame-coordinates | mapframe-frame-coord | mapframe-switcher }}<!--
-->{{main other|
{{#ifeq:{{{1|♠}}}|♠||]
}}{{#if:{{{route_image|}}}|{{#ifeq:{{#invoke:String|find|source={{PAGENAMEBASE}}|target=%d|plain=0}}|0|]}}
}}{{#if:{{{length_rnd|}}}|{{#ifexpr:{{{length}}}/1.609344<10|]}}
}}{{#if:{{{coordinates_a|}}}|{{#if:{{{coordinates_b|}}}||]}}
}}{{#if:{{{coordinates_b|}}}|{{#if:{{{coordinates_a|}}}||]}}
}}{{#ifexist:media:{{{location|}}} | {{#if: {{{coordinates_a|}}} | ] }}
}}{{#if:{{{mapframe|}}}|]
}}}}<!-- End tracking
--><noinclude> --><noinclude>
{{Documentation}} {{Documentation}}

Latest revision as of 10:54, 26 December 2021

This is the template sandbox page for Template:Infobox Australian road (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge] Shortcut
This template uses Lua:
This template employs intricate features of template syntax. You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here.
See also: Preferred usage guidelines | Blank infobox template page | Documentation page | Discussion page | Examples page

Usage

{{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

  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.

Examples

Parameters

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:

Basic setup parameters:
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
is in urban area?
If the road is wholly contained within an urban area, set |urban=yes. "yes" or empty
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 a bulleted list (which will display as a plain list).
state
state where the road is located (end_a)
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
state where the road is located (end_b)
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.
Image and map parameters:
Parameter
Description
Source/notes Values
route_image
route shield/box
  • Should only be used on articles about a route itself, not standard highways and roads (further information).
  • For noting routes allocated to a road, use route
  • For promotional logos, use |logo=
{{AUshield}} with |size= set (for shields),
or image filename without "File:" (for other images)
logo
route logo
Promotional logos can also be used here (subject to copyright considerations), see Majura Parkway as an example of this. image filename without "File:"
logo_upright
width of the route logo image
This is an optional field. If not specified, the image width will default to |upright=0.81, which is approximately 180px if the default thumbnail size has not been changed at Special:Preferences) The size should not be set to a value that would result in an image width greater than 270px. See help below for guidance on determining the value to be used. number
logo_alt
Alt text for the logo image wikitext (can contain links)
image
generic image of the road
image filename without "File:"
image_upright
width of image
This is an optional field. If not specified, the image width will default to |upright=1.23, which is approximately 270px if the default thumbnail size has not been changed at Special:Preferences) The size should not be set to a value that would result in an image width greater than 300px. See help below for guidance on determining the value to be used. number
caption
image caption
a caption for the image wikitext (can contain links)
image_alt
alt text
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:"
mapframe
show mapframe map?
A mapframe map showing the location of the road will display by default if both location is not set, and the page's Wikidata item has a coordinate location (P625) statement. The road itself may be highlighted on the map, depending on whether an appropriate OSM relation both exists and is tagged with the relevant Misplaced Pages page / Wikidata item (see mw:Help:Extension:Kartographer/OSM for further details). To turn off the mapframe map, set |mapframe=no "no" or leave blank
Additional parameters for mapframe map
  • Basic parameters:
    • mapframe – Specify yes or no to show or hide the map, overriding the default. Default: on if |location= is not set
    • mapframe-caption – Caption for the map. Default: value in |loc_caption= or blank (or if |mapframe-geomask= is set, "Location in geomask's label")
    • mapframe-custom – Use a custom map instead of the automatic mapframe. Specify either a {{maplink}} template, or another template that generates a mapframe map, or an image name. If used, the subsequent mapframe parameters will be ignored. Default: not specified
    • mapframe-id or id or qid – Id (Q-number) of Wikidata item to use. Default: item for current page
    • mapframe-coordinates or mapframe-coord or coordinates or coord – Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template, e.g. |coord={{Coord|12.34|N|56.78|E}}. Default: coordinates from Wikidata
    • mapframe-wikidata – Set to yes to show shape/line features from the wikidata item, if any, when |coord= is set. Default: not specified
  • Customise which features are displayed:
    • mapframe-shape – Turn off display of shape feature by setting to none. Use an inverse shape (geomask) instead of a regular shape by setting to inverse. Default: not specified
    • mapframe-point – Turn off display of point feature by setting to none. Force point marker to be displayed by setting to on. Default: not specified
    • mapframe-line – Turn off display of line feature by setting to none. Default: not specified
    • mapframe-geomask – Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number), or a property that specifies the item to use (e.g. P17 for country (P17), P131 for located in the administrative territorial entity (P131)). Default: not specified
    • mapframe-switcher – set to auto or geomasks or zooms to enable Template:Switcher-style switching between multiple mapframes. Default: not specified
      • auto – switch geomasks found in location (P276) and located in the administrative territorial entity (P131) statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country.
      • geomasks – switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameter
      • zooms – switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of 3), "zoomed out" is 1, and "zoomed midway" is the average
  • Other optional parameters:
    • mapframe-frame-width or mapframe-width – Frame width. Default: 270
    • mapframe-frame-height or mapframe-height – Frame height. Default: 200
    • mapframe-shape-fill – Color used to fill shape features. Default: #606060
    • mapframe-shape-fill-opacity – Opacity level of shape fill, a number between 0 and 1. Default: 0.5
    • mapframe-stroke-color or mapframe-stroke-colour – Color of line features, and outlines of shape features. Default: #ff0000
    • mapframe-stroke-width – Width of line features, and outlines of shape features; default is "5". Default: 5
    • mapframe-marker – Marker symbol to use for coordinates; see mw:Help:Extension:Kartographer/Icons for options. Default: not specified (i.e. blank)
      • Can also be set to blank to override any default marker symbol
    • mapframe-marker-color or mapframe-marker-colour – Background color for the marker. Default: #5E74F3
    • mapframe-geomask-stroke-color or mapframe-geomask-stroke-colour – Color of outline of geomask shape. Default: #555555
    • mapframe-geomask-stroke-width – Width of outline of geomask shape. Default: 2
    • mapframe-geomask-fill – Color used to fill outside geomask features. Default: #606060
    • mapframe-geomask-fill-opacity – Opacity level of fill outside geomask features, a number between 0 and 1. Default: 0.5
    • mapframe-zoom – Set the zoom level, from "1" (map of earth) to "18" (maximum zoom in), to be used if the zoom level cannot be determined automatically from object length or area. Default: 10
    • mapframe-length_km or mapframe-length_mi or mapframe-area_km2 or mapframe-area_mi2 – Determine zoom level by passing in object's length (in kilometres or miles) or area (in square kilometres or square miles). Default: not specified
    • mapframe-frame-coordinates or mapframe-frame-coord – Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}. Default: derived from item coordinates
loc_caption
location map caption
a caption for the location map wikitext (can contain links)
location_alt
alt text
Alt text for the location map
map_type
controls the location map
set to nomap to suppress any automatically generated location map nomap, auto, or blank
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
use national locator 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
use LGA locator 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
use relief locator map?
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_a
end_a road coordinates
For coordinates, use {{coord}} with display=inline. Please do not be overly precise.
Example:
{{Coord|32|45|41.3|S|151|44|38.6|E|type:landmark_region:AU-NSW|display=inline}}
coordinates_b
end_b road coordinates
For coordinates, use {{coord}} with display=inline. Please do not be overly precise.
Example:
{{Coord|32|45|41.3|S|151|44|38.6|E|type:landmark_region:AU-NSW|display=inline}}
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
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
Alt text for the locator map wikitext (can contain links)
General information parameters:
Parameter
Description
Source/notes Values
length
road length
length of the road in km unformatted numeric value, will be formatted if length >= 1000.
length_rnd
rounding
Number of decimal places for round the converted length value. Normally not needed – only use if the default precision is not appropriate 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
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 date
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
road history
brief, significant notes about the road's history that should be expanded upon in the prose, and not be a replacement for it.
route
routes
route allocation route shield, wikitext (can contain links)
former
former route information
Information about former route designation, etc.
upcoming
upcoming route information
Information about upcoming 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. 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.
Junction information parameters: (only use with type=junction)
Parameter
Description
Source/notes Values
jtype
type of junction
Type of road junction. See Category:Road junction types for examples. wikitext (can contain links)
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
roads
roads at the junction
List of roads at the road junction. Use a bulleted list (which will display as a plain list). wikitext (can contain links)
Junction list parameters:
Parameter
Description
Source/notes Values
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
road direction
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
road end
location of the other end of the road. For split roads, instead use end_b1, end_b2 and end_b3
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
exits/interchanges
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)
Location parameters:
Parameter
Description
Source/notes Values
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 a bulleted list (which will display as a plain list). wikitext (can contain links)
through
suburbs/settlements
List of suburbs and other settlements through which the road passes. For multiple locations, use a bulleted list (which will display as a plain list).
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)
Highway system parameters:
Parameter
Description
Source/notes Values
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 parameters:
Parameter
Description
Source/notes Values
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

TemplateData documentation used by VisualEditor and other tools
See a monthly parameter usage report for Template:Infobox Australian road in articles based on its TemplateData.

TemplateData for Infobox Australian road

An infobox template for Australian road articles.

Template parameters

ParameterDescriptionTypeStatus
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"

Suggested values
highway road rural road street expressway freeway motorway parkway track junction
Stringrequired
in urban area?urban

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

Unknownoptional
type of junctionjtype

Type of road junction

Unknownoptional
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"

Stringoptional
name of roadroad_name name

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

Stringsuggested
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 a bulleted list.

Unknownoptional
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.

Unknownoptional
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".

Suggested values
sa vic nsw qld nt wa tas act jbt
Stringsuggested
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".

Suggested values
sa vic nsw qld nt wa tas act jbt
Stringoptional
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

Unknownoptional
image of roadimage

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

Fileoptional
width of imageimagesize

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

Numberoptional
image captioncaption

a caption for the image

Unknownoptional
alt text for imageimage_alt

alt text for the image. See ] for guidance

Unknownoptional
alt text for imagealt

alt text for image or location map image

Unknowndeprecated
location map imagelocation

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

Unknownoptional
location map captionloc_caption

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

Unknownoptional
alt text for location maplocation_alt

alt text for the location map image. See ] for guidance

Unknownoptional
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.

Unknownoptional
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.

Unknownoptional
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.

Unknownoptional
reliefrelief

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

Unknownoptional
end_a coordinatescoordinates_a

end_a coordinates. Use {{coord}}.

Unknownoptional
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)

Unknownoptional
end_b coordinatescoordinates_b

end_b coordinates. Use {{coord}}.

Unknownoptional
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)

Unknownoptional
locator map captionpushpin_map_caption

a caption for the locator map

Unknownoptional
alt text for locator mapmap_alt

alt text for the locator map. See ] for guidance

Unknownoptional
date openedest

date or year that the road was opened

Unknownsuggested
date closedclosed

date or year that the road was closed

Unknownoptional
gazetted dategazetted

Date that the road was gazetted

Unknownoptional
gazettal referencegazetted_ref

Reference for the road's gazettal

Unknownoptional
construction detailsbuilt_by

Name of the company or authority that built the road

Unknownoptional
maintenance authoritymaintained

Name of the authority that maintains the road

Unknownoptional
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.

Unknownoptional
road lengthlength

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

Numberoptional
length roundinglength_rnd

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

Numberoptional
length referencelength_ref

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

Unknownoptional
road junction heightheight

height of the road junction in metres

Unknownoptional
height roundingheight_rnd

single integer numeric value

Unknownoptional
height referenceheight_ref

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

Unknownoptional
number of spansspans

number of bridge spans at the road junction

Numberoptional
roads at the junctionroads

For a road junction, list of roads at the junction. Use a bulleted list.

Unknownoptional
route number(s)route

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

Unknownsuggested
former route informationformer

Information about former route designation, etc.

Unknownoptional
upcoming route informationupcoming

Information about upcoming route designation, etc.

Unknownoptional
tourist routestourist

a list of the tourist routes that follow the road

Unknownoptional
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.

Unknownoptional
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.

Unknownoptional
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.

Unknownsuggested
end of roadend_a

intersecting road and location of the end of the road.

Unknownsuggested
major exits/intersectionsexits

list of major exits/interchanges. Use a bulleted list.

Unknownsuggested
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.

Unknownsuggested
other end of roadend_b

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

Unknownsuggested
section1section1

no description

Unknownoptional
splitsplit

no description

Unknownoptional
direction_a1direction_a1

no description

Unknownoptional
end_a1end_a1

no description

Unknownoptional
exits1exits1

no description

Unknownoptional
direction_b1direction_b1

no description

Unknownoptional
end_b1end_b1

no description

Unknownoptional
directiondirection

no description

Unknownoptional
section2section2

no description

Unknownoptional
direction_a2direction_a2

no description

Unknownoptional
end_a2end_a2

no description

Unknownoptional
exits2exits2

no description

Unknownoptional
direction_b2direction_b2

no description

Unknownoptional
end_b2end_b2

no description

Unknownoptional
section3section3

no description

Unknownoptional
direction_a3direction_a3

no description

Unknownoptional
end_a3end_a3

no description

Unknownoptional
exits3exits3

no description

Unknownoptional
direction_b3direction_b3

no description

Unknownoptional
end_b3end_b3

no description

Unknownoptional
LGA(s)lga

LGA(s) through which the road passes. For multiple LGAs, use a bulleted list.

Unknownoptional
region(s)region

region(s) through which the road passes

Unknownoptional
suburbs/settlementsthrough

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

Unknownoptional
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.

Unknownoptional
permits requiredpermit

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

Unknownoptional
fuel availabilityfuel

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

Unknownoptional
facilities availablefacilities

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

Unknownoptional
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)

Unknownoptional
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"

Unknownoptional

Notes

Type

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

Colour |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

Calculating "image_upright"

The |image_upright= parameter, and |image2_upright= and |logo_upright= where applicable, are provided so as to facilitate the use of scalable images in this infobox, in accordance with the instructions at WP:IMAGESIZE, which advises against the use of "px" (for example: thumb|300px), as this forces a fixed image width.

Scalable images respect the user's base preference, which may have been selected for that user's particular devices. Module:InfoboxImage, which is used in this infobox, accommodates the use of scaling. However, setting the appropriate scale is slightly more complex than setting a raw "px" value. This guide provides a quick conversion table to make the process of setting a scale easier. It is based on a default thumbnail setting of 220px.

  • 170pxupright=0.75
  • 180pxupright=0.8
  • 190pxupright=0.85
  • 200pxupright=0.9
  • 210pxupright=0.95
  • 220pxupright=1
  • 230pxupright=1.05
  • 240pxupright=1.1
  • 250pxupright=1.15
  • 260pxupright=1.2
  • 270pxupright=1.23
  • 280pxupright=1.25
  • 290pxupright=1.3
  • 300pxupright=1.35

"Ref" fields

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

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.

Tracking categories

Subpages

Microformat

The HTML markup produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue articles across Misplaced Pages, 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 Misplaced Pages, please see the microformat project.

Sub-templates

If the place or venue has "established", "founded", "opened" or similar dates, use {{start date}} for the earliest of those dates unless the date is before 1583 CE.

If it has a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

Classes

hCard uses HTML classes including:

  • adr
  • agent
  • category
  • county-name
  • extended-address
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • region
  • street-address
  • uid
  • url
  • 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.

Precision

When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name= parameter.

The above documentation is transcluded from Template:Infobox Australian road/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template. Category: