This template uses Lua: |
Jcon is a function that is used to display information about junctions in Ontario. The template is similar to ((jct)), but with some added functionality not available in that template. The template is designed to represent Ontario highways and numbered county and regional roads. The name of the template stands for "Junction Ontario." It can display up to three concurrent roads (that are in the same system) with use of the |con=
and |con2=
parameters. The template can also be used to display the shield of a road by specifying |shield=y
. This can be used when a road continues as another road or when this template is used in a list of routes.
((jcon|<type>|<number>|<name>|shield=|con=|con2=|city=|city2=|dir=|condir=|condir2=|size=|nosh=|notext=|nolink=|ot=|tch=|showred=|pic aft=))
Template used to represent Ontario highways and numbered county roads
Parameter | Description | Type | Status | |
---|---|---|---|---|
Route type | 1 | The type of the road. If the road is a provincial highway, enter "Hwy" or "Highway". If the road is a numbered county route enter the county/region name without 'Region'/'County' etc. or an abbreviation. MTO signs like airport or bus are supported. All supported types are listed below. | Line | required |
Route number | 2 | The number of the route. | Number | required |
Road name | 3 | The name of the road if it is different from its numbered designation. | Line | optional |
Shield | shield | Set to a truthy value to generate reassurance markers instead of junction crowns. Use when a route continues as another route or when this template is used in a list of routes. | Boolean | optional |
Concurrency | con | Route number of a concurrency. Since King's Highways supersede county routes, concurrencies only exist within the same system. The number entered under the con parameter should be the higher of the two. | Number | optional |
Concurrency 2 | con2 | Route number of a second concurrency. Since King's Highways supersede county routes, concurrencies only exist within the same system. The number entered under the con parameter should be the higher of the three. | Number | optional |
City | city town | The name of the control city o the sign at the intersection. This is automatically wikilinked. | Line | optional |
City 2 | city2 town2 | Name of the second control city | Line | optional |
Direction | dir | If a junction only gives access to a road in a certain direction, enter that direction here, preferably as one of the cardinal directions (North, South, East, West). | Line | optional |
Concurrency direction | condir | Same as |dir=, but for the first concurrency | Line | optional |
Concurrency 2 direction | condir2 | Same as |dir=, but for the second concurrency | Line | optional |
Shield size | size | Sets the size of the shields. On the odd occasion, a larger size may be useful or required. For example, the template can be used as the value of the |browse_route= parameter of ((Infobox road)) to display a larger version of a county road sign. The default is 20px. | Line | optional |
No shield | nosh | Set to a truthy value to not display the shield. This is useful for prose, where icons are considered intrusive and not permitted. | Boolean | optional |
No text | notext | Set to a truthy value to not show the route name/only show the shield. | Boolean | optional |
No link | nolink | Set to a truthy value to prevent the road name from being linked. | Boolean | optional |
Only text | ot | Set to a truthy value to hide the shield and remove the link, resulting in plain text. | Boolean | optional |
Trans-Canada Highway | tch | Set to a truthy value to add the shield and link for the Trans-Canada Highway | Boolean | optional |
Show redlinks | showred | Set to a truthy value to show redlinks | Boolean | optional |
Picture after | pic aft | Set to a truthy value to move the shields to the end of the output | Boolean | optional |
Code | Result |
---|---|
((Jcon|Simcoe|42)) |
County Road 42 |
((Jcon|York|68|Markham Road)) |
Regional Road 68 (Markham Road) |
((Jcon|york|68|Markham Road|shield=y)) |
Regional Road 68 (Markham Road) |
((Jcon|Hwy|7|con=12|Baldwin Street)) |
Highway 7 / Highway 12 (Baldwin Street) |
((Jcon|Hwy|7|con=12|Baldwin Street|shield=y)) |
Highway 7 / Highway 12 (Baldwin Street) |
((Jcon|Highway|35|nosh=y)) |
Highway 35 |
((Jcon|Toll|407|dir=east)) |
Highway 407 east |
((Jcon|Toll|407ETR|dir=west)) |
407 ETR west |
((Jcon|Toronto|DVP)) |
Don Valley Parkway |
((Jcon|Ottawa|11|Moodie Drive|nosh=y|nolink=y)) |
Road 11 (Moodie Drive) |
((Jcon|Highway|11|size=30px)) |
Highway 11 |
((Jcon|hwy|11|size=30px|notext=y)) |
|
((Jcon|Durham|23|ot=y)) |
Regional Road 23 |
((Jcon|Hwy|401|nosh=y|town=Ajax)) |
Highway 401 – Ajax |
((Jcon|Hwy|6|con=21|con2=26|town=Collingwood|city2=Owen Sound)) |
Highway 6 / Highway 21 / Highway 26 – Collingwood, Owen Sound |
((Jcon|Hwy|6|con=21|con2=26|town=Collingwood|pic aft=y)) |
Highway 6 / Highway 21 / Highway 26 – Collingwood |
((Jcon|Highway|17|tch=y)) |
Highway 17 / TCH |
((Jcon|Hwy|QEW|shield=yes)) |
Queen Elizabeth Way |
((Jcon|Bus)) [[Bus station]] |
Bus station |
((Jcon|Airport)) [[Pearson Airport]] |
Pearson Airport |
Note: All inputs are converted to lowercase by the template. "Region of", "County Road", etc. are striped from the input.