Jump to content

Template talk:Adjacent stations

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Module talk:Rail/doc)
[edit]

Description of suggested change: Please check Module:Adjacent stations/sandbox (import from zh:Module:Adjacent stations/experimental by User:David Xuang). It can calling a line terminus link. Experimental usage can be seen at zh:Template:Line terminus link and zh:Template:重庆轨道交通RDT/环线. @David Xuang: Thanks again for your work! --Tim Wu (talk) 14:00, 3 January 2023 (UTC)[reply]

Well I suppose that at least you need to merge local station() with p._terminus before finalizing this. p._terminusTable also includes duplicate codes as here.
Also, there has been a recent talk regarding this. Maybe ask the participants for some advices as well. David Xuang (talk) 17:00, 3 January 2023 (UTC)[reply]
I've done the merging plus adding fallback to Template:S-line data. Please test my patch carefully as the main function has been touched. David Xuang (talk) 17:52, 3 January 2023 (UTC)[reply]
Do we have testcases for how this would be used on an article? Cards84664 18:53, 3 January 2023 (UTC)[reply]
@Cards84664 I've tried Module:Adjacent_stations/testcases but it doesn't seem to work. Will try again later. --Tim Wu (talk) 01:08, 4 January 2023 (UTC)[reply]
I initially created zh:Module:Adjacent stations/experimental for use in Template:Routemaps (through-services, cross-platform interchanges), so they will sync with the changes of lines or services automatically. As for this patch, someone may want to use this in the line/station infobox or layout table (like here in the infobox) as well, and p._terminusTable is exposed so custom formatting and other extensions may be possible for specialised use in some systems. These are all the cases I could come up with. David Xuang (talk) 08:33, 4 January 2023 (UTC)[reply]
@ThylacineHunter, Mackensen, and Bouzinac: Please review this patch. Regards, Tim Wu (talk) 01:04, 4 January 2023 (UTC)[reply]
Back when I posted this code, I had it working on a fandom.com project (that has since been removed), and shared it as a starting point for something that was on the todo list. I remember creating it by copying the 'getStation', 'getLine' & 'getColor' functions and deciphering the code using my limited knowledge on the programming language. I am no expert in it, but I managed to get it to a point where I was able to get the desired results. I'm not too able to help as I haven't used this programing language since. -- ThylacineHunter (talk) 02:54, 4 January 2023 (UTC)[reply]

@Tim Wu @David Xuang Can the type be moved to a named arg like how {{rcb}} uses? REEDriler (talk) 06:24, 4 January 2023 (UTC)[reply]

In Module:Adjacent stations/sandbox lines 739 & 740... args[3] & args[4] could be swapped. -- ThylacineHunter (talk) 06:33, 4 January 2023 (UTC)[reply]
If wanting type as unnamed, then leave off the "args[x] or " bit. -- ThylacineHunter (talk) 06:36, 4 January 2023 (UTC)[reply]
Done. Also I removed the {{{side}}} alias as I'm not sure about its naming. Advice on how it shall be called? David Xuang (talk) 08:12, 4 January 2023 (UTC)[reply]
{{{direction}}}?. -- ThylacineHunter (talk) 09:19, 4 January 2023 (UTC)[reply]
Then I guess we shall also add support for forward/down (right) and backward/up (left)? David Xuang (talk) 11:57, 4 January 2023 (UTC)[reply]
Module:Adjacent stations uses the terms "left terminus", "right terminus"... Are you suggesting that the whole thing needs to be remade for forward/down and backward/up??? -- ThylacineHunter (talk) 01:27, 5 January 2023 (UTC)[reply]
Not the whole thing... forward/down can equate "prefix" to "right" in the beginning of func.; but then idt its needed.
Yeah, it should be easy to implement but not necessarily needed indeed. Just wondering if any system strongly prefers to use these terms instead of left/right. David Xuang (talk) 01:22, 6 January 2023 (UTC)[reply]
Cant wait to update the pages 😌 REEDriler (talk) 15:54, 5 January 2023 (UTC)[reply]
Me too! But I guess it would be a huge(?) work to add the support (Note: for other functions to keep the same experience. I just misunderstood Reed's reply.) for up/down terminus, and to validate the whole function. We can verify and add this small patch first. —Tim Wu (talk) 16:16, 5 January 2023 (UTC)[reply]
(edit conflict) @Tim Wu So its not needed then. There are going to be diagonal lines, (coil but linear), can't comfort to all of them. Let it just support left(L), right(R)? REEDriler (talk) 16:33, 5 January 2023 (UTC)[reply]

This request would likely get implemented faster if it were clear what was being requested and that everyone agreed to it. The impression I get from this discussion is that the changes to be made are still in flux, so I'm holding off using my template-editor rights until they settle down. * Pppery * it has begun... 20:12, 5 January 2023 (UTC)[reply]

Yeah, maybe just use left/right, since having alias for dictionary keys can be tricky and confusing to both maintainers and users. But we still need to name the arg, as positional-only arg should not come after named args (|system=Guangzhou Metro|line=3|3=right is terrible). |direction= is currentlt live in sandbox instead of |side=, but I'm okay with either or both. David Xuang (talk) 01:34, 6 January 2023 (UTC)[reply]

I personally prefer shorter named parameters for small templates (like this would be). Longer names are ok for things like infoboxes where you need to clearly define a parameter. -- ThylacineHunter (talk) 01:42, 6 January 2023 (UTC)[reply]
@REEDriler @ThylacineHunter @David Xuang Hi,
1. I'm also okay with |direction= or |side= . Line 739, can we support both names? Like:
local side = mw.ustring.sub(mw.ustring.lower(args[3] or args.direction or args.side or ''), 1, 1)
2. And for |type= at line 740, I think we don't need to remove the unnamed args. Just same as p._station (line 707):
typeN = args[4] or args.type
Regards, Tim Wu (talk) 10:07, 12 January 2023 (UTC)[reply]
Hi.
1. one name pls. Since all are OK with either, considering shorter names, archive mentions, even when almost all the pages will be using just pos. - |side=
2. I think its the exact [1], so any changes should reflect there as well else leave as it is. imo its good as it is now.
or how about {{ltl-R|Guangzhou Metro|3}} and {{ltl-L|Guangzhou Metro|3}} instead of {{ltl}} since using just L/R is decided? then, args[3] is utilized for type like in stl, lnl, rcr.. and |side= or |direction= won't be needed. REEDriler (talk) 14:23, 12 January 2023 (UTC)[reply]
“how about {{ltl-R|Guangzhou Metro|3}} and {{ltl-L|Guangzhou Metro|3}} instead of {{ltl}} since using just L/R is decided?” I don't think this is a good idea to resolve the issue of parameter naming. You have to maintain 2 templates, and it would be very complicated for other templates that want to call it. Tim Wu (talk) 14:34, 12 January 2023 (UTC)[reply]
I've renamed |direction= to |side= at line 739. Tim Wu (talk) 14:45, 13 January 2023 (UTC)[reply]
I'm reopening this request as there are currently no follow up suggestions. --Tim Wu (talk) 15:57, 16 January 2023 (UTC)[reply]
@Pppery @Martin Sorry for bothering. I think this patch is stable. Can it be implemented, or have to wait for a longer times to meet the policy? Regards, Tim Wu (talk) 14:27, 27 January 2023 (UTC)[reply]
@Pppery, Martin, REEDriler, ThylacineHunter, David Xuang, and Cards84664: Hi all, I've added some testcases in Module_talk:Adjacent_stations/testcases, and all of them have met the expected results. Please review them. The test module can be found at Module:Adjacent stations/testcases/Test module. I think the patch is okay and ready to be implemented. Regards, Tim Wu (talk) 16:24, 28 January 2023 (UTC)[reply]
Sure it meets the expected results @Tim Wu. It'll be added eventually. As they are to be held accountable for all changes they make, Its testing them, so they're a bit hesitant dw, they can't keep it hanging forever. If you like {{ltl}}, you can start using it right away as It can be re-targeted anytime. No problem! REEDriler (talk) 09:35, 29 January 2023 (UTC)[reply]

 Done * Pppery * it has begun... 20:36, 29 January 2023 (UTC)[reply]

Thanks! -- Tim Wu (talk) 01:15, 30 January 2023 (UTC)[reply]
It's good to see the final result for the todo item "Function for calling a line terminus (for station layouts?)" that I provided the initial work for way back in September 2020. I look forward to finally being able to use this. -- ThylacineHunter (talk) 03:21, 30 January 2023 (UTC)[reply]

March 2023

[edit]

@Tim Wu, ThylacineHunter, David Xuang, Cards84664, and Pppery: Hi, there's a small problem, "LineN" doesn't get updated from alias table. — Preceding unsigned comment added by REEDriler (talkcontribs) 19:50, 17 March 2023 (UTC)[reply]

Maybe you didn't use lowercase key when defining alias mapping? (e.g. the ’key’ in the pair ['key'] = "line") David Xuang (talk) 07:17, 18 March 2023 (UTC)[reply]

To editor REEDriler: your notifications didn't work. Notifications only work when the notifier signs their post. So pinging @Tim Wu, ThylacineHunter, David Xuang, Cards84664, and Pppery: again for further analysis. P.I. Ellsworth , ed. put'er there 03:18, 18 March 2023 (UTC)[reply]

@REEDriler: Hi, could you provide a failed example? I found it works in Guangzhou Metro. —Tim Wu (talk) 04:07, 18 March 2023 (UTC)[reply]
My bad, See:
REEDriler (talk) 08:02, 18 March 2023 (UTC)[reply]
@David Xuang It seems that getStation using the original lineN. I've tried adding the following after line 749 and the error disappeared.
if typeN and data and data['aliases'] then typeN = data['aliases'][mw.ustring.lower(typeN)] or typeN end
Tim Wu (talk) 17:56, 18 March 2023 (UTC)[reply]
Ok. getLine takes care of that, I think it can be synced now? Thanks. REEDriler (talk) 20:05, 18 March 2023 (UTC)[reply]
In line 74 should "nil" be in quote marks? — Martin (MSGJ · talk) 09:21, 20 March 2023 (UTC)[reply]
Modified. REEDriler (talk) 21:06, 20 March 2023 (UTC)[reply]
I guess you are not using Module talk:Adjacent stations/testcases because most of the tests fail. But there is a lua error on that page which I can't immediately track down — Martin (MSGJ · talk) 21:30, 20 March 2023 (UTC)[reply]
Addressed the error. UnitTests of icons can be ignored as they don't seem to be working here. REEDriler (talk) 02:15, 21 March 2023 (UTC)[reply]
@REEDriler I think changes of color2 (color table) should be moved to another sandbox, as they are two different requests. --Tim Wu (talk) 01:26, 21 March 2023 (UTC)[reply]
:/ I don't think it's a request here, It can be removed later.It's better, isn't it? Everything will be loaded together. Milestone approach ;) REEDriler (talk) 18:34, 28 March 2023 (UTC)[reply]

Also made changes to {{rcb}} with addition of |station= to provide nat support to pages using {{rcb|inline=box}} <station>, making use of station format. REEDriler (talk) 10:36, 23 March 2023 (UTC)[reply]

Did the same for {{ric}} REEDriler (talk) 19:55, 23 March 2023 (UTC)[reply]

To editors Tim Wu, Martin and REEDriler: here it is a month later – is this ready to go? or no. P.I. Ellsworth , ed. put'er there 10:07, 23 April 2023 (UTC)[reply]

Disabled – no response. P.I. Ellsworth , ed. put'er there 13:17, 8 May 2023 (UTC)[reply]

Needed circular1 and circular2

[edit]

Unlike Template:s-line, Module:Adjacent stations does not have circular1 and circular2 and some stations have different circular like Tha Phra MRT station. We need circular1 and circular2 because it's too struggle to fix it. - Jjpachano (talk) 15:36, 11 January 2023 (UTC)[reply]

The template/module currently at Tha Phra MRT station appears to be the correct format, because the Blue Line crosses over itself and terminates outside of the circular loop, similar in function to Tochōmae Station. Cards84664 17:40, 11 January 2023 (UTC)[reply]
Toei Oedo Line
MRT Blue Line

Error

[edit]

Please check error on Madison station (Florida) to see if it can be fixed — Martin (MSGJ · talk) 21:37, 17 February 2023 (UTC)[reply]

 Done Pi.1415926535 (talk) 21:44, 17 February 2023 (UTC)[reply]

How do I add a new color myself?

[edit]

I want to add a new color to the Delhi metro. I wanna learn how to add these to the template. Footy2000 (talk) 19:33, 19 February 2023 (UTC)[reply]

@Footy2000 check out Category:India rail succession modules REEDriler (talk) 09:44, 20 February 2023 (UTC)[reply]
Thank you so much! I was curious since months regarding this, slowly trying to understand more of how Wikipedia functions. Footy2000 (talk) 10:11, 20 February 2023 (UTC)[reply]

Edit request, though I'm crap at finding the exact part that needs to be altered

[edit]

So Grand Central Madison was just moved to drop "station" from its name. Since the {{stl}} template is used on the LIRR stations navbox the link is now a redirect in a box, which is less than ideal. The stl call for Grand Central Madison needs to be updated, por favor. oknazevad (talk) 00:40, 21 February 2023 (UTC)[reply]

@Oknazevad {{stl|Long Island Rail Road|Grand Central Madison}}
The data page Module:Adjacent stations/Long Island Rail Road needs an exception mentioned like Grand Central Terminal. REEDriler (talk) 04:06, 21 February 2023 (UTC)[reply]

Hi, I am from Chinese Wikipedia. I think it should have a new function.

In Template:Adjacent stations, each line has two colour boxes. However, they can't be different. I suggest the new function below:

 	["line A"] = {
 		["color"] = "114514", -- This is the main colour which used in Template:Rail color. This colour appears at the left colour box.
 		["color2"] = "191981", -- This is not the main colour. This colour appears at the right colour box.
 		["left terminus"] = "X",
 		["right terminus"] = "Y"
 	},

This function is useful in Japan railways. I hope it can be added. 阿南之人 (talk) 04:53, 19 March 2023 (UTC)[reply]

Please post this at Template talk:Adjacent stations which covers discussion of the template and the module. You should get a response there, but if you don't, try WT:WikiProject Trains. Johnuniq (talk) 05:55, 19 March 2023 (UTC)[reply]

阿南之人, can you add a color2 entry to a preferred system sub module? REEDriler (talk) 20:12, 19 March 2023 (UTC)[reply]

@REEDriler no in Chinese Wikipedia, but I don't know is it okay here. 阿南之人 (talk) 00:18, 20 March 2023 (UTC)[reply]
Its okay. It needs to be tested first before you can ask it to be added. Try it out using {{Adjacent stations/sandbox}}. REEDriler (talk) 08:34, 20 March 2023 (UTC)[reply]
@REEDriler [2][3] no, it doesn't work here either.阿南之人 (talk) 09:12, 20 March 2023 (UTC)[reply]
@REEDriler: I mean these colour boxes: [4], okay? 阿南之人 (talk) 11:11, 20 March 2023 (UTC)[reply]
Ik and It's working!!!, see:
{{Adjacent stations/sandbox|system=sandbox/subpages|line=a|left=ha}}
Preceding station a鐵路 Following station
ha
Terminus
a線 Terminus
REEDriler (talk) 11:19, 20 March 2023 (UTC)[reply]
thank you! 阿南之人 (talk) 11:27, 20 March 2023 (UTC)[reply]
color2 doesn't seem to have the same naming conventions with the current entries. Using arrays could avoid adding new entry, and have better extendability for future. David Xuang (talk) 15:00, 20 March 2023 (UTC)[reply]
@Pppery: I endorse adding color2 to the module, I believe this would be very useful for rail lines and services that have two primary colors or interchangeable colors. Cards84664 17:12, 28 March 2023 (UTC)[reply]
Sorry, I don't have the time and motivation to review this right now. * Pppery * it has begun... 01:01, 30 March 2023 (UTC)[reply]
Alright, @Frietjes:? Cards84664 03:43, 30 March 2023 (UTC)[reply]
@Cards84664, 阿南之人, and David Xuang: where is the diff to review? I did a diff with the sandbox and got a whole bunch of changes that seem unrelated to this request. Frietjes (talk) 15:10, 30 March 2023 (UTC)[reply]
@Frietjes and MSGJ: It would be nicer if you could also look at the one above along with this as there's only one request. The other changes are just addressing minor errors, +useful errors, removing redundant conditionals, improved checks and a |station= addition. Thanks REEDriler (talk) 17:55, 30 March 2023 (UTC)[reply]
@Frietjes: The addition of a color2 parameter can be roughly found in this set of edits. Cards84664 17:33, 7 April 2023 (UTC)[reply]
Cards84664, okay, should be enabled now. let me know if I screwed it up. Frietjes (talk) 17:42, 7 April 2023 (UTC)[reply]
@Frietjes: It looks good, thank you. Cards84664 17:51, 7 April 2023 (UTC) [reply]
Preceding station Rapid Transit Following station
Flats East Bank Waterfront Line Tower City
Terminus
@阿南之人, REEDriler, and Cards84664: I have a question on naming conventions. The current name of color2 may suggest a whole series of parameters (color3, color4, etc.) as this template is not capable of. Maybe alt_color or color_alt is more appropriate? David Xuang (talk) 05:39, 10 June 2023 (UTC)[reply]

Some station articles are broken

[edit]

Some station articles are broken - see Königs Wusterhausen station and Lübbenau (Spreewald) station. Gonnym (talk) 12:38, 20 March 2023 (UTC)[reply]

Recent change by @Grahamec to Module:Adjacent stations/DB Regio Nordost. I believe they're working on it. Full list of affected articles: [5]. Mackensen (talk) 13:22, 20 March 2023 (UTC)[reply]
Yes I am working on various lines including RB 24, which is currently being worked as 2 disconnected sections, so it seems easiest to split it into RB 24-N and RB 24-S.--Grahame (talk) 13:33, 20 March 2023 (UTC)[reply]

Calau (Niederlausitz) station is also broken — Martin (MSGJ · talk) 10:03, 23 March 2023 (UTC)[reply]

WKD problems

[edit]

Some recent edits at Module:Adjacent stations/Warszawska Kolej Dojazdowa have introduced 'Lua error in Module:Adjacent_stations at line 237: Unknown line "WKD"' in the following articles.

@Antoni12345: If this cannot be fixed soon, please revert the edits and ask for assistance here. Johnuniq (talk) 08:22, 24 April 2023 (UTC)[reply]

Problem solved. Templates now render corectly in all mentioned above articles. — Antoni12345 (talk) 11:20, 24 April 2023 (UTC)[reply]
[edit]

Request for help: is there any solution to remove red links (of stations that do not have their articles) from appearing in the template? (+ if you're reading: do you know by any chance how to remove this redirect? https://en.wikipedia.org/w/index.php?title=Grodzisk_Mazowiecki_Rado%C5%84ska_railway_station&redirect=no) — Antoni12345 (talk) 14:45, 24 April 2023 (UTC)[reply]

@Antoni12345 to remove the red link you may either create a rd or link it to an article (eg. its line or system) from the data page. REEDriler (talk) 17:52, 24 April 2023 (UTC)[reply]
OK, thanks! Now I understand why this rd that i mentioned exists in the first place! — Antoni12345 (talk) 09:33, 25 April 2023 (UTC)[reply]


Is there a policy how to avoid red links which interrupts the sequence which is the reason to have these templates? I notice that sometimes very minor train stations with a single platform and track, serving a village of below 1000 inhabitants, have articles, maybe just to avoid breaking the sequence. At other times there are red links. Should we always create articles about every simple train stop, or should we include some infobox with adjacent station in articles about villages served? Is there a policy? --BIL (talk) 15:21, 27 May 2023 (UTC)[reply]

WP:N is the policy for determining if a topic is notable enough for an article. If it is not, then the minor station could be made into a redirect to the line. I think it would be nice if there was a way to turn off the link entirely but there is not right now. BLAIXX 15:33, 25 February 2024 (UTC)[reply]

Unknown line

[edit]

@Grahamec: Some recent edits have led to "Unknown line" errors (see Altshausen station + Aulendorf station + Bad Saulgau station + Sigmaringen station). I'm hoping you can fix. Johnuniq (talk) 01:14, 10 June 2023 (UTC)[reply]

Fixed now. I did have an alias for 6=6a, but it was at the wrong level. Still learning.--Grahame (talk) 02:31, 10 June 2023 (UTC)[reply]
Thanks. Similar issue with "RS" at Oberkochen station and Unterkochen station. Johnuniq (talk) 06:10, 10 June 2023 (UTC)[reply]
Fixed.--Grahame (talk) 13:29, 10 June 2023 (UTC)[reply]

Melbourne module possible name move

[edit]

Hi, please see a discussion that has taken place at Module talk:Adjacent stations/Melbourne#Name of the module. @Purin128AL: ping. Fork99 (talk) 08:38, 11 June 2023 (UTC)[reply]

Many errors

[edit]

Dozens of articles (for example, Allawah railway station) are showing "Lua error in Module:Adjacent_stations at line 206: attempt to index field '?' (a nil value)". That seems to be due to an edit at Module:Adjacent stations/Sydney Trains (diff) by Purin128AL. What is the fix? If lang "en-US" is incorrect, is the fix to delete that line? Johnuniq (talk) 10:51, 11 June 2023 (UTC)[reply]

@Johnuniq:  Fixed by reverting said edit. Yeah I'm no expert on how the module works, nor am I a programmer, but yeah the module is probably picky that "en-AU" probably isn't defined and it has a tantrum, not to worry, "en-US" seems to work just fine. Little side note: you've underestimated how many articles were affected haha (hint: all of them would have been)! Fork99 (talk) 11:01, 11 June 2023 (UTC)[reply]
Some of the Australia rail succession modules have lang="en-US" set and other do not have anything set. All this really controls is wether the templates display "station 1 towards station 2" or "station 1 toward station 2". This should probably be made consistent over all the Austrailia modules and if needed, an option could even be added into Module:Adjacent stations/i18n. -- WOSlinker (talk) 11:10, 11 June 2023 (UTC)[reply]
@WOSlinker: Ah right, thank you for the incredible piece of knowledge! In that case, I think towards makes more sense as Australian English is closer to British English than American English. I'll have a look to see which modules need changing. Fork99 (talk) 11:20, 11 June 2023 (UTC)[reply]
I reckon en-GB would be a more suitable option as in Australian English we use "towards". If there's any Australian English specific grammar we can add that into the Module. Purin128AL (talk) 11:21, 11 June 2023 (UTC)[reply]
As of now, the only difference between en-US and the others is "toward" vs "towards". And the only reason to use mw.clone for the en-US is to allow a change in the table; as long as AU is identical to GB, no need to clone it.Animal lover |666| 17:06, 15 August 2023 (UTC)[reply]

New swap parameter suggestion

[edit]
  • swapn would be nice, a parameter that swaps left and right for a row in the output table. Useful to match left and right to what's suitable for a station. For example two lines joining, might without it show same destination in opposite directions in the table, even if they go in same directions in the real station.

BIL (talk) 13:47, 7 August 2023 (UTC)[reply]

As this https://fr.wikipedia.org/wiki/Utilisateur:Bouzinac/Brouillon2 (frwiki) ? Bouzinac (talk) 14:16, 7 August 2023 (UTC)[reply]

New inline type for Rail color box?

[edit]

Reading the KTM West Coast railway line article and found that certain rail color boxes are hard to read due to the colour assigned to the line. So I propose one inline type that is similar of xroute as in the text is black for readability purpose. Limyx826 (talk) 16:35, 3 October 2023 (UTC)[reply]

Per MOS:TEXT#Color, text in prose should not be colored. Those should be converted to regular text in that article. Pi.1415926535 (talk) 17:29, 3 October 2023 (UTC)[reply]

Errors

[edit]

There seem to be script errors on many station articles caused by this module, e.g. Komnino railway station. Is there any change that might have caused this? — Martin (MSGJ · talk) 06:51, 25 October 2023 (UTC)[reply]

Probably the recent revert at Module:Adjacent stations/PKP Intercity by Antoni12345 (talk · contribs). It does look like they've been fixing them, but they haven't edited much in a few days. Mackensen (talk) 10:31, 25 October 2023 (UTC)[reply]
@Antoni12345: are you going to fix these or can we revert these changes? — Martin (MSGJ · talk) 10:55, 25 October 2023 (UTC)[reply]
@MSGJ:, yes I'm on it. There's just a lot of these station articles, majority of which don't even meet WP:NTRAINSTATION criteria. They seem to be created in 2000s by one specific editor (CCMichalZ) who decided to use Module:Adjacent stations for systematisation of railway phisical infrastructure (rail lines which in Poland each has a specific number) rather than train services. In my opinion this use isn't only against Template:Adjacent stations primary purpose, but also lacks any usefullness for a regular encyclopedia (which Wiki is - it is not a data base) user. Also these station articles lack of proper source citations and usually only transclude informations from www.bazakolejowa.pl which is Polish editors-based portal with content provided by train enthusiasts... Antoni12345 (talk) 12:17, 25 October 2023 (UTC)[reply]
Yes, I had trouble verifying the data in some cases. I don't have a good set of Polish sources for working on these articles; I did remove the templates from any stations that are explicitly disused. @Antoni12345 should the remaining 30 or so just be removed for now? I can do that with WP:JWB. Mackensen (talk) 14:39, 25 October 2023 (UTC)[reply]
@Mackensen: if I understood you right (you want to remove {{Adjacent stations}} from all station articles returning Lua error, that most of which are problematic articles) it would be very helpfull! Even if there is any major station article in there, the data in {{Adjacent stations}} is very likely not up to date. — Antoni12345 (talk) 15:11, 25 October 2023 (UTC)[reply]
@Antoni12345 Done. Let me know if you would like help with the PKP module. Module:Adjacent stations/ÖBB and Module:Adjacent stations/MÁV START may be useful for reference. Mackensen (talk) 18:07, 25 October 2023 (UTC)[reply]

Edit request 7 December 2023 - For sandbox project

[edit]

Hey, I am trying to add something for a sandbox page project: An NYCS 11 "Flushing-Greenpoint Local". However, I can't do it on my own because I don't know much about Lua scripting, which I tried before. I would need some help on this. Please let me know if you have futher information. Thanks. RandomWikiPerson_277talk page or something 17:21, 7 December 2023 (UTC)[reply]

This is not an edit request for Template:Adjacent stations. Please link to the page that you need help with. – Jonesey95 (talk) 17:43, 7 December 2023 (UTC)[reply]
It appears that you are trying to invent a subway line, "Flushing-Greenpoint local", that is not listed at List of New York City Subway lines. You have created {{NYCS Flushing-Greenpoint}}, which links to 11 (New York City Subway service), a redirect to a defunct line. What is your goal? – Jonesey95 (talk) 17:48, 7 December 2023 (UTC)[reply]
@RandomWikiPerson277: Wikipedia is NOT a hosting service for your fantasy creations. It is ridiculous to ask that editors spend their limited time supporting your fictional endeavors. Please find somewhere other than Wikipedia for your fantasy creations. Pi.1415926535 (talk) 18:27, 7 December 2023 (UTC)[reply]
Hello,
I understand what you said. I know that this was a learning experience, and I apologize for the inconvience caused. RandomWikiPerson_277talk page or something 18:29, 7 December 2023 (UTC)[reply]
Also, I will try to instantly delete the pages that are marked for speedy deletion. Again, sorry for the inconvience caused. RandomWikiPerson_277talk page or something 18:32, 7 December 2023 (UTC)[reply]
I was just making a proposal for an 11 line service, called the Flushing-Greenpoint Local, running in Queens and Brooklyn. I was testing things out in my sandbox page with the NYCS station template, but it's completly compicated. I had to edit and create multiple pages to get it compelete, but it was a total mess. The proposed 11 service would run between Flushing-Main Street in Queens. and the intersection of Bedford Av and Grand St in Brooklyn. I tested out the track layout at first and it worked fine, but the NYCS station information template, it was a complete mess. I didn't mean it to redirect to a defunct line. Thanks. RandomWikiPerson_277talk page or something 18:28, 7 December 2023 (UTC)[reply]

Unknown line Intercity/Sprinter

[edit]

@Parwa104: In case you miss them, the following currently need a fix. I think that is due to changes at Module:Adjacent stations/Nederlandse Spoorwegen.

Johnuniq (talk) 06:17, 20 December 2023 (UTC)[reply]

Edit request 1 January 2024 : short line link?

[edit]

Description of suggested change: A short version of Template:Line link using the short name instead when available. Use case is similar to Line link, except when the short name is preferred. I'm not familiar enough with Lua, but I have tried implementing a version of it in sandbox based on the _box function in the module (which references the short name and extracts the link as well).

Diff: https://en.wikipedia.org/w/index.php?title=Module%3AAdjacent_stations%2Fsandbox&diff=1192925219&oldid=1192919681

- oahiyeel talk 02:26, 1 January 2024 (UTC)[reply]

 Done I haven't exhaustively tested this code, but it seems vaguely reasonable to me and just adding new functions can't possibly break anything. * Pppery * it has begun... 15:51, 9 January 2024 (UTC)[reply]

Edit request 13 February 2024

[edit]

Description of suggested change: Prague Metro has been using for years different logo which is now available through Commons --Bilykralik16 (talk) 00:22, 13 February 2024 (UTC)[reply]

 DoneJonesey95 (talk) 01:02, 13 February 2024 (UTC)[reply]

Adjacent stations/Maryland Transit Administration

[edit]

@Mackensen: I think some tweaking is needed following recent edits at Module:Adjacent stations/Maryland Transit Administration to avoid the error at {{Baltimore Transit}} ("Lua error in Module:Adjacent_stations at line 430: "title" is missing from the data page"). Johnuniq (talk) 23:27, 6 March 2024 (UTC)[reply]

@Johnuniq Got it. I'll watch out for any others. Mackensen (talk) 23:31, 6 March 2024 (UTC)[reply]

Disambiguation issues

[edit]

I found two disambiguation pages which are being linked to from this template. I may be mistaken, but I think that adding parenthetical disambiguators needs to be done within the template here (versus in the template call). I'm not sure how that would be done, but it seemed like this would be the place to ask about it?

Thanks! Cleancutkid (talk) 06:48, 15 April 2024 (UTC)[reply]

 Fixed at Module:Adjacent stations/JR Kyushu. – Jonesey95 (talk) 14:44, 15 April 2024 (UTC)[reply]

Another disambiguation request

[edit]

Sorry, I don't quiiite understand this template enough to try to edit it myself, but I found another station with an issue, this time in the M3 line of Module:Adjacent stations/Sofia Metro. The template goes to Teatralna Metro Station, but needs to instead go to Teatralna Metro Station (Sofia Metro). The error is visible from the articles for the adjacent stations, Orlov Most Metro Station and Hadzhi Dimitar Metro Station. Thank you! Cleancutkid (talk) 04:24, 30 April 2024 (UTC)[reply]

I've updated it. -- WOSlinker (talk) 07:57, 30 April 2024 (UTC)[reply]

Template-protected edit request on 6 May 2024

[edit]

Hello, can a module for Dreamstar Lines be added? Thank you! OrdinaryScarlett (talk) 20:58, 6 May 2024 (UTC)[reply]

I don't see a need to add it until it proves to be anything more than vaporware. There's a nigh-endless stream of private companies that propose shiny new services and never go anywhere - Boston Surface Railroad, X Train, Z-Train, AmeriStar Rail, etc. Exactly one - Brightline - has actually gone through, and that was an existing railroad starting on its own property. I don't think we should clog up station infoboxes with services like these until it's clear they're actually going to happen. Pi.1415926535 (talk) 21:30, 6 May 2024 (UTC)[reply]
 Not done for now: please establish a consensus for this alteration before using the {{Edit template-protected}} template. — Martin (MSGJ · talk) 10:11, 7 May 2024 (UTC)[reply]

Template-protected edit request on 21 May 2024

[edit]

For Missoula Montana's previous Amtrak station, an incorrect link is being used, it should be this page "Missoula station (Northern Pacific Railway)". Thanks! GusterPosey (talk) 02:36, 21 May 2024 (UTC)[reply]

Bug fix required

[edit]

The optional |size= argument (see Template:Rail icon#Parameters) produces an error rather than changing the icon size. Useddenim (talk) 16:51, 24 June 2024 (UTC)[reply]

Example of where it's broken? Mackensen (talk) 17:00, 24 June 2024 (UTC)[reply]
How about right here: {{ric|Tyrol S-Bahn|S1|size=50px}}50px|S1? Useddenim (talk) 19:21, 24 June 2024 (UTC)[reply]
Interesting. Seems to be limited to textual "icons"; for example, {{ric|Salzburg S-Bahn|S1|size=50px}} works just fine. Given that there isn't an actual image, I suppose it should just do nothing in this case? Mackensen (talk) 20:42, 24 June 2024 (UTC)[reply]
No, |size= should then scale the text. Useddenim (talk) 20:46, 24 June 2024 (UTC)[reply]
The documentation appears to say that "size" will be ignored unless "system icon format" is set to "image". In this case, in Module:Adjacent stations/Tyrol S-Bahn, "system icon format" is set to route, but "size" is being passed through instead of discarded: all inputs except "alt" and "size" are passed through appropriately. That looks like a bug to me. (Edited to add: We should not pass along "size" to change the size of text in px values, IMO.)– Jonesey95 (talk) 22:49, 24 June 2024 (UTC)[reply]
Is there a way that the size parameter could be figured as a percentage to then change the text-height? Useddenim (talk) 01:47, 25 June 2024 (UTC)[reply]

Edit request 2024-07-04

[edit]

Please add notheme to the class attribute for 'body banner' on line 179 of Module:Adjacent stations (sandbox edit). This fixes an issue with the line colors not displaying on dark mode when embedded in {{{services}}} in {{Infobox station}}, compare current Helsinki Central Station with Special:Permalink/1232615211 of my sandbox using the sandbox version of this module. Thanks. Taavi (talk!) 17:26, 4 July 2024 (UTC)[reply]

 Done myself. Taavi (talk!)

Edit request 9 July 2024

[edit]

Description of suggested change: Hey all, I need to change the style of a transit agency across all it's pages, because, due to a rebrand, the colors are now different, and I have no idea how to do it myself. If someone could help it'd be great!

Cloudsarepretty (talk) 04:52, 9 July 2024 (UTC)[reply]

 Not done for now: There is no specific request here. Please link to an affected article and to a reliable source showing the new colors. – Jonesey95 (talk) 05:41, 9 July 2024 (UTC)[reply]
Hi, sorry about that. The agency is SacRT and they recently updated their logo as seen on their website / social channels, therefore also updating their color scheme. The requested colors are: Background #00246A and Text #E0F0FF for visibility. Cloudsarepretty (talk) 08:46, 9 July 2024 (UTC)[reply]
Just realized I forgot to actually include an article. You can see on any SacRT station article, (for example, Fruitridge station) that it still has the dark blue and gold color scheme. I have reached out to get the operator logo updated to the new one as well. Cloudsarepretty (talk) 08:51, 9 July 2024 (UTC)[reply]
The module is at Module:Adjacent stations/SacRT. The background color seems to be the same, so you should just need to update the header text color. -- WOSlinker (talk) 11:29, 9 July 2024 (UTC)[reply]
I have successfully changed it. How do I change the Rail-interchange icon? Cloudsarepretty (talk) 18:42, 9 July 2024 (UTC)[reply]
In Template:Rail-interchange look for "File:Sacramento_Regional_Transit.svg" and replace with "File:Sacramento_Regional_Transit_2024.jpg". It's template editor protected though, so I've made the change for you. -- WOSlinker (talk) 19:06, 9 July 2024 (UTC)[reply]
Amazing! Thanks So Much! Cloudsarepretty (talk) 19:27, 9 July 2024 (UTC)[reply]
 Done Cloudsarepretty (talk) 19:28, 9 July 2024 (UTC)[reply]

font-family specified in Module:Adjacent stations subpages

[edit]

I'm seeing font-family specified in about 300 subpages of Module:Adjacent stations. This appears to contradict MOS:FONTFAMILY. Some of them specify "sans-serif", which is possibly acceptable, but there are definitions like "Copperplate", "Arial", "Tahoma", "Times New Roman", and "Helvetica" that should probably be removed. – Jonesey95 (talk) 05:21, 10 July 2024 (UTC)[reply]

dab fixes for Shimabara Railway

[edit]

I finally started to get comfortable adding disambiguators to the code here for JR Kyushu, but now am running into issues with how to do so for stations on the Shimabara Railway Line (at Module:Adjacent stations/Shimabara Railway). I think that the following list covers all of them:

I can do most of them if someone else can help me get started, or whatever is easiest. Thanks! Cleancutkid (talk) 06:23, 4 August 2024 (UTC)[reply]

I've updated Module:Adjacent stations/Shimabara Railway. -- WOSlinker (talk) 08:12, 4 August 2024 (UTC)[reply]
Thanks! Cleancutkid (talk) 22:58, 4 August 2024 (UTC)[reply]

Capitalisation: Former Services

[edit]

Please update the template so that the column heading text "Former Services" (and anything similar, if applicable) uses sentence case, ie "Former services", per WP:HEADERS. Sample page that uses the template: Demondrille railway station. Mitch Ames (talk) 04:05, 15 August 2024 (UTC)[reply]

That titling is specific to Module:Adjacent stations/State Rail Authority. Mackensen (talk) 10:36, 15 August 2024 (UTC)[reply]
This has been fixed. Thank you for providing a link to an example page! It is always helpful. – Jonesey95 (talk) 00:49, 16 August 2024 (UTC)[reply]

Accessibility issues created by the Rail color box template

[edit]

Adding {{Accessibility dispute}} to the {{Rail color box}} template documentation.

In brief, some of the parameters in that template facilitate the creation of inaccessible content due to insufficient contrast. They would best be removed and their values redirected to the accessible versions that are already provided by that template.

Here are the details:

I respectfully suggest that the following parameter values be retired and redirected to other values for accessibility reasons:

  • route
  • broute
  • croute
  • xroute

Additionally, the following may cause problems and need to be evaluated for removal and redirection as well:

  • link
  • ldot
  • lsquare

And as candidates for the accessible replacement values:

  • yes
  • small
  • dot
  • square

The issues are that:

  • Route logo colors often do not meet WCAG 2.1 AA for contrast. A logo itself does not need to meet contrast requirements, but when used for a text or graphic link, then it would need to meet contrast. Using yes, small, dot, or square allows the primary logo color but without harming accessibility.
  • Without a text link (as provided by yes, small, dot, square), the site visitor may not be able to read the link due to color blindness or low vision.
  • Further, the background may have insufficient contrast with the link underline, when provided, for the site visitor to be able to distinguish between links to pages that exist vs. links to pages which do not exist. If the visitor has their preferences set to always underline links, they may not be able to see the link underline.
  • link, ldot, and lsquare are accessible only if there is an accompanying text link. Since yes, small, dot and square automatically provide that text link, they are preferable to link, ldot, and lsquare.

Please consider this change. Thisisnotatest (talk) 07:35, 4 October 2024 (UTC)[reply]

@Thisisnotatest just a note that {{Bahnlinie}} is an older template that delivers the croute option with no fallback. Mackensen (talk) 11:19, 4 October 2024 (UTC)[reply]
@Mackensen: Thank you for the heads up. I've added the template to that post as well. Thisisnotatest (talk) 03:46, 8 October 2024 (UTC)[reply]

Adjacent stations module appears not to respect WCAG 2.0 AA for contrast

[edit]

Adding the {{overcolored}} template to this module.

It appears that this module is not correctly calculating the text color for text over a route icon. For instance, Module:Adjacent stations/Buenos Aires Underground produces the following:

Correct colorations:

White text on a colored background where white is accessible:

, , ,

Black text on a colored background where black is accessible:

Incorrect colorations:

White text on a colored background where black is accessible but white is not (followed by the same line in accessible text):

(A), (B), (G), (I), (P)

Conclusion:

If I examine the code for Module:Adjacent stations/Buenos Aires Underground, only the bubble color is shown. The text color is not. This implies to me that the text color is being calculated in {{Adjacent stations}} instead.

The algorithm needs to be changed to produce accessible color combinations between text and background.

Thisisnotatest (talk) 22:16, 19 October 2024 (UTC)[reply]