Template talk:Jct/Archive/2023
This is an archive of past discussions about Template:Jct. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Ukrainian markers
Please replace the blue markers with new, red ones - in 2021 Ukraine started to introduce new road signage (and route markers too). The new files are already uploaded on Commons, with filenames as Mxx-UA.svg (i.e. M01-UA.svg, M02-UA.svg, etc.). 83.11.100.233 (talk) 00:39, 24 January 2023 (UTC)
Possible Issue with Visual Editor
Partially copied from Wikipedia talk:VisualEditor#Possible issue with Visual Editor
I know that there are limitations with Visual Editor and templates but I've started to notice it acting weird on a few specifically. With Template:Jct, how it seems to be viewed in VE mode means the parameter order gets reversed (Example of how it looks). I'm not 100% on this and it may have been down to a mistake on my behalf, but nevertheless, I have fixed all the ones affected in source mode. DiscoA340 (talk) 14:17, 2 May 2023 (UTC)
- That's not really an issue. For named parameters, there really is no required order. That goes for any template. The only parameters that do require being in order are the type and route, which are the unnamed
|1=
and|2=
. The best way to get around this is to not use VE. –Fredddie™ 03:16, 3 May 2023 (UTC)
"Lua error in Module:Jct at line 204: attempt to concatenate local 'link' (a nil value)."
This is currently showing up at A31 road and I have no idea why. Could someone more familiar with road syntax fix it please? * Pppery * it has begun... 16:05, 29 July 2023 (UTC)
- @Pppery: there was a blank parameter in the template, as if someonee deleted city2 or location2. Removing that blank fixed the error. (Renumbering the city/location parameters to account for the missing item in sequence didn't hurt either.) Imzadi 1979 → 20:55, 29 July 2023 (UTC)
Implementation of a 'to banner' suffix for directional tabs
I noticed we added trailblazers for Ontario, i.e. the green and white coloured shields, and was having trouble while playing around trying to add a suffix modifier for shieldto, but to no avail. Perhaps a more experienced LUA programmer could help. Kingdom of Baustralia (talk) 23:21, 4 September 2023 (UTC)
- While this doesn't serve a purpose yet, maybe it will as banners are expanded to different countries, especially Canada which uses |shieldto=. I use it off this wiki, and so thought it would be good to implement here too. An example of such would be as follows:
Highway 7 to Highway 28 north → Highway 7 to Highway 28 north noting Highway 427 to Queen Elizabeth Way - ᕼamilton
- I get what you're saying. I believe in Canada, 'banners' are below the shield rather than above? Coding the banners themselves would be fairly simple, but getting them to display below the shield rather than above is where the trick lies. However, I doubt that will happen any time soon. I'm not the best at Lua but I can feel my way around not unlike walking in the dark at 2am. That being said, I simply don't have the time or energy to look at how to accomplish this. –Fredddie™ 07:00, 12 September 2023 (UTC)
- That is true. I can confirm we place our banners on the bottom, but I wasn't concerned with that. I just tried to play with the LUA myself but I'm not great at it. Kingdom of Baustralia (talk) 20:58, 19 September 2023 (UTC)
- On a private wiki, I added
if route.to then bannersuffix = parser(route, 'bannersuffixto') end
at line 101, and it did the trick. I addedbannersuffixto='green'
to route strings to define the suffixes. This solves recolouring shieldto banners. Kingdom of Baustralia (talk) 21:58, 19 September 2023 (UTC)
- I get what you're saying. I believe in Canada, 'banners' are below the shield rather than above? Coding the banners themselves would be fairly simple, but getting them to display below the shield rather than above is where the trick lies. However, I doubt that will happen any time soon. I'm not the best at Lua but I can feel my way around not unlike walking in the dark at 2am. That being said, I simply don't have the time or energy to look at how to accomplish this. –Fredddie™ 07:00, 12 September 2023 (UTC)
Route number space for Ireland
Hi there. I would just like to ask if it is possible to remove the space between the letter and number(s) for all Irish route numbers, i.e.:
...rather than displaying as M 50, to have it displayed as M50. I apologise if this is not the correct place to ask. EthanL13 (talk) 12:16, 16 October 2023 (UTC)
Disambiguation of M3 motorway
This template is used on A31 road and A33 road in the UK. Although the country "GBR" is included the link points to the dab page M3 motorway, rather than M3 motorway (Great Britain). Any help with this appreciated.— Rod talk 17:46, 28 November 2023 (UTC)