Loading
  • 21 Aug, 2019

  • By, Wikipedia

Template:Jcon

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, 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 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 like  Highway 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 like Via  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}}  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|Peel|7|con=18|contype=Dufferin}}  Regional Road 7 / County Road 18
{{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|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 401Ajax
{{Jcon|Hwy|6|con=21|con2=26|town=Collingwood|city2=Owen Sound}}  Highway 6 / Highway 21 / Highway 26Collingwood, Owen Sound
{{Jcon|Hwy|6|con=21|con2=26|town=Collingwood|picaft=y}} Highway 6 / Highway 21 / Highway 26Collingwood
{{Jcon|Highway|17|tch=y}}  Highway 17 / TCH
{{Jcon|Hwy|11|sign=bus}}  Highway 11
{{Jcon|Airport|[[Pearson Airport|Pearson]]}}  Pearson
{{Jcon|Hwy|to=12}}  To Highway 12
{{Jcon|Hwy|7|to=23}}  Highway 7 to Highway 23
{{Jcon|Hwy|401|dir=east|via=409}} Via  Highway 401 east via Highway 409

Differences with Jct and Jctname

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

400-series "Via"

Same type concurrencies

Street names nameless parameter

  • {{Jct|province=ON|Simcoe|42|name1=Markham Road}} County Road 42 (Markham Road)

Parameter differences

Mixed jurisdiction concurrencies

To routes

MTO signs

  • {{Jct|province=ON|Hwy|409|extra=airport}} Highway 409

Supported types

Note: All inputs are converted to lowercase by the template and "Region of", "County Road", etc. are striped from the input.
TypeRoute name
A
Autoroute %route%
ABSK
Highway %route%
BCAB
Highway %route%
BCAB 1960
Highway %route%
BCH
Brant County Highway
Brant County Highway %route%
Both
Brant
Brant County Road %route%
Bruce
Bruce County Road %route%
C Frontenac
Central Frontenac
Central Frontenac Township Road %route%
Carleton
Carleton County Road %route%
CH
%county% County Highway %route%
Chatham Kent
Chatham-Kent
CK
Chatham-Kent Municipal Road %route%
CKL
Kawartha Lake
Kawartha Lakes
KL
klinfo
KLR
Kawartha Lakes Road %route%
Cornwall
Cornwall Municipal Road %route%
County
CR
%county% County Road %route%
CQW
Quinte West
QW
qwinfo
Quinte West Municipal Road %route%
District
DR
%county% District Road %route%
DRH
Durham Regional Highway
Durham Regional Highway %route%
Dufferin
Dufferin County Road %route%
Durham
Durham Regional Road %route%
Elgin
Elgin County Road %route%
Essex
Essex County Road %route%
ETR
Expressway
%route%
FI
Frontenac Islands
Frontenac Islands Township Road %route%
Frontenac
Frontenac County Road %route%
Fwy
Highway %route%
Greater Sudbury
GS
SB
Sudbury
Greater Sudbury Municipal Road %route%
Grey
Grey County Road %route%
Haldimand
Haldimand County Road %route%
Haldimand County Highway
HCH
Haldimand County Highway %route%
Haliburton
HH
Haliburton County Road %route%
Halton
Halton Regional Road %route%
Hamilton
Hamilton City Road %route%
Hamilton Regional Road
HRR
Hamilton Regional Road %route%
Hastings
Hastings County Road %route%
Highway
Hwy
ON
Highway %route%
Huron
Huron County Road %route%
I
Interstate %route%
Kingston
Kingston Road %route%
LA
Lennox and Addington
Lennox and Addington County Road %route%
Lambton
Lambton County Road %route%
Lanark
Lanark County Road %route%
Leeds and Grenville
LG
Leeds and Grenville County Road %route%
Middlesex
Middlesex County Road %route%
MR
Municipal
%county% Municipal Road %route%
Muskoka
Muskoka District Road %route%
N Dumfries
North Dumfries
North Dumfries Township Road %route%
N Frontenac
North Frontenac
North Frontenac Township Road %route%
NCC
%route%
NCH
Norfolk County Highway
Norfolk County Highway %route%
Niagara
Niagara Regional Road %route%
Norfolk
Norfolk County Road %route%
Northumberland
Northumberland County Road %route%
NY
New York State Route %route%
OC
Ottawa-Carleton
Ottawa–Carleton Regional Road %route%
ON 1960
King's Highway %route%
Ottawa
Ottawa Road %route%
Oxford
Oxford County Road %route%
Parkway
%route% Parkway
PB
Peterborough
Peterborough County Road %route%
PCL
Perth
Perth County Line
Perth County Line %route%
PEC
Prince Edward
Prince Edward County Road %route%
Peel
Peel Regional Road %route%
PR
Prescott and Russell
Prescott and Russell County Road %route%
QEW
Queen Elizabeth Way
Regional
RR
%county% Regional Road %route%
Renfrew
Renfrew County Road %route%
RH
%county% Regional Highway %route%
road
%route%
S Frontenac
South Frontenac
South Frontenac Township Road %route%
SDG
Stormont Dundas and Glengarry
Stormont, Dundas and Glengarry
Stormont, Dundas, Glengarry
Stormont, Dundas and Glengarry County Road %route%
Sec
Secondary
Highway %route%
Shield
Highway %route%
Simcoe
Simcoe County Road %route%
SKMB
Highway %route%
TCH
Trans-Canada Highway
Ter
Tertiary
Highway %route%
TO
Tor
Toronto
%route%
Toll
Highway %route%
Toll Shield
TS
Highway %route%
Tour
Great Lakes Circle Tour
Tyendinaga
Tyendinaga Township Road %route%
Waterloo
Waterloo Regional Road %route%
Wellesley
Wellesley Township Road %route%
Wellington
Wellington County Road %route%
Wilmot
Wilmot Township Road %route%
Wollaston
Wollaston Township Road %route%
Woolwich
Woolwich Township Road %route%
York
YR
York Regional Road %route%
train
bus
ferry
hospital
tch
train station
airport
Table produced by Module:Jcon/documentation with data from Module:Road data/strings/CAN/ON (edit).

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Jcon in articles based on its TemplateData.

TemplateData for Jcon

Template used to represent Ontario highways and numbered county roads.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Route type1

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.

Stringrequired
Route number2

The number of the route.

Numbersuggested
Road name3

The name of the road if it is different from its numbered designation.

Stringoptional
Shieldshield

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.

Booleanoptional
Signsign

The name of an MTO sign to add to the shield output.

Example
airport
Stringoptional
Trans-Canada Highwaytch

Set to a truthy value to add the shield and link for the Trans-Canada Highway.

Booleanoptional
Directiondir

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

Stringoptional
Control citycity town

The name of the control city on the sign at the intersection. This is automatically wikilinked.

Stringoptional
Control city 2city2 town2

Name of the second control city. This is automatically wikilinked.

Stringoptional
Control city 3city3 town3

Name of the second control city. This is automatically wikilinked.

Stringoptional
Concurrencycon

Route number of the first concurrency. The number entered under the con parameter should be the higher of the two.

Numberoptional
Concurrency 2con2

Route number of the second concurrency. The number entered under the con2 parameter should be the higher of the three.

Numberoptional
Concurrency 3con3

Route number of the third concurrency. The number entered under the con3 parameter should be the higher of the four.

Numberoptional
Concurrency directioncondir

Same as |dir=, but for the first concurrency.

Stringoptional
Concurrency 2 directioncondir2

Same as |dir=, but for the second concurrency.

Stringoptional
Concurrency 3 directioncondir3

Same as |dir=, but for the third concurrency.

Stringoptional
Concurrency typecontype

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.

Stringoptional
Concurrency 2 typecontype2

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.

Stringoptional
Concurrency 3 typecontype3

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.

Stringoptional
Toto

Route number of the first to route.

Numberoptional
To 2to2

Route number of a second to route/concurrency. Routes should be in ascending order.

Numberoptional
To 3to3

Route number of a third to route/concurrency. Routes should be in ascending order.

Numberoptional
To nametoname

The name of the to route.

Stringoptional
To directiontodir

Same as |dir=, but for the first to route.

Stringoptional
To 2 directiontodir2

Same as |dir=, but for the second to route.

Stringoptional
To 3 directiontodir3

Same as |dir=, but for the third to route.

Stringoptional
To typetotype

The road type of the first to route.

Stringoptional
To 2 typetotype2

The road type of the second to route.

Stringoptional
To 3 typetotype3

The road type of the third to route.

Stringoptional
Viavia

Route number of the first via route. Used most commonly for 400-series highways.

Numberoptional
Via namevianame

The name of the via route.

Stringoptional
Via 2via2

Route number of a second via route/concurrency. Routes should be in ascending order.

Numberoptional
Via 3via3

Route number of a third via route/concurrency. Routes should be in ascending order.

Numberoptional
Via directionviadir

Same as |dir=, but for the first via route.

Stringoptional
Via 2 directionviadir2

Same as |dir=, but for the second via route.

Stringoptional
Via 3 directionviadir3

Same as |dir=, but for the third via route.

Stringoptional
Via typeviatype

The road type of the first via route.

Stringoptional
Via 2 typeviatype2

The road type of the second via route.

Stringoptional
Via 3 typeviatype3

The road type of the third via route.

Stringoptional
No shieldnosh

Set to a truthy value to not display the shield. This is useful for prose, where icons are considered intrusive and not permitted.

Booleanoptional
No textnotext

Set to a truthy value to not show the route name/only show the shield.

Booleanoptional
No linknolink

Set to a truthy value to prevent the road name from being linked.

Booleanoptional
Only textot

Set to a truthy value to hide the shield and remove the link, resulting in plain text.

Booleanoptional
Full textfulltext

Set to a truthy value to show the full link name.

Booleanoptional
Name firstnamefirst

Swap the road name and the route name.

Booleanoptional
Shield sizesize

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.

Stringoptional
Show redlinksshowred

Set to a truthy value to show redlinks.

Booleanoptional
Picture afterpicaft

Set to a truthy value to move the shields to the end of the output.

Booleanoptional

See also