Jump to content

Template:Jcon/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
update per [https://en.wikipedia.org/wiki/Template_talk:Jcon#Edit_Request_December_1,_2018 talk page request]
Line 3: Line 3:
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
{{lua|Module:Jcon}}
{{lua|Module:Jcon}}
JunCtion ONtario is a template similar to {{tlx|jct}}, with added functionality not available in the jct template. It is currently designed for representing Ontario highways and county (numbered) roads. The template is designed to display up to three concurrent roads (in the same system). Entries are Case-Sensitive.
'''J'''un'''C'''tion '''ON'''tario is a template similar to {{tlx|jct}}, with added functionality not available in the jct template. It is currently designed for representing Ontario highways and county (numbered) roads. The template is designed to display up to three concurrent roads (in the same system). Entries are Case-Sensitive.


<pre width=100%>
<pre width=100%>
{{jcon|1|2|3|nosh=|nolink=|notext=|size=|ot=|town=|town2=|city=|city2=|con=|dir=}}
{{jcon|1|2|3|nosh=|nolink=|notext=|size=|ot=|town=|town2=|city=|city2=|con=|dir=|pic aft=|showred=}}
</pre>
</pre>
==Usage==
==Usage==
Line 17: Line 17:
*'''nolink=''' is ''optional''. As with ''nosh='', it is activated by assigning any value to it. Use of this parameter will prevent the road name from being linked (useful for removing redlinks). ''See example 5.''
*'''nolink=''' is ''optional''. As with ''nosh='', it is activated by assigning any value to it. Use of this parameter will prevent the road name from being linked (useful for removing redlinks). ''See example 5.''
*'''notext=''' is ''optional''. It is activated by assigning any value to it. Using this parameter prevents the display of the link and text; only a shield will be displayed. ''See example 7.''
*'''notext=''' is ''optional''. It is activated by assigning any value to it. Using this parameter prevents the display of the link and text; only a shield will be displayed. ''See example 7.''
*'''size=''' is ''optional''. The default value is "''20x25px''", which is usually adequette. 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 {{tlx|Infobox road}} to display a larger version of a county road sign. ''See examples 6 and 7.''
*'''size=''' is ''optional''. The default value varies, but usually about "x20px", which is usually adequette. 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 {{tlx|Infobox road}} to display a larger version of a county road sign. ''See examples 6 and 7.''
*'''ot=''' is ''optional''. It is activated by assigning any value to it. Using this parameter prevents a shield and a link. The result is plain text. Stands for '''o'''nly '''t'''ext. ''See example 8''
*'''ot=''' is ''optional''. It is activated by assigning any value to it. Using this parameter prevents a shield and a link. The result is plain text. Stands for '''o'''nly '''t'''ext. ''See example 8''
*'''city=''' OR '''town=''' is ''optional''. When entered, a ndash (&ndash;) will be entered at the end of the route, followed by the content after the equal sign. ''See example 9.''
*'''city=''' OR '''town=''' is ''optional''. When entered, a ndash (&ndash;) will be entered at the end of the route, followed by the content after the equal sign. ''See example 9.''
*'''city2=''' OR '''town2=''' is ''optional''. When entered, a comma (,) will be entered after city/town 1, followed by the content after the equal sign. ''See example 9.''
*'''dir=''' is ''optional''. If a junction only gives access to a road in a certain direction, enter that direction here, preferably as one of the [[cardinal directions]].
*'''dir=''' is ''optional''. If a junction only gives access to a road in a certain direction, enter that direction here, preferably as one of the [[cardinal directions]].
*'''pic aft=''' is ''optional''. Move the picture(s)/shield(s) to the end of the output. ''See example 11.''
*'''pic aft=''' is ''optional''. Move the picture(s)/shield(s) to the end of the output. ''See example 11.''
*'''showred=''' is ''optional''. If set to any value, [[redlink|{{abbr|red links|This is a red link|style=text-decoration:none;}}]] will be shown.


==Examples==
==Examples==
Line 43: Line 45:
#<nowiki>{{Jcon|Hwy|401|nosh=y|town=Ajax}}</nowiki>
#<nowiki>{{Jcon|Hwy|401|nosh=y|town=Ajax}}</nowiki>
#:{{Jcon|Hwy|401|nosh=y|town=Ajax}}
#:{{Jcon|Hwy|401|nosh=y|town=Ajax}}
#<nowiki>{{Jcon|Hwy|6|con=21|con2=26|town=Collingwood}}</nowiki>
#<nowiki>{{Jcon|Hwy|6|con=21|con2=26|town=Collingwood|city2=Owen Sound}}</nowiki>
#:{{Jcon|Hwy|6|con=21|con2=26|town=Collingwood}}
#:{{Jcon|Hwy|6|con=21|con2=26|town=Collingwood|city2=Owen Sound}}
#<nowiki>{{Jcon|Hwy|6|con=21|con2=26|town=Collingwood|pic aft=y}}</nowiki>
#<nowiki>{{Jcon|Hwy|6|con=21|con2=26|town=Collingwood|pic aft=y}}</nowiki>
#:{{Jcon|Hwy|6|con=21|con2=26|town=Collingwood|pic aft=y}}
#:{{Jcon|Hwy|6|con=21|con2=26|town=Collingwood|pic aft=y}}

Revision as of 00:01, 14 December 2018

JunCtion ONtario is a template similar to {{jct}}, with added functionality not available in the jct template. It is currently designed for representing Ontario highways and county (numbered) roads. The template is designed to display up to three concurrent roads (in the same system). Entries are Case-Sensitive.

{{jcon|1|2|3|nosh=|nolink=|notext=|size=|ot=|town=|town2=|city=|city2=|con=|dir=|pic aft=|showred=}}

Usage

  • 1 specifies the type of road. If the road is a provincial highway (including secondary highways and freeways), either Hwy or Highway should be entered. If the road is a numbered county route (or the jurisdictional equivalent to a county), simply enter the name of the county here (without the Region or County or District) or an abbreviation. All regions, abbreviations and acceptable inputs are listed under the supported header. This also supports other inputs such as airport or bus to return MTO signs for them.
  • 2 specifies the route number. Pretty straightforward.
  • 3 is optional. The name of the road (if different from its numbered designation) should be entered here. The template will display this name (as is) within parenthesis.
  • con= is optional. Enter concurrencies in here to make a second route of the same type show up. Since King's Highways supersede county routes, concurrencies only exist within the same systems (two county roads or two highways). The number entered under the con parameter should be the higher of the two. See example 3.
  • con2= is optional. As with con=
  • nosh= is optional. If this parameter is specified with anything (a single letter will do) after the equal sign, the shield image will not be displayed. This is useful for prose, where icons are considered intrusive and not permitted. See examples 4, 5 and 9.
  • nolink= is optional. As with nosh=, it is activated by assigning any value to it. Use of this parameter will prevent the road name from being linked (useful for removing redlinks). See example 5.
  • notext= is optional. It is activated by assigning any value to it. Using this parameter prevents the display of the link and text; only a shield will be displayed. See example 7.
  • size= is optional. The default value varies, but usually about "x20px", which is usually adequette. 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. See examples 6 and 7.
  • ot= is optional. It is activated by assigning any value to it. Using this parameter prevents a shield and a link. The result is plain text. Stands for only text. See example 8
  • city= OR town= is optional. When entered, a ndash (–) will be entered at the end of the route, followed by the content after the equal sign. See example 9.
  • city2= OR town2= is optional. When entered, a comma (,) will be entered after city/town 1, followed by the content after the equal sign. See example 9.
  • dir= is optional. If a junction only gives access to a road in a certain direction, enter that direction here, preferably as one of the cardinal directions.
  • pic aft= is optional. Move the picture(s)/shield(s) to the end of the output. See example 11.
  • showred= is optional. If set to any value, red links will be shown.

Examples

  1. {{Jcon|York|68|Markham Road}}
     Regional Road 68 (Markham Road)
  2. {{Jcon|Simcoe|42}}
     County Road 42
  3. {{Jcon|Hwy|7|con=12|Baldwin Street}}
      Highway 7 / Highway 12 (Baldwin Street)
  4. {{Jcon|Highway|35|nosh=y}}
    Highway 35
  5. {{Jcon|Ottawa|11|Moodie Drive|nosh=y|nolink=y}}
    Road 11 (Moodie Drive)
  6. {{Jcon|Highway|11|size=30px}}
     Highway 11
  7. {{Jcon|Hwy|11|notext=y|size=30px}}
  8. {{Jcon|Durham|23|ot=y}}
    Regional Road 23
  9. {{Jcon|Hwy|401|nosh=y|town=Ajax}}
    Highway 401Ajax
  10. {{Jcon|Hwy|6|con=21|con2=26|town=Collingwood|city2=Owen Sound}}
       Highway 6 / Highway 21 / Highway 26Collingwood, Owen Sound
  11. {{Jcon|Hwy|6|con=21|con2=26|town=Collingwood|pic aft=y}}
    Highway 6 / Highway 21 / Highway 26Collingwood   
  12. {{Jcon|Bus}} [[Bus station]]
    Bus station

Supported

  • 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 (Greater 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