Template talk:Jcon
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||
|
This template was considered for deletion on 15 November 2009. The result of the discussion was "keep". |
Extras
[edit]Much as {{jct}} has extra symbols for intermodal transportation facilities and hospitals, I feel that extra icons should be added to this template for intersections or interchanges that lead to features such as airports or hospitals. The following would be the symbols that should be added to the template:
- Airport - File:Ontario M502.svg
- Bus - File:Ontario M506.svg
- Train Station - File:Ontario M509.svg
- Ferry - File:Ontario M508.svg
- Hospital - File:Ontario M401.svg
Is there a way these five extra icons can be added to this template? Dough4872 00:26, 2 May 2015 (UTC)
Would it be useful to add connections to Interstate Highways in this list? J4lambert (talk) 19:20, 27 March 2018 (UTC)
Ontario Highway 407 Logo
[edit]Hi, given that the provincial section is now open could you try to figure out how to replace the Highway 407 logo used in the jcon template; or better one rename the current one from 407 to 407ETR whilst the new one would be 407. This is the current logo used throughout: ; and this is what I would want to have it replaced with: . Any idea on how to do this? - RehmanK786 (talk) 20:11, 29 August 2018 (UTC)
Edit Request December 1, 2018
[edit]This edit request to Module:Jcon, Module:Jcon/data and Template:Jcon/doc has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I request that Module:Jcon is replaced with Module:Jcon/sandbox (after local data = mw.loadData('Module:Jcon/data/sandbox')
is replaced with local data = mw.loadData('Module:Jcon/data')
) and Module:Jcon/data is replaced with Module:Jcon/data/sandbox and Template:Jcon/doc with User:BrandonXLF/sandbox/2. These changes allow for new functionality and a updated documentation.
New functions and fixes:
- Supports inputs of all cases (coverts to lowercase)
- Function supported is sorted alphabetically and sorted
- Parameter showred is added, it's shows red links when there's red links (less expensive?)
- Code is reduced for function jcon (more efficient)
- Region, county, leading and trailing spaces and more are removed from input
- City is replace with Municipal where it should be Municipal and not City
- Durham Regional Highways get correct signs
- Data is sorted alphabetically
- More comments in code
Please note I'm unable to edit templates and modules, so I cannot perform these edits myself. – BrandonXLF (t@lk) 06:26, 1 December 2018 (UTC)
- Given the intricacies of the changes, I have changed this to be a template-protected edit request so that someone with related knowledge can look at it. --DannyS712 (talk) 06:48, 1 December 2018 (UTC)
- @BrandonXLF: Are there test cases which show that this will not regress the current behavior of the module? --Izno (talk) 04:58, 2 December 2018 (UTC)
- Not done: I'm extended confirmed and it appears like I can edit just fine. If you would like someone to take another look, have you considered the technical village pump? Dolotta (talk) 02:13, 8 December 2018 (UTC)
- @Dolotta: I've reopened this request. As alluded to above, the requester is barred from editing templates and modules, except for sandboxes and testcases, for at least six months (see WP:RESTRICT), so he cannot effect this change himself. -happy5214 09:51, 8 December 2018 (UTC)
- Thanks for letting me know. Happy editing! -- Dolotta (talk) 10:25, 8 December 2018 (UTC)
- The editor in question is banned from making these changes themselves. So how does this editor's request for others to make changes for them not violate at least the spirit and intent of the ban, if not its actual wording? Are editors allowed to violate TB's by proxy? Spintendo 17:48, 11 December 2018 (UTC)
- @Spintendo: After reading the discussion on his talk page part of the unblock agreement was BrandonXLF can submit edit requests for changes to be made to templates he just can't edit in the Template and Module namespaces directly. Based on the discussion and the takeaway I got was this allows Brandon to still improve Templates and Modules in small uncontroversial ways. Alucard 16❯❯❯ chat? 20:48, 11 December 2018 (UTC)
- I just realized I didn't answer all your questions fully I apologize. Brandon is allowed to use the edit request templates to propose changes which was agreed to by Primefac. This is not violating Brandon's TB in anyway based on the discussions I read in his talk page archive and the unblock discussion by editors implementing his requests. My understanding the intent of this topic ban stems in part from where Brandon created a bunch of templates and modules that kept going through the WP:TfD process that ultimately was deleted. I do think that at WP:RESTRICT they should add he can use edit requests for clarification. Alucard 16❯❯❯ chat? 21:24, 11 December 2018 (UTC)
- Thank you for clarifying. Since I wasn't a party to those discussions, I appreciate your helping me to understand them. I agree with Dolotta that someone from the technical village pump would be ideal to make these changes. Has the request been duplicated there? I'd hasten to add that this is an unusual application of the COI-ER template, in that COI-ER's are almost never applied to internal-use Wikipedia templates.
- As the remedy being used here applies to a topic ban, there is no traditional conflict of interest which exists. The template is being used to solve another issue, that of the topic ban, not a conflict of interest. In using the template in this manner, the interests in which confliction are being prevented are those interests in which it is desired that Brandon not violate a ban. They are not preventing Brandon from introducing bias into the project — or if they were, they would not be temporary — as bias is not typically considered to be easily switched on and off in such a manner.
- Conflicts of interest are established situations where a person's role as an editor comes in conflict with their relationship to the subject of an article — not ones where their actions would conflict with an internal rule or regulation, which is more of an ethical dilemma. If Brandon were permanently banned from working on these templates, I could see that as a conflict of interest. The fact that it's for 6 months means that this 'confliction' is viewed by the powers that be as a temporary one.
- If this is what has been decided upon then so be it, although there must be other ways to prevent Brandon from breaking his topic ban. Perhaps waiting 6 months? Spintendo 17:25, 13 December 2018 (UTC)
- Thank you for clarifying. Since I wasn't a party to those discussions, I appreciate your helping me to understand them. I agree with Dolotta that someone from the technical village pump would be ideal to make these changes. Has the request been duplicated there? I'd hasten to add that this is an unusual application of the COI-ER template, in that COI-ER's are almost never applied to internal-use Wikipedia templates.
- The editor in question is banned from making these changes themselves. So how does this editor's request for others to make changes for them not violate at least the spirit and intent of the ban, if not its actual wording? Are editors allowed to violate TB's by proxy? Spintendo 17:48, 11 December 2018 (UTC)
Altering edit request to the {{edit template-protected}}
variant. Unless I'm mistaken that template should be used in this case. If anything, those who monitor it should be more informed template-wise that those monitoring the other list. I'm afraid the request may have ended up sitting for some time on the COI list and would have a better chance if it were listed under templates instead of COI. Hope this helps. Regards, Spintendo 23:26, 13 December 2018 (UTC)
- Not done this page is not protected so it doesn't need it at all. If anyone that isn't sanctioned wants to do this, they can per WP:BRD. — xaosflux Talk 00:03, 14 December 2018 (UTC)
- Done Thanks for your contributions! Diffs: template data docs AdA&D 00:05, 14 December 2018 (UTC)
- FWIW, I've opened Template_talk:Request_edit#Other_reasons_for_edit_request for anyone interested in building way for managing edit requests on unprotected pages from users under editing sanctions. — xaosflux Talk 00:08, 14 December 2018 (UTC)
Ottawa "Regional" Roads
[edit]I notice that Ottawa roads are still displaying as 'Regional Road #' (where # is the road number) when using the template. Is there any possibility of changing that to display 'Ottawa Road #' instead? Also, is there a way to display Ottawa Road shields for this template as well? Thanks. BigBenzino (talk) 14:41, 9 June 2020 (UTC)
- BigBenzino, sure, do you have a reference for the roads being called "Ottawa Road #"? Also, do you have the format for the road shield photos or do you mean you want one picture for all roads? – BrandonXLF (talk) 19:08, 9 June 2020 (UTC)
- Ottawa is a city, not a region; it's a single-tier municipality, so regardless of the area of the city you're in, you're still in the "city". I do not have any format in photos, but I can try to get one later, if needed. BigBenzino (talk) 16:19, 24 June 2020 (UTC)
- @BigBenzino / @BrandonXLF: I'm bumping an old thread. I noticed that Template:Jcon is linking Ottawa Roads to 'Ottawa City Road %' (i.e. Ottawa City Road 174) (Template link: Road 174), while the Ottawa numbered road articles are titled 'Ottawa Road %' (i.e. Ottawa Road 174). Is the best course of action for a fix to modify the template to the article link, or rename (move) the article to reflect the format? At this point I think the only article that would really be affected would be Ottawa Road 174. MuzikMachine (talk) 16:54, 28 November 2023 (UTC)
- Ottawa is a city, not a region; it's a single-tier municipality, so regardless of the area of the city you're in, you're still in the "city". I do not have any format in photos, but I can try to get one later, if needed. BigBenzino (talk) 16:19, 24 June 2020 (UTC)
Possible Fixes/Enhancement Ideas
[edit]I've been doing some recent work and noticed that Template:Jcon is less functionality than Template:Jct, desipite its stated purpose of being an enhancement to Template:Jct within the Ontario context. I had a few enhancement ideas for Template:Jcon that I was wondering could be considered or added. I don't have the skillset to make some the edits myself.
Some fixes that should be looked into are:
1. Match shield size.
I noticed the default shield size was enlarged in Template:Jct so now there's a noticeable difference. Personally I prefer the shield size on Template:Jcon, but I'm thinking the sizing should be consistent between the two templates.
e.g. Template:Jct Highway 417 / TCH vs. Template:Jcon Highway 417 / TCH
2. Allow for more destinations.
With Template:Jcon it appears that |city=
and |town=
were treated separately, but now the commands are interchangeable. Allowing for up to four cities/towns would be helpful.
3. Fix direction placement on concurrencies
With concurrencies, Template:Jcon puts all the directions at the end while they should be placed after each entry
e.g. Template:Jct Highway 6 north / Highway 21 south / Highway 26 east vs. Template:Jcon Highway 6 north / Highway 21 south / Highway 26 east
Some enhancement ideas I had for the template are:
4. Incorporate the "To" function
The "To" function is not available on Template:Jcon despite Ontario having it's own Trailblazer shield set. Variations could be To1 (i.e. To Highway X) and To2 (i.e. Highway X to Highway Y).
e.g. Template:Jct To Highway 401; Highway 403 to Highway 401; Highway 403 to Queen Elizabeth Way
In a perfect world, the option of 'To' with the Shield Option (resulting in this shield), but a library of shields is currently unavailable.
5. Allow for multi-jurisdictional concurrencies
While King's Highway/County Road concurrencies technically do not exist as its a break in the County Road, concurrencies between County Roads two counties do exist if they are located on a county (or similar entity) boundary. If Template:Jcon could be configured to allow this to be represented, it could be a possible improvement, especially since there is now a way to do it on Template:Jct.
e.g. Regional Road 7 / County Road 18 {{jct|province=ON|RR|7|CR|18|county1=Peel|county2=Dufferin}}
Incorporated with a "To" function, it could allow to for links to King's Highways (if necessary):
e.g. Municipal Road 55 to Highway 17 {{jct|province=ON|MR|55|Hwy|17|county1=Sudbury|to2=y}}
6. Allow for long text
Similar logic to the |ot=y
with removes the shield and link, a proposed |longtext=
(or a different name) would put the full name of the road (i.e. the County name). This could be useful if there were multi-jurisdictional concurrencies.
e.g. {{jcon|Peel|7|longtext=y}} = Peel Regional Road 7; |longtext=y
Peel Regional Road 7 / Dufferin County Road 18 MuzikMachine (talk) 18:21, 17 July 2024 (UTC)
- @MuzikMachine I made some changes to the template sandbox at Template:Jcon/sandbox to address your suggestions.
- 1 - Since this change would affect every use of this template, we should get some more feedback before changing the size.
- 2 - Added support for an infinite number of control cities
- 3 - Fixed
- 4 - Added "to" and "via" as they are both used in Ontario
{{Jcon/sandbox|hwy|to=12}}
→ To Highway 12
{{Jcon/sandbox|hwy|7|to=23}}
→ Highway 7 to Highway 23
{{Jcon/sandbox|hwy|401|via=409}}
→ Via Highway 401 via Highway 409
- 5 - Added with
|contype=
{{Jcon/sandbox|Peel|7|con=18|contype=Dufferin}}
→ Regional Road 7 / County Road 18
- 6 - Added with
|fulltext=
{{Jcon/sandbox|Peel|7|fulltext=y}}
→ Peel Regional Road 7
- Let me know what you think of the changes and if you're okay with them I'll add them to the live template. – BrandonXLF (talk) 05:16, 21 July 2024 (UTC)
- @BrandonXLF Looks good, thank you! Honestly regarding image size, I prefer the current shield size in Template:Jcon over Template:Jct, but that's probably a different conversation about changing that template's sizing. If maintaining consistency between the two isn't huge priority, then as-is is fine with me.
- For an additional test, I combined a few of the fixes.
{{Jcon/sandbox|Peel|7|con=18|contype=Dufferin|fulltext=y|dir=east|condir=west|to=2}}
→ Peel Regional Road 7 east / Dufferin County Road 18 west to Peel Regional Road 2
- With "Via", is there a provision to add directions? Or is that not necessary as they aren't listed in the field on gantries?
{{Jcon/sandbox|Hwy|400|to=11|dir=north}}
→ Highway 400 north to Highway 11
{{Jcon/sandbox|Hwy|401|via=403|dir=n/a|condir=east}}
→ Via Highway 401 n/a via Highway 403
- One additional recommendation I forgot to add was putting a non-breaking space (
) in the output text between Road/Highway and the number (i.e. Highway
401) - Thanks again for your help! MuzikMachine (talk) 16:01, 22 July 2024 (UTC)
- @MuzikMachine No problem!
- I'll leave the default size alone for now and I'll see if anything comes up. My changes did end up causing the TCH shield size to change, Highway 17 / TCH (current) vs Highway 17 / TCH (new). The new size is the same height as the highway shields though, Highway 17 / TCH (current) vs Highway 17 / TCH (new), so it might be better to keep it. Thoughts?
- For "to" and "via", I added separate direction parameters,
|todir=
and|viadir=
:
- One additional recommendation I forgot to add was putting a non-breaking space (
{{Jcon/sandbox|Hwy|400|to=11|dir=north|todir=north}}
→ Highway 400 north to Highway 11 north
{{Jcon/sandbox|Hwy|401|via=403|dir=n/a|viadir=east}}
→ Via Highway 401 n/a via Highway 403 east
- I also added the
. – BrandonXLF (talk) 18:57, 22 July 2024 (UTC)- @BrandonXLF That's awesome, thank you!
- Regarding the TCH size, I think there's more usage of the crown (example 1) vs. the shield, so I'm inclinded to leave that as-is. Is it possible to change the TCH shield size if
|shield=y
? You could end up with the best of both worlds. MuzikMachine (talk) 19:08, 22 July 2024 (UTC)- @MuzikMachine I implemented a system that makes the TCH sign shorter when it should be. Now the sandbox produces Highway 7 / TCH and Highway 7 / TCH. – BrandonXLF (talk) 20:16, 22 July 2024 (UTC)
- @BrandonXLF That's great, thanks for all your help! I'm looking forward to seeing them live. Let me know if you want me to update the template documentation. Cheers! MuzikMachine (talk) 04:48, 23 July 2024 (UTC)
- @MuzikMachine The changes are live! I've been updating the documentation while I was updating the module, so it should be updated, but feel free to make changes to it. – BrandonXLF (talk) 12:51, 23 July 2024 (UTC)
- @BrandonXLF That's great, thanks for all your help! I'm looking forward to seeing them live. Let me know if you want me to update the template documentation. Cheers! MuzikMachine (talk) 04:48, 23 July 2024 (UTC)
- @MuzikMachine I implemented a system that makes the TCH sign shorter when it should be. Now the sandbox produces Highway 7 / TCH and Highway 7 / TCH. – BrandonXLF (talk) 20:16, 22 July 2024 (UTC)
- I also added the
New data source
[edit]I've updated the template to pull its type data from Module:Road data/strings/CAN/ON. – BrandonXLF (talk) 10:39, 24 August 2024 (UTC)