Jump to content

Template talk:Jct: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
MiszaBot II (talk | contribs)
m Robot: Archiving 1 thread (older than 14d) to Template talk:Jct/Archive 1.
Line 9: Line 9:
{{HWY|class=template}}
{{HWY|class=template}}
{{talk header}}
{{talk header}}

== Subtemplate consolidation ==

I think this would mainly only affect the US, but I could be wrong. We should set a goal that by the end of the year, all the various subtemplates still in the Infobox road namespace should be consolidated under Jct and the Infobox road subtemplates [[WP:CSD#G6|G6'd]]. I think most US route types are already consolidated, but state highways are not. –[[User:Fredddie|Fredddie]][[User talk:Fredddie|™]] 03:51, 5 June 2012 (UTC)


== Australian Roads ==
== Australian Roads ==

Revision as of 07:13, 19 June 2012

Please add {{WikiProject banner shell}} to this page and add the quality rating to that template instead of this project banner. See WP:PIQA for details.
WikiProject iconHighways Template‑class
WikiProject iconThis template is within the scope of WikiProject Highways, a collaborative effort to improve the coverage of highways on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on the project's quality scale.

Australian Roads

Scott5114 made the following comment on the WT:WA talk page, regarding using the jct template for Australian Roads:

I've done some experimentation, and it looks like {{jct}} will need some adjustments before it can be successfully used with Australian roads. I know that it does use bits of {{infobox road}} to do its work, and that template has already been set up for Australia, so that's half of the work done already. What will need to be fixed is that jct sometimes makes boneheaded assumptions; namely, it assumes WA always means Washington and not Western Australia, even when "country=AUS" is specified. (I have not tried NT but I assume it links to the Canadian Northwestern Territories.) Infobox road seems to override Washington to Western Australia if country=AUS. Linking and abbreviation templates will also need to be done.

Can someone here take a look at this? I have since made the necessary shield, abreviation, and links templates. (preliminary versions - linking is an issue as very few road route pages currently exist for Australia as most pages are for road names. We should be able to work around this by creating redirects to appropriate articles or disambig. pages). These templates work except for the destination cities/suburbs. Western Australia and Northern Territory are assumed to be Washington and Northwestern Territories, other states like South Australia don't get anything appended to the destinations (see my sandbox). - Evad37 (talk) 19:45, 13 June 2012 (UTC)[reply]

I'm not exactly sure how the city subtemplate works, maybe someone with a higher pay grade can look at that one. I don't even know if you can use |country= and |state= at the same time. The Australian subtemplates look fine. The link template had some duplication, so I cleaned that up and added some switches where appropriate. Are the abbreviations right? I'll check the Australian Dept. of Transport's website for clues. But so far so good. –Fredddie 00:57, 14 June 2012 (UTC)[reply]
Part of the problem with abbreviations (and therefore links) is that as far as I know, there aren't any official abbreviations. Roads are referred to simply by their name - without exception, I have never heard a road in Western Australia referred to by the route number(s). I believe it is similar for the other states. This is why their are so few Australian route pages on Wikipedia, and the Kwinana Freeway (manually formatted) table has road names as links.
I've take a look at the city subtemplate, the variable it uses is {{{statename}}}, which is taken from the {{jct/statename}} subtemplate. It looks like statename name will need to have {{ifeq}}'s, or another switch for {{{country}}}, as at the moment is just a single switch with US states, Canadian provinces, and other countries. However, to do this {{jct}} will need to be modified to pass through the {{{country}}} variable, and it is protected. I have submitted an edit request (below) - Evad37 (talk) 07:41, 14 June 2012 (UTC)[reply]

Edit request on 14 June 2012

Can the template be edited to pass the variable {{{country|}}} through to the {{jct/statename}}?
This is needed for Australian roads, as Western Australia (WA) and the Northern Territory (NT) conflict with Washington and Northwest Territories. To fix this, {{jct/statename}} would also need to be edited with either {{ifeq}}'s (as in my suggested code), or by using a switch on the {{{country|}}} variable first, and allocate names to Australian states, before the current switch for {{{state|}}}{{{province|}}}.
This request should be uncontroversial - it shouldn't affect any existing tables, assuming the code for {{jct/statename}} is OK (please check!); this will allow Australian road junction tables to be easily edited to WP:RJL standards.
Suggested code change for jct and jct/statename
Thanks, Evad37 (talk) 07:37, 14 June 2012 (UTC)[reply]
:{{jctint}} would also need to be changed to accept a {{{country}}} parameter, and pass it on to {{jct/statename}} - Evad37 (talk) 10:43, 14 June 2012 (UTC) (see comments below - Evad37 (talk) 12:13, 14 June 2012 (UTC)) [reply]

jctint is a completely separate template that uses {{jctint/core}} for its backend. There is a Western Australia-specific template in the works, much like {{MIint}} is Michigan-specific. Imzadi 1979  10:59, 14 June 2012 (UTC)[reply]
Thanks for the info, Imzadi. I found the WA template {{AUS-WAint}} that Fredddie created, and it seems to work. - Evad37 (talk) 12:13, 14 June 2012 (UTC)[reply]

Edit request reactivated, as only the part about {{jctint}} has been resolved. {{jct}} and {{jct/statename}} should still be edited, as detailed above. - Evad37 (talk) 16:21, 14 June 2012 (UTC)[reply]

Could you make your proposed changes to Template:Jct/sandbox and Template:Jct/statename/sandbox, and then seek agreement for your changes on this talk page? — Martin (MSGJ · talk) 16:26, 14 June 2012 (UTC)[reply]
Edit made to Template:Jct/sandbox. The changes to Template:Jct/statename have already been made by Fredddie (talk · contribs) (live version, not sandbox). - Evad37 (talk) 16:40, 14 June 2012 (UTC)[reply]
 Done -- WOSlinker (talk) 19:18, 14 June 2012 (UTC)[reply]