Template:Jcon/doc

From the AARoads Wiki: Read about the road before you go
Jump to navigation Jump to search

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

To get the same output with {{Jct}}, use:

{{Jct|province=ON|<type>|<number>|dir1=<dir>|name1=<name>|<type>|<con>|dir2=<condir>|<type>|con2>|dir3=<condir2>|city#=<city>|city#=<city2>|location#=<town>|location#=<town2>|noshield=<nosh>|nolink=<nolink>}}

Notes:

{{{con}}} and {{{con2}}} are the same type as {{{1}}}, so you would have to add {{{3}}} and {{{5}}} to {{Jct}}
{{{ot}}} will work soon
{{{tch}}} is handled by |1=TCH

Usage

<templatedata> { "description": "Template used to represent Ontario highways and numbered county roads", "format": "inline", "params": { "1": { "label": "Route type", "description": "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.", "type": "line", "required": true }, "2": { "label": "Route number", "description": "The number of the route.", "type": "number", "required": true }, "3": { "label": "Road name", "description": "The name of the road if it is different from its numbered designation.", "type": "line" }, "con": { "label": "Concurrency ", "description": "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.", "type": "number" }, "con2": { "label": "Concurrency 2", "description": "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.", "type": "number" }, "nosh": { "label": "No shield", "description": "Set to a truthy value to not display the shield. This is useful for prose, where icons are considered intrusive and not permitted.", "type": "boolean" }, "nolink": { "label": "No link", "description": "Set to a truthy value to prevent the road name from being linked.", "type": "boolean" }, "notext": { "label": "No text", "description": "Set to a truthy value to not show the route name/only show the shield.", "type": "boolean" }, "size": { "label": "Shield size", "description": "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.", "type": "line" }, "ot": { "label": "Only text", "description": "Set to a truthy value to hide the shield and remove the link, resulting in plain text.", "type": "boolean" }, "city": { "aliases": [ "town" ], "label": "City", "description": "The name of the control city o the sign at the intersection. This is automatically wikilinked.", "type": "line" }, "city2": { "aliases": [ "town2" ], "label": "City 2", "description": "Name of the second control city", "type": "line" }, "dir": { "label": "Direction", "description": "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).", "type": "line" }, "condir": { "label": "Concurrency direction", "description": "Same as |dir=, but for the first concurrency", "type": "line" }, "condir2": { "label": "Concurrency 2 direction", "description": "Same as |dir=, but for the second concurrency", "type": "line" }, "pic aft": { "label": "Picture after", "description": "Set to a truthy value to move the shields to the end of the output", "type": "boolean" }, "showred": { "label": "Show redlinks", "description": "Set to a truthy value to show redlinks", "type": "boolean" }, "shield": { "label": "Shield", "description": "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.", "type": "boolean" }, "tch": { "label": "Trans-Canada Highway", "description": "Set to a truthy value to add the shield and link for the Trans-Canada Highway", "type": "boolean" } }, "paramOrder": [ "1", "2", "3", "shield", "con", "con2", "city", "city2", "dir", "condir", "condir2", "size", "nosh", "notext", "nolink", "ot", "tch", "showred", "pic aft" ] } </templatedata>

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}} City 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}}  TCH-blank.svg Highway 17 / TCH
{{Jcon|Hwy|QEW|shield=yes}}  Queen Elizabeth Way
{{Jcon|Bus}} [[w:Bus station|Bus station]] Ontario M506.svg Bus station
{{Jcon|Airport}} [[w:Pearson Airport|Pearson Airport]] Ontario M502.svg 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)
  • 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 Regional 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 Bruce 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 City 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 Ontario M506.svg
  • ferry Ontario M508.svg
  • hospital Ontario M401.svg
  • tch TCH-blank.svg
  • train station / train Ontario M509.svg
  • airport Ontario M502.svg

See also