Template:Jcon
This template uses Lua: |
Jcon is a function that is used to display information about junctions in Ontario. The template is similar to {{
|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=}}
Usage
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 |
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|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}} |
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
|
Supported types
Note: All inputs are converted to lowercase by the template. "Region of", "County Road", etc. are striped from the input.
- wellesley (Wellesley Township Road)
- hamilton regional road / hrr (Hamilton Regional Road)
- kawartha lakes / ckl / klinfo / kawartha lake / kl (Kawartha Lakes Road)
- dufferin (Dufferin County Road)
- wellington (Wellington County Road)
- huron (Huron County Road)
- york / yr (York Regional Road)
- muskoka (Muskoka District Road)
- sudbury / gs / sb / greater sudbury (Sudbury Municipal Road)
- norfolk county highway / nch (Norfolk County Highway)
- wilmot (Wilmot Township Road)
- perth (Perth County Road)
- waterloo (Waterloo Regional Road)
- frontenac islands / fi (Frontenac Islands Township Road)
- prince edward / pec (Prince Edward County Road)
- toronto / to / tor (Toronto Municipal Expressway)
- elgin (Elgin County Road)
- middlesex (Middlesex County Road)
- haliburton / hh (Haliburton County Road)
- brant county highway / bch (Brant County Highway)
- toll (Ontario Highway)
- woolwich (Woolwich Township Road)
- peel (Peel Regional Road)
- carleton (Carleton County Road)
- hamilton (Hamilton City Road)
- essex (Essex County Road)
- halton (Halton Regional Road)
- lanark (Lanark County Road)
- cornwall (Cornwall Municipal Road)
- stormont, dundas and glengarry / stormont dundas and glengarry / stormont, dundas, glengarry / sdg (Stormont, Dundas and Glengarry County Road)
- south frontenac / s frontenac (South Frontenac Township Road)
- lambton (Lambton County Road)
- hastings (Hastings County Road)
- bruce (Bruce County Road)
- quinte west / qwinfo / qw / cqw (Quinte West Municipal Road)
- wollaston (Wollaston Township Road)
- simcoe (Simcoe County Road)
- tyendinaga (Tyendinaga Township Road)
- north dumfries / n dumfries (North Dumfries Township Road)
- brant (Brant County Road)
- frontenac (Frontenac County Road)
- northumberland (Northumberland County Road)
- kingston (Kingston Road)
- leeds and grenville / lg (Leeds and Grenville County Road)
- durham (Durham Regional Road)
- perth county line / pcl (Perth County Line)
- ottawa-carleton / oc (Ottawa–Carleton Regional Road)
- oxford (Oxford County Road)
- haldimand (Haldimand County Road)
- lennox and addington / la (Lennox and Addington County Road)
- north frontenac / n frontenac (North Frontenac Township Road)
- durham regional highway / drh (Durham Regional Highway)
- grey (Grey County Road)
- highway / hwy (Ontario Highway)
- ottawa (Ottawa Road)
- peterborough / pb (Peterborough County Road)
- prescott and russell / pr (Prescott and Russell County Road)
- renfrew (Renfrew County Road)
- haldimand county highway / hch (Haldimand County Highway)
- niagara (Niagara Regional Road)
- central frontenac / c frontenac (Central Frontenac Township Road)
- norfolk (Norfolk County Road)
- chatham-kent / ck / chatham kent (Chatham-Kent Municipal Road)
- bus
- ferry
- hospital
- tch
- train station / train
- airport