Template talk:Jct/Archive/2010

South Carolina state banners
First, they are not utilizing the South Carolina banners, such as File:Business plate South Carolina.svg. Second, they are left-aligned to the shield and not centered. --Fredddie™ 03:20, 2 January 2010 (UTC)
 * Fixed for SC-Alt; SC-Bus already works. I don't know if we need any other types for SC; let me know if we do. –  T M F 03:39, 2 January 2010 (UTC)

Puerto Rico highways
This template apparently only seems to show shields for the Primary highways in Puerto Rico (a.k.a. the blue and white shields). Is there any way this template can be modified to allow the Urban Primary (black and white shields), Secondary (blue and gold County-style shields), and Tertiary (black and white circle signs)? ANDROS1337  19:42, 14 May 2010 (UTC)


 * will produce


 * All the links will point to Puerto Rico Highway X, but the shields will be different. &mdash;Fredddie™ 21:31, 14 May 2010 (UTC)
 * I have also set up the templates for using 'urban', 'sec', and 'ter' with Infobox road small if so desired. &mdash;Fredddie™ 21:50, 14 May 2010 (UTC)

Making aware of editprotected on subpage
See Template talk:Jct/shield. --Izno (talk) 03:28, 6 June 2010 (UTC)

Adding country param
I had a brief read through the Globalization section in the archive talk and thought that since Infobox road now supports a country parameter, it would be good if Jct could also support a country parameter so that pages such as Japan National Route 20 don't use things such as Japan.

In Jct/sandbox, Jct/1/sandbox and Jct/2/sandbox, I've setup a version which supports country by using the shield, abbrev & link templates from Template:Infobox road/doc/country for the country specified.

Here's a few examples for Japan:

I haven't added any support for the dir, to, name, road or city set of parameters but I don't see that they are needed that much. Also, I've currently only done support for 2 junctions but can easily do support for 3 & 4 if this is implemented.

Comments welcome. -- WOSlinker (talk) 18:46, 25 June 2010 (UTC)


 * Well, I think after the IR overhaul, the next project was to do some work to harmonize infobox road small (IRS) to match, using the back end of IR. We've tossed around updating jct, but thought that that might be a 2011 project, since jct uses the old IR backend templates in places. I think some of us are a bit ready for a break on the template coding, but your idea sounds great.  Imzadi  1979   →   18:55, 25 June 2010 (UTC)


 * I've written the changes so that it uses the new coding if country is set and the current coding if country is not set. So it's more of a minor change at the moment rather than a full re-write. That can be done later on. -- WOSlinker (talk) 19:12, 25 June 2010 (UTC)
 * I agree with the idea of making jct use the new IBR templates, but this is going to be a huge undertaking that may best be postponed to a later date. --Rschen7754 19:37, 25 June 2010 (UTC)
 * As an aside, would it be possible to turn on the redlinks for missing shields in the sandbox only? If we're going to tackle this behemoth, we're going to need to see what the shield subtemplate is outputting. &mdash;Fredddie™ 21:10, 25 June 2010 (UTC)

State Business routes
Good morning, how much of a hassle would it be to add State business routes to the jct coding? I have a highway that ends at a state business route, and would like to add the TX-Bus coding if possible. 25or6to4 (talk) 16:08, 7 July 2010 (UTC)
 * ✅ The template already supports TX business routes; I just needed to set up a couple of redirects to make TX-Bus work. –  T M F 16:16, 7 July 2010 (UTC)
 * Thanks. Was there different coding i was supposed to use?  25or6to4 (talk) 16:22, 7 July 2010 (UTC)
 * No, ideally, -Bus, SH-Bus, and SR-Bus should all work, but whoever set up TX only set up SH-Bus. –  T M F 16:33, 7 July 2010 (UTC)

Updating Jct
I've now taken this all a little further and produced a sandbox version that just uses the new Infobox road subtemplates. I've done some test cases so that we can see how it's all going. There are a few isuses still with some road types which I think is mainly due to them not being in the link and abbrev templates. Any thoughts? -- WOSlinker (talk) 19:07, 5 July 2010 (UTC)
 * Template:Jct/testcases
 * Template:Jct/testcases/shield1
 * Template:Jct/testcases/shield2
 * Template:Jct/testcases/shield3
 * Template:Jct/testcases/shield4
 * Many of the "missing" types (like "State", "ILL" or "Illinois Route") are missing because they're extraneous or redundant to the types already available. Additionally, in most cases, they're not used. Judging by the testcases, most if not all of the essential "meta" types are there; we just need to add in some of the more esoteric ones like "GRR" (for the Great River Road). As an aside, I had planned on giving Jct its own data subtemplates if and when I revamped it; however, this option could work too if the link/abbrev templates don't get overloaded with the one-off types. –  T M F 19:52, 5 July 2010 (UTC)
 * Yes, WOSlinker, one simple thought first. Can we complete the tasks with the infobox updates first before moving on to the next template updates? Infobox road small has now been updated to use the new backend from infobox road. The benefit is that IRS now works for any country that IR supports. There are still potential consolidations to make with IR/IRS.
 * Currently, jct is using the old IR subtemplates, which aren't in use by IR or IRS now. I know that I would like to see jct having its own subtemplates. As more countries are added to IR/IRS and the complete sets of subtemplates are created, I see that it would be tempting to use those subtemplates for jct, but I think it would be better to keep the two templates separate. The test cases above are appearing in Category:Infobox road transclusion errors. Any further linkage between jct and the new IR would do the same with the live template. Jct should use its own tracking categories for errors, and it's easy to copy the content of an IR subtemplate into the corresponding jct subtemplate. I don't know if the changes for IR/IRS concerning banner plates would break that functionality in jct or now, but it appears so. Additionally, there are types of roads set up for jct that aren't set up for IR/IRS, and may never be needed for infoboxes. Things like Forest Routes, Indian Routes probably don't need infoboxes at any point, but are supported by jct now.  Imzadi  1979   →   19:54, 5 July 2010 (UTC)
 * Agreed. We're having difficulties convincing Ontario (Canada), the UK, and New Zealand to consolidate their infoboxes into IBR, and we could use some help there. --Rschen7754 20:04, 5 July 2010 (UTC)
 * I've thought about the situation a bit more, and I firmly believe now that making separate subtemplates for Jct is the best way to go. There's the issue of the one-off types like "GRR" which are used only by Jct, and adding them to the new IBR subtemplates would just add unneeded noise to them. The issue that almost ensures that separate subtemplates have to be made, though, are the special routes. How the "new" IBR handles them and how Jct handles them are totally different. In IBR, they're split up into type and subtype, which has the benefit of making the banner and name coding much, much easier than it was before. In Jct, they're passed in together as a single type, and there's no way to split them up to use the IBR subtemplates without massively complicating the code of the IBR subtemplates in the form of adding line upon line of extraneous code to them. The types could be split up in the Jct input, but I don't believe there's a benefit to doing so.
 * Instead, I think the best way to go is to set up subtemplates in the form of "Template:Jct/shield/ / " or even just "Template:Jct/shield/ ", and so on with the rest of the types. I'm willing to begin looking into how these proposed subtemplates would work; however, I don't have the time IRL to do so for another week. –  T M F 06:18, 6 July 2010 (UTC)
 * The reason I used the new templates from Infobox road is that is looked as though the browse functionality was very similar to the jct functionality. Perhaps as some time in the future once jct has been redeveloped, the IBR browse could call jct instead of doing all the work itself. -- WOSlinker (talk) 06:42, 6 July 2010 (UTC)

Yes, there's still quite a bit of work to do on converting articles to use the IBR template, but I though I'd start to collect together various shield templates into one location. There are currently all at Category:Road marker templates for work on in the future. -- WOSlinker (talk) 21:16, 15 July 2010 (UTC)

Nonbreaking spaces and en dashes
Just a quick query to those in the know, but when the template is used to list control cities, there should be a non-breaking space before the en dash that separates the highway and road names from the city names. Those spaces have been inserted enough times manually at FACs for " – " combos coded by hand.  Imzadi  1979   →  10:01, 26 September 2010 (UTC)

Spur plate
I noticed most of the other plates and shields are no longer linked, but the Spur plate is, for example:

I don't recall if they are supposed to be or not, but can someone enlighten me / correct the issue? --Admrboltz (talk) 19:17, 30 October 2010 (UTC)


 * ✅ I've removed the link and also from a couple of other Spur templates as well. -- WOSlinker (talk) 19:59, 30 October 2010 (UTC)

Virginia Secondary shields
I just noticed that, lately, the jct template is using "Circle sign 613.svg" instead of "Iowa 613.svg". The former is an oval shield with 613 in it, which is wrong for Virginia Secondary shields. It should be circular, as in "Iowa 613.svg". This is the only one I've noticed so far; there may be others. Please change this back. --Tim Sabin (talk) 22:06, 30 October 2010 (UTC)
 * Actually, they shouldn't be using Iowa X.svg shields. Plans have been set in motion to get the circle sign shields changed to actual circles. –Fredddie™ 22:22, 30 October 2010 (UTC)

Initial support for different countries
Last time I looked at doing this, I was a bit too ambitious. This time, its going to be a bit simpler and more gradual. It will still work the same as it currently does when just passing over the state value but will also allow expansion by using a countty param.

Changes will be as follows:
 * Template:Jct/sandbox - added a country param pass though and also calls Template:Jct/meta/mask/country to workout the country from the state. Sets the country to TEMP if it cannot be determined. (The reason for that is because the template is already being used for other countries and they are just setting state to some other values).
 * Template:Jct/shield/sandbox - has been updated to link to Template:Jct/shield/USA, Template:Jct/shield/CAN, Template:Jct/shield/MEX & Template:Jct/shield/TEMP
 * Template:Jct/link/sandbox - has been updated to link to Template:Jct/link/USA, Template:Jct/link/CAN, Template:Jct/link/MEX & Template:Jct/link/TEMP and also Template:Jct/abbrev/USA, Template:Jct/abbrev/CAN, Template:Jct/abbrev/MEX & Template:Jct/abbrev/TEMP
 * Template:Jct/1/sandbox, Template:Jct/2/sandbox, Template:Jct/3/sandbox & Template:Jct/4/sandbox - Updated to pass though country param

After all those changes are done, I will then look at the What links here for Template:Jct/shield/TEMP and update those transclusions to use a country param and create a suitable Jct/shield/*country* & Jct/link/*country* for them.

An thoughts before I go ahead? -- WOSlinker (talk) 10:07, 7 November 2010 (UTC)
 * The changes have been done & I've updated all the non- USA & CAN transclusions to use the country param. -- WOSlinker (talk) 22:56, 8 November 2010 (UTC)

Revamp of aux plate handling/storage
I'm about to replace the current contents of Template:Jct/banner with a new system that's a bit more streamlined and organized. Banners may (and likely will) be broken for the next few minutes; however, they'll be back once the rest of the new system set up. –  T M F 07:06, 10 November 2010 (UTC)
 * Should be good to go. If you see any articles with broken banners, feel free to post them here. –  T M F 07:33, 10 November 2010 (UTC)

dab in abbrev_X
Texas distinguishes their business routes with a letter, so one specific business route would be Bus. 19-F. In Jct, we can distinguish with a dab:

The problem is that Template:Infobox road/TX/abbrev TX-Bus is coded to show the dab when it's used; the above should say Bus. 19-F. Can anyone take a look at this? Thanks. –Fredddie™ 03:50, 10 November 2010 (UTC)
 * ✅ –  T M F 02:19, 11 November 2010 (UTC)

Broken: OR-Bus
Thoughts? --Admrboltz (talk) 16:58, 13 November 2010 (UTC)
 * Got it. It was tricky and I may have broken some other things, but this works. –Fredddie™ 17:52, 13 November 2010 (UTC)


 * Yeap, that bug's on me. In a nutshell, when I converted the old Jct/US-Bus template into the Jct/banner/US template, I changed a couple of ifeqs to switches without updating the syntax, resulting in the spacing error. The implemented fix was OK; however, I removed the pipe templates and replaced them with pipes since they're not needed in this case (the parser's able to tell the difference between pipes that lie inside of file markup and those that lie outside it) and I added a couple of iferror calls to fix a bug where the template would break if the route number had a letter in it. –  T M F 09:17, 14 November 2010 (UTC)

Jct/plate broken on Washington State Route 22
Not quite sure why the bottom one works but the top one freaks out... --Admrboltz (talk) 15:44, 14 November 2010 (UTC)


 * There was a double redirect on Template:Jct/plate/WA/2, which I've fixed. -- WOSlinker (talk) 16:15, 14 November 2010 (UTC)

This template would be well served if it had more examples
There are not enough examples given, such that would cover all of the parameters of the template -- to1=, road=, county1-4=.

Examples (including the ones already used) would serve the reader better if they were chosen (in the case of US roads) from among roads that most people have heard about or are already familiar with: Interstate 5, Interstate 95, Route 128 (Boston), Interstate 610 (Texas), Beltway 8 (Houston), Penn Turnpike, NJ Parkway, US Route 66, NY State Thruway, etc. These are all roads that could be used in the examples; instead, more obscure roads were used. Mercy11 (talk) 15:54, 21 November 2010 (UTC)


 * There is a plan to rewrite the documentation page for this template along the lines of infobox road, especially since this template has been internationalized for other countries to some degree. (I wouldn't call A1A in Florida "obscure" though.)  Imzadi  1979   →  19:10, 21 November 2010 (UTC)

There are the test cases that set up... –Fredddie™ 22:40, 21 November 2010 (UTC)
 * Template:Jct/testcases/shield1 - USA states AK to LA
 * Template:Jct/testcases/shield2 - USA states MA to NY
 * Template:Jct/testcases/shield3 - USA states OH to WY
 * Template:Jct/testcases/shield4 - Canada
 * Template:Jct/testcases/shield5 - Everything else
 * Template:Jct/testcases/shield6 - USA I (interstate)
 * Template:Jct/testcases/shield7 - USA US routes
 * There are some slightly better examples on the main testcase page (Template:Jct/testcases) though. While using the numbered params is very well covered by those testcases, the other named params: county1, dab1, denom1, dir1, to1, name1, road, city1, areadab1, countydab1 & location1 (all with 1-4 numbers) are not covered as well in the docs and also in could be made more clear that the (county1, dab1, denom1, dir1, to1, name1) params are not related in any way to the (city1, areadab1, countydab1 & location1) params. There has been work on internationalising the template, but there are still some of those parameters; above; that are for USA & CAN only. I could help with updating the docs but my experience on USA & CAN roads is a little limited. -- WOSlinker (talk) 22:57, 21 November 2010 (UTC)

using the road parameter
I've noticed that when is used, you can't use  with it. Here's how I'd like to use it:



Here's my current workaround:

Is there some obscure alternative I don't know about? –Fredddie™ 17:02, 26 November 2010 (UTC)


 * I've added a toroad param to do what you want. -- WOSlinker (talk) 18:51, 26 November 2010 (UTC)


 * Perfect. Thanks. –Fredddie™ 19:11, 26 November 2010 (UTC)
 * Perfect. Thanks. –Fredddie™ 19:11, 26 November 2010 (UTC)
 * Perfect. Thanks. –Fredddie™ 19:11, 26 November 2010 (UTC)

Prince Edward Island route links
Currently  links articles to Route xx (Prince Edward Island). This should be changed to Prince Edward Island Route XX to avoid pointless redirects. --Admrboltz (talk) 02:24, 19 December 2010 (UTC)
 * ✅ –  T M F 02:29, 19 December 2010 (UTC)
 * Thanks! --Admrboltz (talk) 02:49, 19 December 2010 (UTC)
 * Shouldn't those articles be using  anyway?  Imzadi   1979   →  03:22, 19 December 2010 (UTC)
 * "If the route is located in the United States or Canada and the route is located within one state or province the in is possible to use state without setting the country. Accepted values for state are as follows: U.S. state: the two-letter postal abbreviation of the state; Canadian province: the two-letter postal abbreviation of the province." Anyways using province alone, or  and the province breaks the template. --Admrboltz (talk) 03:27, 19 December 2010 (UTC)
 * Hmm... WOS's globalization didn't take fully then. Sorry. It's supposed to work though.  Imzadi  1979   →  03:32, 19 December 2010 (UTC)
 * Yeah... All the Canada articles that use Jct use  from what I can tell. If / when this is changed, it will be a pretty big AWB job... --Admrboltz (talk) 03:42, 19 December 2010 (UTC)
 * I've added province as an alternative to state. state still works though. -- WOSlinker (talk) 10:33, 19 December 2010 (UTC)

E-470 Toll Plate
I would like File:Toll plate yellow.svg to appear over the E-470 shield when it is called, but am not sure how to make this happen. I think it should be signed like this as all BGS and Jct signs for the road mark the highway as a tollway (I'm ok with toll to make it legible). --Admrboltz (talk) 18:13, 29 December 2010 (UTC)


 * I'm not aware of the jct template using the "toll" banner in any other implementations, whether the banner plate is actually used on signs in the field or not. Since it's not actually part of the road's name, I don't think it's necessary to include the "toll" banner. --  LJ  ↗  09:32, 31 December 2010 (UTC)


 * Yellow toll plates are a new requirement from the 2009 MUTCD. We haven't gotten around to rolling it out yet in the template partially because the states haven't rolled it out much yet. The new I-376 extension in PA though has it, so jct entries for that section of the freeway would be appropriate candidates to add the toll plate. Personally, I'm in favor of using it, if we can.  Imzadi  1979   →  16:04, 31 December 2010 (UTC)


 * Ping? --Admrboltz (talk) 01:41, 5 January 2011 (UTC)