Template:Jcon/doc

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 y. This can be used when a road continues as another road or when this template is used in a list of routes.



Usage
{	"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" ] }

Supported types
Note: All inputs are converted to lowercase by the template. "Region of", "County Road", etc. are striped from the input.