Template:Jcon/doc

From Wikipedia, the free encyclopedia

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=}}

Usage[edit]

Template used to represent Ontario highways and numbered county roads

Template parameters

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

Linerequired
Route number2

The number of the route.

Numberrequired
Road name3

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

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

Numberoptional
Concurrency 2con2

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.

Numberoptional
Citycity town

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

Lineoptional
City 2city2 town2

Name of the second control city

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

Lineoptional
Concurrency directioncondir

Same as |dir=, but for the first concurrency

Lineoptional
Concurrency 2 directioncondir2

Same as |dir=, but for the second concurrency

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

Lineoptional
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
Trans-Canada Highwaytch

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

Booleanoptional
Show redlinksshowred

Set to a truthy value to show redlinks

Booleanoptional
Picture afterpic aft

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

Booleanoptional

Examples[edit]

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 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|pic aft=y}} Highway 6 / Highway 21 / Highway 26Collingwood   
{{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[edit]

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

See also[edit]