Template:Jcon/sandbox/doc

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

Route information

 * 1 - The type of the route. If the road is a provincial highway, enter  or  . 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.
 * 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 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&lt;i&gt; / town&lt;i&gt; - Additional control cities where &lt;i&gt; is a number starting from 2.

Concurrencies
Concurrency parameters follow the same format as the parameters listed in. 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&lt;i&gt; - Additional concurrencies where &lt;i&gt; is a number starting from 2. Concurrencies should be in ascending order.
 * condir - The direction of the concurrency.
 * condir&lt;i&gt; - The direction of additional concurrencies where &lt;i&gt; 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&lt;i&gt; - The type of the &lt;i&gt;th (additional) concurrency, defaults to the type of the first route.

To
To parameters follow the same format as the parameters listed in. When a type is not specified, the type of the first normal route is used.
 * to - The number of the to route. Appears like.
 * to&lt;i&gt; - Additional to routes/concurrencies where &lt;i&gt; 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&lt;i&gt; - The direction of additional to routes where &lt;i&gt; is a number starting from 2.
 * totype - The type of the to route, defaults to the type of the first route.
 * totype&lt;i&gt; - The type of the &lt;i&gt;th (additional) to route, defaults to the type of the first route.

Via
Via parameters follow the same format as the parameters listed in. When a type is not specified, the type of the first normal route is used.
 * via - The number of the via route. Appears like . Used most commonly for 400-series highways.
 * via&lt;i&gt; - Additional via routes/concurrencies where &lt;i&gt; 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&lt;i&gt; - The direction of additional via routes where &lt;i&gt; is a number starting from 2.
 * viatype - The type of the via route, defaults to the type of the first route.
 * viatype&lt;i&gt; - The type of the &lt;i&gt;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.
 * 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.

Feature differences

 * Function in an Ontario context
 * Links to county and regional roads
 * Automatic road type (country, etc.) prefixes
 * Automatic same road type concurrencies
 * Better handling of the 407 ETR
 * More aliases, see
 * Reassurance markers using y
 * Support for 400-series "Via" signage

Reassurance markers

 * N/A

Via

 * N/A

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

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 on the documentation page.", "type": "string", "required": true },		"2": {			"label": "Route number", "description": "The number of the route.", "type": "number", "suggested": true },		"3": {			"label": "Road name", "description": "The name of the road if it is different from its numbered designation.", "type": "string" },		"con": { "label": "Concurrency", "description": "Route number of the first concurrency. The number entered under the con parameter should be the higher of the two.", "type": "number" },		"con2": { "label": "Concurrency 2", "description": "Route number of the second concurrency. The number entered under the con2 parameter should be the higher of the three.", "type": "number" },		"con3": { "label": "Concurrency 3", "description": "Route number of the third concurrency. The number entered under the con3 parameter should be the higher of the four.", "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": "string" },		"ot": { "label": "Only text", "description": "Set to a truthy value to hide the shield and remove the link, resulting in plain text.", "type": "boolean" },		"fulltext": { "label": "Full text", "description": "Set to a truthy value to show the full link name.", "type": "boolean" },		"city": { "aliases": [ "town" ],			"label": "Control city", "description": "The name of the control city on the sign at the intersection. This is automatically wikilinked.", "type": "string" },		"city2": { "aliases": [ "town2" ],			"label": "Control city 2", "description": "Name of the second control city. This is automatically wikilinked.", "type": "string" },		"city3": { "aliases": [ "town3" ],			"label": "Control city 3", "description": "Name of the second control city. This is automatically wikilinked.", "type": "string" },		"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": "string" },		"condir": { "label": "Concurrency direction", "description": "Same as |dir=, but for the first concurrency.", "type": "string" },		"condir2": { "label": "Concurrency 2 direction", "description": "Same as |dir=, but for the second concurrency.", "type": "string" },		"condir3": { "label": "Concurrency 3 direction", "description": "Same as |dir=, but for the third concurrency.", "type": "string" },		"contype": { "label": "Concurrency type", "description": "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.", "type": "string" },		"contype2": { "label": "Concurrency 2 type", "description": "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.", "type": "string" },		"contype3": { "label": "Concurrency 3 type", "description": "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.", "type": "string" },		"picaft": { "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" },		"sign": { "label": "Sign", "description": "The name of an MTO sign to add to the shield output.", "example": "airport", "type": "string" },		"to": { "label": "To", "description": "Route number of the first to route.", "type": "number" },		"to2": { "label": "To 2", "description": "Route number of a second to route/concurrency. Routes should be in ascending order.", "type": "number" },		"to3": { "label": "To 3", "description": "Route number of a third to route/concurrency. Routes should be in ascending order.", "type": "number" },		"todir": { "label": "To direction", "description": "Same as |dir=, but for the first to route.", "type": "string" },		"todir2": { "label": "To 2 direction", "description": "Same as |dir=, but for the second to route.", "type": "string" },		"todir3": { "label": "To 3 direction", "description": "Same as |dir=, but for the third to route.", "type": "string" },		"totype": { "label": "To type", "description": "The road type of the first to route.", "type": "string" },		"totype2": { "label": "To 2 type", "description": "The road type of the second to route.", "type": "string" },		"totype3": { "label": "To 3 type", "description": "The road type of the third to route.", "type": "string" },		"via": { "label": "Via", "description": "Route number of the first via route. Used most commonly for 400-series highways.", "type": "number" },		"via2": { "label": "Via 2", "description": "Route number of a second via route/concurrency. Routes should be in ascending order.", "type": "number" },		"via3": { "label": "Via 3", "description": "Route number of a third via route/concurrency. Routes should be in ascending order.", "type": "number" },		"viadir": { "label": "Via direction", "description": "Same as |dir=, but for the first via route.", "type": "string" },		"viadir2": { "label": "Via 2 direction", "description": "Same as |dir=, but for the second via route.", "type": "string" },		"viadir3": { "label": "Via 3 direction", "description": "Same as |dir=, but for the third via route.", "type": "string" },		"viatype": { "label": "Via type", "description": "The road type of the first via route.", "type": "string" },		"viatype2": { "label": "Via 2 type", "description": "The road type of the second via route.", "type": "string" },		"viatype3": { "label": "Via 3 type", "description": "The road type of the third via route.", "type": "string" },		"toname": { "label": "To name", "description": "The name of the to route.", "type": "string" },		"vianame": { "label": "Via name", "description": "The name of the via route.", "type": "string" }	},	"paramOrder": [ "1",		"2",		"3",		"shield", "sign", "tch", "dir", "city", "city2", "city3", "con", "con2", "con3", "condir", "condir2", "condir3", "contype", "contype2", "contype3", "to", "to2", "to3", "toname", "todir", "todir2", "todir3", "totype", "totype2", "totype3", "via", "vianame", "via2", "via3", "viadir", "viadir2", "viadir3", "viatype", "viatype2", "viatype3", "nosh", "notext", "nolink", "ot", "fulltext", "size", "showred", "picaft" ] }