Template talk:Jcttop
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
|
Parameter to suppress location?
[edit]Would it be possible to add a parameter, such as |noloc=yes
, that would suppress display of the "Location" column heading? This would be useful in instances where the entire route is located within one city of a county. -- LJ ↗ 03:50, 21 February 2011 (UTC)
- Using
|state=NV|county=Clark|location=Las Vegas
will 1) suppress the county and location columns and 2) add "The entire route is in Las Vegas, Clark County." above the table. Imzadi 1979 → 04:25, 21 February 2011 (UTC)- Yeah, but I'm looking for a fix where the default hatnote is not produced, as a complement to the existing
nocty=yes
parameter. A specific reason for this was when I was updating Nevada State Route 520 in Carson City. In this case, Carson City is a consolidated city-county, so the the above method got the desired table headers but results in the incorrect hatnote of "The entire route is in Carson City, Carson City County." I thought it might be easier to suppress the location column, instead of doing another modification to get a non-standard hatnote to appear for the relatively few instances this would be needed. Whatever works. -- LJ ↗ 05:36, 21 February 2011 (UTC)- Sounds more like the template needs support for routes located within an independent city. – TMF 05:41, 21 February 2011 (UTC)
- That would work as well. -- LJ ↗ 03:59, 22 February 2011 (UTC)
- Sounds more like the template needs support for routes located within an independent city. – TMF 05:41, 21 February 2011 (UTC)
- Yeah, but I'm looking for a fix where the default hatnote is not produced, as a complement to the existing
unnum parameter
[edit]I was going to update the junction list on Summerlin Parkway to use this template. That route is a freeway without exit numbers, wholly located in Las Vegas, NV. My code was {{jcttop|exit|unnum=yes|state=NV|county=Clark|location=Las Vegas}} and the result was the following:
The entire route is in Las Vegas, Clark County. All exits are unnumbered.
mi | km | Exit | Destinations | Notes |
---|---|---|---|---|
As can be seen, the Exit column is still present and the "All exits are unnumbered." note was not produced. Did I do something wrong, or is there a code error? -- LJ ↗ 01:24, 18 August 2011 (UTC)
- The "exit" isn't needed. Some edits today accidently removed the unnum stuff, but that's been restored. Imzadi 1979 → 02:18, 18 August 2011 (UTC)
- {{jcttop|unnum=yes|state=NV|county=Clark|location=Las Vegas}} and the result was the following:
The entire route is in Las Vegas, Clark County. All exits are unnumbered.
mi | km | Destinations | Notes |
---|---|---|---|
Edit request from Imzadi1979, 26 August 2011
[edit]{{edit protected}}
Please sync the Template:Jcttop/sandbox here. This will rename the "County" column to "Quadrant" for the District of Columbia. This will make District of Columbia Route 295 appear correctly.
Imzadi 1979 → 01:42, 26 August 2011 (UTC)
Edit request from Imzadi1979, 5 September 2011
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Sync over template:jcttop/sandbox to restore some Michigan-specific coding that was lost along the way. Imzadi 1979 → 21:38, 5 September 2011 (UTC)
Imzadi 1979 → 21:38, 5 September 2011 (UTC)
- Done--Jac16888 Talk 14:44, 19 September 2011 (UTC)
- 18 revisions had been made to the sandbox after this edit request was started, and those 18 revisions did not include the code needed. Imzadi 1979 → 17:39, 19 September 2011 (UTC)
- My bad, didn't look at the edit history of the sandbox. Is the sandbox ok to copy across now?--Jac16888 Talk 17:41, 19 September 2011 (UTC)
- Yes, I have reverted to the version needed for this edit request. Additionally, the revisions made afterwards are to solve a problem that can be solved through other, simpler means. Imzadi 1979 → 17:53, 19 September 2011 (UTC)
- All good?--Jac16888 Talk 17:58, 19 September 2011 (UTC)
- Yes, thanks. Imzadi 1979 → 18:02, 19 September 2011 (UTC)
- All good?--Jac16888 Talk 17:58, 19 September 2011 (UTC)
- Yes, I have reverted to the version needed for this edit request. Additionally, the revisions made afterwards are to solve a problem that can be solved through other, simpler means. Imzadi 1979 → 17:53, 19 September 2011 (UTC)
- My bad, didn't look at the edit history of the sandbox. Is the sandbox ok to copy across now?--Jac16888 Talk 17:41, 19 September 2011 (UTC)
- 18 revisions had been made to the sandbox after this edit request was started, and those 18 revisions did not include the code needed. Imzadi 1979 → 17:39, 19 September 2011 (UTC)
Issue with nocty=yes
[edit]See Connecticut_Route_172#Junction_list.
I am not using the county column because it's a sore subject in CT, but I want a hatnote above the table. I did a custom note and now there is a double space between the custom note and the table header. The space should not be there. –Fredddie™ 16:25, 11 September 2011 (UTC)
- I just add this template immediately after the custom note, without an intervening line break. It's nothing with the template, and nothing can be changed in the template simply to avoid this; rather it is any line break after the custom note that's generating the extra blank line. Imzadi 1979 → 17:40, 19 September 2011 (UTC)
Edit request from Imzadi1979, 23 September 2011
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please revert the last edit which is now breaking tables. See M-105 (Michigan highway) for an example of the crazy output we are getting.
Imzadi 1979 → 21:18, 23 September 2011 (UTC)
Edit request from Imzadi1979, 27 September 2011
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Update the following code from:
!scope="col"|Notes<noinclude>
to:
!scope="col"|Notes{{{notes_ref|}}}<noinclude>
This will allow the Notes column of a table to have a reference, such as it may rarely be required.
Imzadi 1979 → 21:25, 27 September 2011 (UTC)
- This is a good idea. ~~Ebe123~~ (+) talk
Contribs 22:07, 27 September 2011 (UTC)- Done Looks good. -- DQ (t) (e) 05:06, 28 September 2011 (UTC)
jcttop support for independent cities?
[edit]Can the template be modified to allow for independent city support. Ideally, it would be similar to {{jctint}} using the |indep_city=yes
parameter. I was updating Nevada State Route 531 to reflect its recently-decommissioned status and was going to leave the jct table in when I realized that the problem I mentioned in the "Parameter to suppress location" thread above had not been addressed. So typing something like {{jcttop |state=NV |location=Carson City |indep_city=yes}}
would produce the hatnote "The entire route is in Carson City." and suppress the county and location columns. Thanks. -- LJ ↗ 13:45, 12 October 2011 (UTC)
- I support it, but we just need someone to code the addition. --Rschen7754 22:41, 18 October 2011 (UTC)
- Ping... Was trying to do some table conversions and realized this never got resolved. I can find a workaround if needed. -- LJ ↗ 00:12, 28 May 2012 (UTC)
- It should work, honestly the only thing missing was the hatnote. However, the independent city logic was carried over from Jctint/core. That is, you just use
|indep_city=Carson City
. –Fredddie™ 01:05, 28 May 2012 (UTC)
- ✓
{{Jcttop|state=NV|indep_city=Carson City}}
- ✗
{{Jcttop|state=NV|location=Carson City|indep_city=yes}}
.
- The period is missing at the end of the hatnote sentence, but I was able to implement without problem. Thank you! -- LJ ↗ 01:14, 28 May 2012 (UTC)
- It should work, honestly the only thing missing was the hatnote. However, the independent city logic was carried over from Jctint/core. That is, you just use
- Ping... Was trying to do some table conversions and realized this never got resolved. I can find a workaround if needed. -- LJ ↗ 00:12, 28 May 2012 (UTC)
Not sure what happened... this was working fine as of previous writing, but something is messed up now. The hatnote is appearing as "The entire route is in ." (not filling in the independent city) when using the green code above. -- LJ ↗ 04:01, 15 September 2012 (UTC)
- Was editing Interstate 564 just now to templatize the jct table, and encountered the same problem as in previous message with independent city usage not showing up... -- LJ ↗ 10:04, 26 December 2012 (UTC)
- See Template talk:Jcttop#Bugs for more information on the semantic bug. QM400032 (talk) 21:40, 20 May 2013 (UTC)
Edit request from Floydian, October 18, 2011
[edit]This is to change the County header to Division for Ontario only (where there are Counties, Districts, District Municipalities, Regions and a few more that I can't think of off the top of my head). It's also consistent with the RJLs on Ontario roads.
CHANGE:
{{#ifeq:{{{nocty|}}}|yes||{{#if:{{{county|}}}{{{parish|}}}{{{borough|}}}{{{municipality|}}}||!scope="col"{{!}}{{#switch:{{{state}}}|AK=Borough|LA=Parish|PR=Municipality|DC=Quadrant|#default=County}}}}}} {{#if:{{{location|}}}||!scope="col"{{!}}Location{{{location_ref|}}}}} !scope="col"|{{#ifeq:{{{unit|}}}|km|km|{{#switch:{{{state}}}|CA=Postmile|PR=km|#default=Mile}}}}{{{length_ref|}}}
TO
{{#ifeq:{{{nocty|}}}|yes||{{#if:{{{county|}}}{{{parish|}}}{{{borough|}}}{{{municipality|}}}{{{division}}}||!scope="col"{{!}}{{#switch:{{{state}}}|AK=Borough|LA=Parish|PR=Municipality|DC=Quadrant|ON=Division|#default=County}}}}}} {{#if:{{{location|}}}||!scope="col"{{!}}Location{{{location_ref|}}}}} !scope="col"|{{#ifeq:{{{unit|}}}|km|km|{{#switch:{{{state}}}|CA=Postmile|ON=km|PR=km|#default=Mile}}}}{{{length_ref|}}}
-- ʄɭoʏɗiaɲ τ ¢ 22:23, 18 October 2011 (UTC)
Edit request on 15 April 2012
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please change:
{{#switch:{{{state|}}}|MI=highway|#default=route}}
to
{{{type|route}}}
This will insert a new parameter called type
that would allow articles to substitute other descriptors instead of route, and remove a Michigan-specific switch. (The {{MIinttop}} template will instead specify its default of highway using the type code.) In the end, articles on county roads can be set to say "road" instead of "route" or "highway", better matching the text in the rest of article.
Imzadi 1979 → 10:21, 15 April 2012 (UTC)
For California junction lists, the km table column should not be used, as California uses postmiles instead of mileposts. Currently, the exit numbers are in the km column, and the columns to the right of it are shifted over by one. This should definitely be fixed. Thanks. -happy5214 23:55, 8 June 2012 (UTC)
- Use {{CAinttop}} instead. –Fredddie™ 00:06, 9 June 2012 (UTC)
- Did not see that. Thanks. -happy5214 02:12, 9 June 2012 (UTC)
Edit request on 22 June 2012
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
from
|type={{{type|highway}}}
to
|type={{{type|}}}
This seems to have been changed accidentally when we did all the updates last month. –Fredddie™ 17:04, 22 June 2012 (UTC)
- Removed — Martin (MSGJ · talk) 17:10, 22 June 2012 (UTC)
Location hatnote without county?
[edit]Kilpatrick Turnpike is entirely within one city but lies in multiple counties. I'd like to use the default "The entire route is in Oklahoma City" hatnote, but still use the county column. Passing the location to the template but not the county correctly omits the location from the table, but fails to display the hatnote. I'm guessing the portion of the template logic that controls the hatnote decides whether to display it based on whether the county parameter is non-null. Could we change it so that this is not the case? —Scott5114↗ [EXACT CHANGE ONLY] 10:14, 27 August 2012 (UTC)
- See Template talk:Jcttop#jcttop support for independent cities?. QM400032 (talk) 05:06, 17 May 2013 (UTC)
Edit request on 2 September 2012
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
This is a two-part request.
- Copy and paste the contents of
{{Jcttop/core/sandbox}}
to{{Jcttop/core}}
.- This will fix a couple issues reported in the last 24 hours. It will give us the ability to drop the sub2 (location) column without needing the sub1 (county) column. It will also allow us to turn off the hatnote altogether with
|hatnote=off
.
- This will fix a couple issues reported in the last 24 hours. It will give us the ability to drop the sub2 (location) column without needing the sub1 (county) column. It will also allow us to turn off the hatnote altogether with
- Copy and paste the contents below the first line of
{{Jcttop/sandbox}}
to{{Jcttop}}
. Please make sure Jcttop is calling{{Jcttop/core}}
and not{{Jcttop/core/sandbox}}
.
–Fredddie™ 02:26, 2 September 2012 (UTC) Done --Rschen7754 02:29, 2 September 2012 (UTC)
Between states and countries
[edit]Shouldn't there be an alternate template for different states and countries?QM400032 (talk) 23:36, 13 May 2013 (UTC) — Preceding unsigned comment added by QM400032 (talk • contribs)
- Some do have them. For the most part, though, this template can handle 99% of cases. –Fredddie™ 23:38, 13 May 2013 (UTC)
- An example of a state-specific template that can replace this one is
{{CAinttop}}
. TCN7JM 23:39, 13 May 2013 (UTC)
"Both" answer doesn't seem to work on the "state_col" parameter
[edit]I typed:
{{jcttop|state_col=both}}
and instead it shifts columns back. What am I doing wrong? QM400032 (talk) 22:29, 15 May 2013 (UTC)
{{Jcttop|state_col=<whatever you type here>}}
gets you...
<whatever you type here> | County | Location | mi | km | Destinations | Notes |
---|---|---|---|---|---|---|
That being said, I'm not exactly sure what problem you're experiencing. –Fredddie™ 23:21, 15 May 2013 (UTC)
"County_col" parameter
[edit]Shouldn't there be a county/division parameter for routes between U.S. and Canada? QM400032 (talk) 23:01, 15 May 2013 (UTC) — Preceding unsigned comment added by QM400032 (talk • contribs)
- I'm not sure there are any routes that go between the US and Canada for which we'd create a junction list. –Fredddie™ 23:23, 15 May 2013 (UTC)
- Yeah. All the routes I know of that cross the border change designations and thus require a new junction list in a new article. TCN7JM 02:11, 16 May 2013 (UTC)
- Actually, there are five routes that DO have the same designation in United States and Canada (in no particular order): LSCT, LHCT, LECT, and Seaway Trail (All routes make up 80% of the Great Lakes Circle Tour.). QM400032 (talk) 03:39, 17 May 2013 (UTC) — Preceding unsigned comment added by QM400032 (talk • contribs)
- And since those tours comprise several individual state or provincial highways which would have their own junction lists, none of the tours needs their own junction lists. Imzadi 1979 → 03:42, 17 May 2013 (UTC)
- Actually, there are five routes that DO have the same designation in United States and Canada (in no particular order): LSCT, LHCT, LECT, and Seaway Trail (All routes make up 80% of the Great Lakes Circle Tour.). QM400032 (talk) 03:39, 17 May 2013 (UTC) — Preceding unsigned comment added by QM400032 (talk • contribs)
Bugs
[edit]There's a current problem with another program, "indep_city". It's supposed to show "The entire route is in city", but instead it shows "The entire route is in ". Your help would be greatly appreciated!!! — Preceding unsigned comment added by QM400032 (talk • contribs)
The entire route is in Fairfax.
mi | km | Destinations | Notes |
---|---|---|---|
Yep, there is something wrong. I think we attempted to fix it last year, but we had to revert right away because it broke other things. –Fredddie™ 05:50, 17 May 2013 (UTC)
I am also having this issue, I tested it with Honolulu and Denver.
The entire route is in Honolulu.
mi | km | Destinations | Notes | ||
---|---|---|---|---|---|
1.000 mi = 1.609 km; 1.000 km = 0.621 mi |
and
The entire route is in Denver.
mi | km | Destinations | Notes | ||
---|---|---|---|---|---|
1.000 mi = 1.609 km; 1.000 km = 0.621 mi |
--AdmrBoltz 14:20, 31 December 2013 (UTC)
My turn. –Fredddie™ 02:02, 1 January 2014 (UTC)
The entire route is in Denver.
mi | km | Destinations | Notes |
---|---|---|---|
Yeah, I pointed this out in 2011 in a section above. It got fixed using the indep_city code, but then got changed back for some reason. -- LJ ↗ 06:43, 4 January 2014 (UTC)
unnum and former
[edit]Take a look at U.S. Route 25 in Michigan. At the time it last existed, Michigan had not yet applied exit numbers to the state, so all of the exits along the freeway segments of US 25 were unnumbered. The template used to correctly use the past tense when |unnum=yes
|former=yes
were jointly set, resulting in "All exits were unnumbered." (emphasis mine), but now we have "All exits are unnumbered." (emphasis mine again.) Can this get fixed. US 25 is at ACR and it's headed to FAC later this year, so the issue will need to be corrected before long. Imzadi 1979 → 13:49, 30 July 2015 (UTC)
- Fixed in the core sandbox. Chinissai (talk) 14:16, 10 May 2016 (UTC)
- Any movement on this, Chinissai? Imzadi 1979 → 06:09, 26 October 2016 (UTC)
State in the hatnote
[edit]Would it be possible to throw in some sort a switch to turn on the state in a hatnote. Allow me to demonstrate.
- Current output
The entire route is in Caledonia County.
Location | mi | km | Destinations | Notes |
---|---|---|---|---|
- Example output
The entire route is in Caledonia County, Vermont.
Location | mi | km | Destinations | Notes |
---|---|---|---|---|
This would be useful in RCS lists where more than one state is listed. –Fredddie™ 23:54, 25 October 2016 (UTC)
Hatnote parameter request
[edit]Is it worth the trouble to add a parameter to trigger a hatnote that says something to the effect of, "This route is inventoried from north to south"? I would suggest that the parameter be called "wrongdir" and used like this: |wrongdir=north
or |wrongdir=east
(for east to west). In addition, 'route' would have to be affected by |type=
. –Fredddie™ 00:59, 3 December 2016 (UTC)
Can we suppress the miles column?
[edit]Hi, I'm editing New Zealand highways. Also, it's 2024 and there are now two entire generations of people who don't even know what a mile is. Is there an option to suppress the miles column? It's just confusing, especially since the numbered motorway exits in Auckland are based on the whole-number of kilometres from a fixed point. — Jon (talk) 04:16, 8 June 2024 (UTC)
- @Jonathanischoice: there isn't such an option. Remember, we serve a global audience, and there's some countries that still use miles on their roadways: the US and the UK. Imzadi 1979 → 04:30, 8 June 2024 (UTC)