Template:Jcon
![]() | This template uses Lua: |
Jcon (Junction Ontario) is used to display information about junctions in Ontario. The template is similar to {{jct}}, but with some added Ontario-relevant functionality not available in that template. The template is designed to represent Ontario highways and numbered county and regional roads.
The template can display concurrent roads in the same system (or a different one using |contype=
) with use of |con=
,|con2=
, etc. 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.
Usage
{{jcon|<type>|<number>|<name>|dir=|shield=|sign=|tch=|city=|city2=|...|con=|condir=|contype=|con2=|condir2=|contype2=|...|to=|todir=|totype=|to2=|todir2=|totype2=|...|toname=|via=|viadir=|viatype=|via2=|viadir2=|viatype2=|...|vianame=|nosh=|notext=|nolink=|ot=|fulltext=|namefirst=|size=|showred=|picaft=}}
Parameters
Route information
|1=
- The type of the route. If the road is a provincial highway, enterHwy
orHighway
. 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 at #Supported types and new ones can be added at Module:Jcon/data.|2=
- The number of the route or the name if|1=
refers to a sign.|3=
- The name of the road if it is different from its numbered designation.|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).
Output type
|shield=
- Set to a truthy value to 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.
|sign=
- The name of an MTO sign to add to the shield output. See the signs listed at #Supported types for options.|tch=
- Set to a truthy value to add the shield and link for the Trans-Canada Highway.
Control cities
|city=
/|town=
- The name of the control city on the sign at the intersection. This is automatically wikilinked.|city<i>=
/|town<i>=
- Additional control cities where <i> is a number starting from 2.
Concurrencies
Concurrency parameters follow the same format as the parameters listed in #Route information. When a concurrency type is not specified, the type of the first route is used.
|con=
- The number of the currency. The number entered should be higher than the one entered for|2=
.|con<i>=
- Additional concurrencies where <i> is a number starting from 2. Concurrencies should be in ascending order.
|condir=
- The direction of the concurrency.|condir<i>=
- The direction of additional concurrencies where <i> is a number starting from 2.
|contype=
- The type of the concurrency, defaults to the type of the first route. Since King's Highways supersede county routes, concurrencies only exist within the same system, but contype can still be used for roads that cross country boundaries.|contype<i>=
- The type of the <i>th (additional) concurrency, defaults to the type of the first route.
To
To parameters follow the same format as the parameters listed in #Route information. When a type is not specified, the type of the first normal route is used.
|to=
- The number of the to route. Appears likeHighway 7 to Highway 23.
|to<i>=
- Additional to routes/concurrencies where <i> is a number starting from 2. Routes should be in ascending order.
|toname=
- The name of the to route.|todir=
- The direction of the to route.|todir<i>=
- The direction of additional to routes where <i> is a number starting from 2.
|totype=
- The type of the to route, defaults to the type of the first route.|totype<i>=
- The type of the <i>th (additional) to route, defaults to the type of the first route.
Via
Via parameters follow the same format as the parameters listed in #Route information. When a type is not specified, the type of the first normal route is used.
|via=
- The number of the via route. Appears likeVia
Highway 401 via Highway 416. Used most commonly for 400-series highways.
|via<i>=
- Additional via routes/concurrencies where <i> is a number starting from 2. Routes should be in ascending order.
|vianame=
- The name of the via route.|viadir=
- The direction of the via route.|viadir<i>=
- The direction of additional via routes where <i> is a number starting from 2.
|viatype=
- The type of the via route, defaults to the type of the first route.|viatype<i>=
- The type of the <i>th (additional) via route, defaults to the type of the first route.
Appearance
|nosh=
- Set to a truthy value to not display the shield. This is useful for prose, where icons are considered intrusive and not permitted.|notext=
- Set to a truthy value to not show the route name/only show the shield.|nolink=
- Set to a truthy value to prevent the road name from being linked.|ot=
- Set to a truthy value to hide the shield and remove the link, resulting in plain text.|fulltext=
- Set to a truthy value to show the full link name.|namefirst=
- Swap the route name and the name given by|3=
,|toname=
, and|vianame=
. Like what {{jctname}} does for {{jct}}.|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 to display a larger version of a county road sign. The default is 20px.|showred=
- Set to a truthy value to show redlinks.|picaft=
- Set to a truthy value to move the shields to the end of the output.
Examples
Code | Result |
---|---|
{{Jcon|Simcoe|42}} |
![]() |
{{Jcon|York|68|Markham Road}} |
![]() |
{{Jcon|york|68|Markham Road|shield=y}} |
![]() |
{{Jcon|Hwy|7|con=12|Baldwin Street}} |
![]() ![]() |
{{Jcon|Hwy|7|con=12|Baldwin Street|shield=y}} |
![]() ![]() |
{{Jcon|Peel|7|con=18|contype=Dufferin}} |
![]() ![]() |
{{Jcon|Highway|35|nosh=y}} |
Highway 35 |
{{Jcon|Toll|407|dir=east}} |
![]() |
{{Jcon|Toll|407ETR|dir=west}} |
![]() |
{{Jcon|Toronto|DVP}} |
![]() |
{{Jcon|Ottawa|11|Moodie Drive|nosh=y|nolink=y}} |
Road 11 (Moodie Drive) |
{{Jcon|Hwy|QEW|size=40px|notext=y}} |
![]() |
{{Jcon|Durham|23|ot=y|fulltext=y}} |
Durham 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}} |
![]() ![]() ![]() |
{{Jcon|Hwy|6|con=21|con2=26|town=Collingwood|picaft=y}} |
Highway 6 / Highway 21 / Highway 26 – Collingwood ![]() ![]() ![]() |
{{Jcon|Highway|17|tch=y}} |
![]() ![]() |
{{Jcon|Hwy|11|sign=bus}} |
![]() ![]() |
{{Jcon|Airport|[[Pearson Airport|Pearson]]}} |
![]() |
{{Jcon|Hwy|to=12}} |
![]() |
{{Jcon|Hwy|7|to=23}} |
![]() ![]() |
{{Jcon|Hwy|401|dir=east|via=409}} |
![]() ![]() |
Feature differences
- Functions in an Ontario context
- Reassurance markers using
|shield=y
- Support for 400-series "Via" signage
- Reuses the first road type for concurrencies etc.
- Nameless parameter for street names
- Case-insensitive types
Feature demos
Reassurance markers
{{Jcon|Simcoe|42|shield=y}}
→County Road 42
- N/A
400-series "Via"
{{Jcon|Hwy|401|via=409}}
→Via
Highway 401 via Highway 409
- N/A
Same type concurrencies
{{Jcon|Hwy|6|con=21|con2=26}}
→Highway 6 / Highway 21 / Highway 26
{{Jct|province=ON|Hwy|6|Hwy|21|Hwy|26}}
→Highway 6 / Highway 21 / Highway 26
Street names nameless parameter
{{Jcon|Simcoe|42|Markham Road}}
→County Road 42 (Markham Road)
{{Jct|province=ON|Simcoe|42|name1=Markham Road}}
→County Road 42 (Markham Road)
Parameter differences
Mixed jurisdiction concurrencies
{{Jcon|Peel|7|con=18|contype=Dufferin}}
→Regional Road 7 / County Road 18
{{Jct|province=ON|Peel|7|Dufferin|18}}
→Regional Road 7 / County Road 18
To routes
{{Jcon|Hwy|7|to=23}}
→Highway 7 to Highway 23
{{Jct|province=ON|Hwy|7|Hwy|23|to2=y}}
→Highway 7 to Highway 23
MTO signs
{{Jcon|Hwy|409|sign=airport}}
→Highway 409
{{Jct|province=ON|Hwy|409|extra=airport}}
→Highway 409
Supported types
TemplateData
TemplateData for Jcon
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 on the documentation page. | String | required |
Route number | 2 | The number of the route. | Number | suggested |
Road name | 3 | The name of the road if it is different from its numbered designation. | String | 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 |
Sign | sign | The name of an MTO sign to add to the shield output.
| String | optional |
Trans-Canada Highway | tch | Set to a truthy value to add the shield and link for the Trans-Canada Highway. | Boolean | 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). | String | optional |
Control city | city town | The name of the control city on the sign at the intersection. This is automatically wikilinked. | String | optional |
Control city 2 | city2 town2 | Name of the second control city. This is automatically wikilinked. | String | optional |
Control city 3 | city3 town3 | Name of the second control city. This is automatically wikilinked. | String | optional |
Concurrency | con | Route number of the first concurrency. The number entered under the con parameter should be the higher of the two. | Number | optional |
Concurrency 2 | con2 | Route number of the second concurrency. The number entered under the con2 parameter should be the higher of the three. | Number | optional |
Concurrency 3 | con3 | Route number of the third concurrency. The number entered under the con3 parameter should be the higher of the four. | Number | optional |
Concurrency direction | condir | Same as |dir=, but for the first concurrency. | String | optional |
Concurrency 2 direction | condir2 | Same as |dir=, but for the second concurrency. | String | optional |
Concurrency 3 direction | condir3 | Same as |dir=, but for the third concurrency. | String | optional |
Concurrency type | contype | The road type of the first concurrency. Since King's Highways supersede county routes, concurrencies only exist within the same system, but contype can still be used for roads that cross country boundaries. | String | optional |
Concurrency 2 type | contype2 | The road type of the second concurrency. Since King's Highways supersede county routes, concurrencies only exist within the same system, but contype can still be used for roads that cross country boundaries. | String | optional |
Concurrency 3 type | contype3 | The road type of the third concurrency. Since King's Highways supersede county routes, concurrencies only exist within the same system, but contype can still be used for roads that cross country boundaries. | String | optional |
To | to | Route number of the first to route. | Number | optional |
To 2 | to2 | Route number of a second to route/concurrency. Routes should be in ascending order. | Number | optional |
To 3 | to3 | Route number of a third to route/concurrency. Routes should be in ascending order. | Number | optional |
To name | toname | The name of the to route. | String | optional |
To direction | todir | Same as |dir=, but for the first to route. | String | optional |
To 2 direction | todir2 | Same as |dir=, but for the second to route. | String | optional |
To 3 direction | todir3 | Same as |dir=, but for the third to route. | String | optional |
To type | totype | The road type of the first to route. | String | optional |
To 2 type | totype2 | The road type of the second to route. | String | optional |
To 3 type | totype3 | The road type of the third to route. | String | optional |
Via | via | Route number of the first via route. Used most commonly for 400-series highways. | Number | optional |
Via name | vianame | The name of the via route. | String | optional |
Via 2 | via2 | Route number of a second via route/concurrency. Routes should be in ascending order. | Number | optional |
Via 3 | via3 | Route number of a third via route/concurrency. Routes should be in ascending order. | Number | optional |
Via direction | viadir | Same as |dir=, but for the first via route. | String | optional |
Via 2 direction | viadir2 | Same as |dir=, but for the second via route. | String | optional |
Via 3 direction | viadir3 | Same as |dir=, but for the third via route. | String | optional |
Via type | viatype | The road type of the first via route. | String | optional |
Via 2 type | viatype2 | The road type of the second via route. | String | optional |
Via 3 type | viatype3 | The road type of the third via route. | String | 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 |
Full text | fulltext | Set to a truthy value to show the full link name. | Boolean | optional |
Name first | namefirst | Swap the road name and the route name. | Boolean | 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. | String | optional |
Show redlinks | showred | Set to a truthy value to show redlinks. | Boolean | optional |
Picture after | picaft | Set to a truthy value to move the shields to the end of the output. | Boolean | optional |