Template talk:Adjacent stations/Archive 3

La Grange Road station
Would someone please fix La Grange Road station which is showing 'Unknown line "Minneapolis-St. Paul"' at the bottom of the infobox. Thanks. Johnuniq (talk) 07:40, 2 May 2019 (UTC)
 * ✅ Pi.1415926535 (talk) 08:41, 2 May 2019 (UTC)

Thanks, here are some more I don't know how to fix: Johnuniq (talk) 00:15, 4 May 2019 (UTC)
 * 16th Street station (Oakland)
 * Chicago Union Station
 * Michigan Central Station
 * ✅ Those four were all issues with en dashes versus hyphens; I'll add some aliases in the module to handle them in the future. Pi.1415926535 (talk) 00:38, 4 May 2019 (UTC)
 * Okay, added aliases to Module:Adjacent stations/Amtrak. There may be a more elegant way to handle it, though. Pi.1415926535 (talk) 00:57, 4 May 2019 (UTC)

Data module documentation
I've taken a hand at writing some data module-specific documentation: Module:Adjacent stations/MTA Maryland. This is inspired by. Curious what other folks think, and whether there should be other standard information. Mackensen (talk) 13:57, 5 May 2019 (UTC)
 * Rolled this in to . Mackensen (talk) 18:24, 5 May 2019 (UTC)
 * I love it! Thanks for all your hard work! –Daybeers (talk) 22:55, 7 May 2019 (UTC)

Services don't follow line
I'm new to this template, so forgive me for my ignorance. I've started implementing instead of  on stations operated by the Kumamoto Electric Railway, a small private sector railway that operates two lines, intersecting at Kita-Kumamoto Station. Even though the Fujisaki Line terminates there, services run past the station on the Kikuchi Line towards Miyoshi, while another service runs between Kita-Kumamoto and Kami-Kumamoto only (route map here). What would I do in this scenario? ◢ Ganbaruby! 06:04, 6 May 2019 (UTC)
 * Sorry for the late reply, but I've tried to fix this by using the through n parameters (with the lines as the values). Jc86035 (talk) 06:29, 21 May 2019 (UTC)
 * Thanks for the help. For other stations (say, Kamei Station), which left terminus should it render: where the line ends (Kami-Kumamoto) or where the service ends (Fujisakigū-mae)? ◢ Ganbaruby!  13:10, 21 May 2019 (UTC)
 * I'm not sure, actually, but I think it would be correct to keep the templates as they currently are. Usually these templates only display either the lines or the services (with it being somewhat more common to display the services), and you've chosen to display the lines. I don't think there's anything wrong with the templates right now, but you could choose to display both the lines and services (as four/five rows) or just the services (as two rows). Jc86035 (talk) 13:14, 21 May 2019 (UTC)

Circular usage
I'm having some problems implementing circular functionality:


 * Current production article: College North station (note that there's no linked termini)
 * Testing module, not in use otherwise: Module:Adjacent stations/Miami-Dade Transit
 * Sample usage: User:Mackensen/temp

Ideally, no termini displays at all or there's a way to create a termini which is unlinked. Mackensen (talk) 23:21, 6 May 2019 (UTC)
 * Never mind; setting a terminus gives the desired result. Mackensen (talk) 00:43, 7 May 2019 (UTC)

Through services
There's an extra apostrophe for through services in this module, see Niagara Falls station (Ontario).  Cards84664  (talk) 16:12, 15 May 2019 (UTC) PAGE ]]) 16:02, 16 May 2019 (UTC) PAGE ]]) 18:34, 20 May 2019 (UTC)
 * . The error was caused by the Amtrak data file defaulting to italics for everything, resulting in the template outputting Through to Via Rail' . Wikipedia interprets three apostrophies in a row as a bold''' marker, so it interprets four apostrohies as ' . I added zero-width spaces around the italics so that they will be interpreted correctly.
 * I also noticed that on that page that "Amtrak" is italicized in "Through to Amtrak" but, because of the defaults in the Amtrak file, "Via Rail" is not italicized in "Through to Via Rail". The module could've make these consistent by stripping extra italics marks, or someone could add a default to the Via Rail data file, but I wasn't sure what the intended behavior was. --Ahecht ([[User talk:Ahecht|TALK
 * The intent is for the entire line to be italicized, it was that way before the conversion to Adjacent stations, as shown here.  Cards84664  (talk) 16:14, 16 May 2019 (UTC)
 * Okay, I've implemented a solution that trims off any excess quotes which should leave the entire name in italics. --Ahecht ([[User talk:Ahecht|TALK

Type parameter
Hi! It seems that even when inline is set to an option that shouldn't display text, such as =link, it still displays the text for the type parameter. Is there a way to fix this? Best, WMSR (talk) 11:57, 22 May 2019 (UTC)

Complex station logic
For French railway stations which are named Gare de Foo, Gare du Foo, and such, templates like used substring templates to determine the name from the first letter of the station key. I know that lua has similar functions, but can they be incorporated into an adjacent stations data module? Mackensen (talk) 20:38, 29 August 2019 (UTC)

Relatedly, it would be useful for modules which deal with multiple naming conventions to have line-based defaults for station naming (e.g., if you're on line X your default convention is X station, as opposed to X railway station). Mackensen (talk) 15:36, 31 August 2019 (UTC)

Two stations in either left or right side
Is it possible to do something like this from Flinders Street railway station with two different station in either 'Preceding' of 'Following' station as the station depends on either going direct (Jolimont) or via city loop (Southern Cross)? --Trainsofvictoria (talk) 11:10, 5 September 2019 (UTC)
 * That shouldn't be a problem. You just have to add it as a station like with the s-line templates: . BLAIXX 11:25, 5 September 2019 (UTC)

Historic railway stations
Would someone please check recent edits by. For example, Chicago Great Western Railroad Depot is a "historic railway station" where the following was added:

However, the preceding and following stations are red links and the template seems pointless. It is also generating a hidden error, namely Module:Adjacent_stations at line 221: Unknown line "Chicago-Minneapolis". Also see the IP's talk. Johnuniq (talk) 06:45, 9 October 2019 (UTC)
 * Well, the script error is because an invalid line was specified; there's also a separate (correct) invocation toward the top of the page. For the broader question of succession templates on "historic" stations, I would say that's a common practice, but no one bothered with the Chicago Great Western Railway until now. Whether that's a good idea or not should probably be raised at Wikipedia talk:WikiProject Trains since it's broader than this template. Mackensen (talk) 11:28, 9 October 2019 (UTC)

Idea
Recently, another user added the service colors of the SEPTA Broad Street Line to Module:Adjacent stations/SEPTA. Below are two examples: the first is currently displayed, and the second is what the user intended to display but it wasn't implemented:

As we currently can't use these colors interchangeably, would it be possible to display the line color (orange) on the left side and the service colors (White, Green, Yellow, Blue) on the right side? And is there a way to disable the midcolor?  Cards84664  (talk) 19:36, 28 October 2019 (UTC)
 * It wouldn't be clear why the two sides have different colours, the implication might be that there are two distinct services. Alternatively, see Cardiff Queen Street railway station, the box just before the "In popular culture" heading. -- Red rose64 &#x1f339; (talk) 20:31, 28 October 2019 (UTC)
 * Yes, I did try that before, see Template:S-line/lightcol. Maybe we could add a parameter that displays a bar like that.  Cards84664 </b> (talk) 01:01, 29 October 2019 (UTC)

Blue errors
Recent edits here have revealed some errors (Lua error in Module:Adjacent_stations at line 221: Unknown line "Blue"). I hoping the articles can be fixed. Johnuniq (talk) 03:10, 29 January 2020 (UTC)
 * Montclair Transcenter
 * Pomona (North) station
 * A Line (Blue) (Los Angeles Metro) (this is some other error possibly due to a recent article edit)
 * Where is the error on A Line (Blue) (Los Angeles Metro)? <b style="background:#0000ff;font:Helvetica;padding:0.4em;font-size: 80%;border-radius: 2em;margin: 0.25em;"> Cards84664 </b> (talk) 04:06, 29 January 2020 (UTC)
 * It's at 'Lua error in Module:Adjacent_stations at line 607: "title" is missing from the data page'. It might be related to changes in the module. Johnuniq (talk) 04:29, 29 January 2020 (UTC)

Error: title missing
Some recent edits at Module:Adjacent stations/Mexico City Metro caused the following articles to be regenerated. They are showing: Lua error in Module:Adjacent_stations at line 405: "title" is missing from the data page. Probably there is some error in the articles that was not previously noticed and I'm hoping that someone who understands the topic will fix them. Johnuniq (talk) 05:56, 9 March 2020 (UTC)
 * Metro Buenavista
 * Metro Camarones
 * Metro Deportivo Oceanía
 * Metro Tepito
 * He may have been unaware that the existing invocations of would switch automatically to the adjacent stations module. I've added a default title case handler which will resolve the script errors until the module is finished. Mackensen (talk) 11:13, 9 March 2020 (UTC)
 * Thanks. Johnuniq (talk) 22:58, 9 March 2020 (UTC)

Unknown line "Ōu Main"
The recent edits at Module:Adjacent stations/JR East might have introduced 'Lua error in Module:Adjacent_stations at line 221: Unknown line "Ōu Main"' at the following: I'm hoping you can work out what should be done to fix them (make an alias for "Ōu Main" or edit the articles?). Johnuniq (talk) 06:23, 15 March 2020 (UTC)
 * Akita Station
 * Higashi-Noshiro Station
 * Hirosaki Station
 * Kami-Iijima Station
 * Kawabe Station (Aomori)
 * Kita-Tokiwa Station
 * Naijōshi Station
 * Ōbarino Station
 * Ōdate Station
 * Oiwake Station (Akita)
 * ✅  Cards   84664   07:23, 15 March 2020 (UTC)
 * Thanks. Johnuniq (talk) 09:09, 15 March 2020 (UTC)

A recent edit at Module:Adjacent stations/BART has resulted in 'Unknown line "Orange2019"' in the infobox at Irvington station (BART). I'm hoping you will fix the article. Johnuniq (talk) 07:23, 30 June 2020 (UTC)
 * Maybe also List of Bay Area Rapid Transit stations (search for "error" to see multiple problems). Johnuniq (talk) 07:25, 30 June 2020 (UTC)
 * ✅. Mackensen (talk) 15:27, 30 June 2020 (UTC)

Two stations with the same name
How can I link a non-standard station article in the  or   parameter, for example Chaoyang railway station (Liaoning)? NemesisAT (talk) 15:37, 5 July 2020 (UTC)
 * Like this.  Cards   84664   01:07, 6 July 2020 (UTC)
 * Thanks for this NemesisAT (talk) 10:51, 6 July 2020 (UTC)

Get left / right terminus
I believe this will return either the left or the right terminus. local function getLeftTerm(data, system, line, Type, frame) line = (getLine(data, line)) local default = data['lines']['_default'] if line or default then default = {} if not line then line = mw.clone(default) end local terminusN = line['left terminus'] local Type_value = Type and line['types'] and (line['types'][Type] and line['types'][Type]['left terminus']) if Type_value then terminusN = Type_value end if type(terminusN) == 'string' then return terminusN elseif type(terminusN) == 'table' and #terminusN > 0 then local t = terminusN[1] for i = 2, #terminusN do t = t .. ', ' .. terminusN[i] end return t		else return '' end end end

local function getRightTerm(data, system, line, Type, frame) line = (getLine(data, line)) local default = data['lines']['_default'] if line or default then default = {} if not line then line = mw.clone(default) end local terminusN = line['right terminus'] local Type_value = Type and line['types'] and (line['types'][Type] and line['types'][Type]['right terminus']) if Type_value then terminusN = Type_value end if type(terminusN) == 'string' then return terminusN elseif type(terminusN) == 'table' and #terminusN > 0 then local t = terminusN[1] for i = 2, #terminusN do t = t .. ', ' .. terminusN[i] end return t		else return '' end end end

function p._leftterm(args, frame) local data = args.data if args[1] or data then data = data or getData(args[1], true) if not data then return getLeftTerm(nil, args[1], args[2], args[3], frame) end return getLeftTerm(data, nil, args[2], args[3]) end end

function p._rightterm(args, frame) local data = args.data if args[1] or data then data = data or getData(args[1], true) if not data then return getRightTerm(nil, args[1], args[2], args[3], frame) end return getRightTerm(data, nil, args[2], args[3]) end end

p.leftterm = makeInvokeFunction('_leftterm') p.rightterm = makeInvokeFunction('_rightterm') --Trainsofvictoria (talk) 07:40, 19 September 2020 (UTC)
 * What is this intended for?  Cards   84664   14:26, 19 September 2020 (UTC)
 * Under Module:Adjacent_stations/doc bullet point 4 "Function for calling a line terminus (for station layouts?)"--Trainsofvictoria (talk) 23:35, 19 September 2020 (UTC)
 * Any updates on this function? In Chinese Wikipedia, we have a series of templates getting back terminus by using #switch (e.g. zh:Template:北京地铁起讫站), but this can be done by Station link since terminus data are already contained in the module. --Tim Wu (talk) 05:57, 9 January 2022 (UTC)
 * As far as I know, nothing has been done with this. I am unable to add this to the Adjacent Station Module (no editing permission). I am also new to the Lua programing language, this was my first ever attempt at it. I did test it on a friends Wiki site, and got the desired results of being able to retrieve the values stored under "left terminus" and "right terminus". Hopefully someone will be able to check it over and add it to the module. -- <span style="font-family: Kristen ITC; color: rgb(0, 35, 102); text-align: center; text-decoration: underline #FFD700;">ThylacineHunter  (talk) 04:18, 4 February 2022 (UTC)
 * Have a look at https://commons.wikimedia.org/wiki/Template:Adjacent_stations where Lua does look where to put terminus. Bouzinac (talk) 16:17, 7 March 2022 (UTC)
 * @Bouzinac Any documentation for this template/module? And why doesn't it link to this English Wikipedia template? Tim Wu (talk) 01:09, 8 March 2022 (UTC)
 * It appears to be a completely different implementation, driven off Wikidata information. Interesting idea, that, not sure how practical/scalable it would be. Mackensen (talk) 01:58, 8 March 2022 (UTC)
 * I was just trying to help out with Module:Adjacent_stations (4th dot-point) "Function for calling a line terminus (for station layouts?)" -- <span style="font-family: Kristen ITC; color: rgb(0, 35, 102); text-align: center; text-decoration: underline #FFD700;">ThylacineHunter  (talk) 05:19, 8 March 2022 (UTC)

It is used on frwiki with a doc and examples. It uses only Lua as programming and wikidata as data source https://fr.m.wikipedia.org/wiki/Mod%C3%A8le:Stations_voisines Bouzinac (talk) 07:44, 8 March 2022 (UTC)

Plus I believe its logic should be easy to copy paste in other wiki as in eowiki, ptwiki with translations to be done Bouzinac (talk) 07:52, 8 March 2022 (UTC)

Station errors
Many articles are in Category:Pages with script errors with stuff like 'Lua error in Module:Adjacent_stations at line 420: "title" is missing from the data page.' in the infobox. That is due to some recent edits by with Template:Infobox station/Header SMS and possibly others needing investigation. I have drawn problems to the editor's attention in the past and they have been quickly fixed but that is not going to happen now (see their contribs). I'm hoping someone here can decide what to do—fix the problems or revert the changes.

Stations currently in the error category are: Balgok station • Beomgol station • Bojeong station • Bokjeong station • Daegok station • Dogok station • Eungbong station • Gangnam-gu Office station • Geomam station • Gojan station • Gongdeok station • Guri station • Guryong station • Gyeongwon Line • Gyeyang station • Hanyang University at Ansan station • Helsinki Central Station • Heungseon station • Hoeryong station • Hongik University station • Ichon station • Imae station • Incheon International Airport Cargo Terminal station • Incheon International Airport Terminal 1 station • Incheon International Airport Terminal 2 station • Jangji-dong • Jeongja station • Jeongwang station • Jukjeon station • Magongnaru station • Mangu station • Migeum station • Oido station • Oksu station • Ori station • Paldang station • Pasila railway station • Sangbong station • Seohyeon station • Seolleung station • Seoul Metropolitan Subway • Setun railway station • Slavyansky Bulvar railway station • Sunae station • Sungshin Women's University station • Suseo station • Taepyeong station • Uijeongbu City Hall station • Uijeongbu Jung-ang station • Uijeongbu station (U Line) • Unseo station • Wangsimni station.

Johnuniq (talk) 10:20, 28 September 2020 (UTC)
 * It's all of the articles for those lines. the correct invocations are at Seoul Metropolitan Subway, I'll use those to fix them.  Cards   84664   17:08, 28 September 2020 (UTC)
 * If you want to help me with this one, these are the edits that have to be made.  Cards   84664   17:20, 28 September 2020 (UTC)

Use of Circular=true
In Module:Adjacent stations/Queensland Rail the Exhibition line has been defined as Circular=Yes to suppress the toward/towards. See Exhibition railway station, Brisbane. When I still included the left and right stations in the module, these still showed in the station article without the toward/towards which I did not consider desirable. I then removed the left/right stations completely resulting in the stations not being shown but the "toward" did show - this is supposed to be suppressed. I then included the left and right as left="" and right="" and things now work as expected. It seems rather strange that these nul definitions need to be included to get the expected result.Fleet Lists (talk) 03:33, 8 October 2020 (UTC)

More station errors
Sorry about bringing these here and not otherwise helping, but that's all I can do. These have various "Unknown line" errors. Johnuniq (talk) 03:47, 13 October 2020 (UTC)
 * Banghwa station
 * Gimpo International Airport station
 * Hira Station (Aichi)
 * Jipyeong station
 * Mexico station
 * Seoul Station
 * Sindorim station
 * Suseo station
 * Suwon station
 * https://en.wikipedia.org/w/index.php?title=Module:Adjacent_stations/SMS&action=edit&redlink=1 may be of some assistance. Fleet Lists (talk) 04:04, 13 October 2020 (UTC)


 * Yes, it was moved to draft but the redirect Module:Adjacent stations/Seoul Subway wasn't deleted, and also there's no Seoul Subway color template (because SMS). I can look into a proper implementation, but meanwhile those edits will have to be reverted. Mackensen (talk) 12:25, 13 October 2020 (UTC)
 * re move, do you remember what it was breaking (whilst at its normal title of "Seoul Subway")? ProcrastinatingReader (talk) 12:38, 13 October 2020 (UTC)
 * I remember it was breaking a substantial number of articles (I think at least 50) about stations on that line, but I don't remember which. It looks like everything's back to normal now though. Jackmcbarn (talk) 14:04, 13 October 2020 (UTC)
 * I've cleaned up all the script errors for now and made a note to do a proper implementation. Mackensen (talk) 12:41, 13 October 2020 (UTC)

I've moved the module back into the mainspace at Module:Adjacent stations/Seoul Metropolitan Subway. Nothing should be calling it at that name, so we can roll out without breaking stuff. Mackensen (talk) 16:44, 13 October 2020 (UTC)

JR East Utsunomiya Line
Nozaki Station under the module for the JR East Utsunomiya Line is a disambiguation page. I would be grateful if someone could fix the module to redirect the target to the correct page Nozaki Station (Tochigi). --MChew (talk) 14:52, 16 October 2020 (UTC)
 * , ✅: . Mackensen (talk) 14:57, 16 October 2020 (UTC)
 * Thanks! --MChew (talk) 15:59, 16 October 2020 (UTC)

Zhangjiakou / China Railway High-speed
I found at Zhuozi East railway station a disambiguation page (Zhangjiakou railway station) that I can not solve. Sorry, the template template:adjacent stations and related modules are too difficult to correct. Why is this so user unfriendly?? The issue with Zhangjiakou as terminus is there and all other related station articles. The Banner <i style="color:maroon">talk</i> 12:05, 25 October 2020 (UTC)
 * Sorry, I introduced this problem. It is possible to disambiguate links, if nobody gets there before me then I'll take a look later today. Agreed on how unintuitive this is, but I'm not sure what can be done about it. NemesisAT (talk) 12:14, 25 October 2020 (UTC)
 * To be honest, it is not you who I blame for this misery. I blame the designers of this template for creating an extremely unclear and user-UNfriendly template and set of modules. I am quite versed in solving links to disambiguation pages but with the template "adjacent stations" I fail very time. The Banner  <i style="color:maroon">talk</i> 12:19, 25 October 2020 (UTC)
 * , I have taken a stab at documenting how disambiguation works in a more friendly manner: Module:Adjacent stations. I would appreciate your feedback. Mackensen (talk) 13:45, 25 October 2020 (UTC)
 * I have to try it to be sure. But is it possible to create a list of train (etc.) lines where the template is used? And is it possible to add a comment to the code stating something like "List of exceptions for disambiguation" or the likes? The Banner  <i style="color:maroon">talk</i> 14:14, 25 October 2020 (UTC) Sorry, since the end of the eighties I am not familiar with programming languages any more.

Color box invocation issue
When color box is used on the same line twice, the middle boxes won't merge. I was wondering if this was a back-end issue that you could fix.  Cards   84664   17:54, 16 November 2020 (UTC)
 * , maybe? I'm not convinced that the extra color box is necessary. You could also experiment with the background_color option. I'll see what I can make of that part of the template. Mackensen (talk) 00:15, 17 November 2020 (UTC)
 * I will partially moot my previous question and remove the red color box. I've researched this issue with color for a few days, I can logically say that colors for local services in Tokyo tend to match the color of the lines themselves.  Cards   84664   04:47, 27 November 2020 (UTC)

I am not even going to try to fix this...
Whiporie, New South Wales, Warragai Creek, New South Wales, Warrell Creek, New South Wales and I guess some others. All pointing to a station in Brisbane where you have choice of three. The Banner <i style="color:maroon">talk</i> 18:20, 16 November 2020 (UTC)
 * fixed it.  Cards   84664   18:25, 16 November 2020 (UTC)
 * Too bad that there is still no proper documentation on how to do it. The Banner  <i style="color:maroon">talk</i> 18:34, 16 November 2020 (UTC)
 * Module:Adjacent stations, the exact edit.  Cards   84664   20:46, 16 November 2020 (UTC)
 * This problem was caused by change on 16 November 2020 where Brisbane railway station was changed from a redirect to a disambiguation page by the only edit made by IP user 125.253.4.234. Fleet Lists (talk) 21:50, 16 November 2020 (UTC)
 * That change is not the main part of my complaint. It is the user-UNfriendly way the modules work. And the lack of proper documentation. The Banner  <i style="color:maroon">talk</i> 22:13, 16 November 2020 (UTC)
 * , any feedback on the documentation I wrote the last time this came up? Mackensen (talk) 22:22, 16 November 2020 (UTC)
 * I am unaware of any documentation. The Banner  <i style="color:maroon">talk</i> 22:29, 16 November 2020 (UTC)
 * I believe covers the way such situations should be defined. If this is not sufficient, should this be expanded? Fleet Lists (talk) 23:00, 16 November 2020 (UTC)
 * , two threads up in Template talk:Adjacent stations. Mackensen (talk) 00:13, 17 November 2020 (UTC)
 * That is still ununderstandable for me. Why not a section "How to solve links to disambiguation pages", a pure manual? The Banner  <i style="color:maroon">talk</i> 09:53, 17 November 2020 (UTC)
 * That was the intention of that document. Let me take a step back. Are you confused by which data module you need to edit? Mackensen (talk) 13:11, 17 November 2020 (UTC)
 * I am confused about where and how to fix links to dp's. Not everybody is comfortable of editing straight into computer code. The Banner  <i style="color:maroon">talk</i> 14:02, 17 November 2020 (UTC)

Update stations at Chengdu
Line 6, 8, 9, 17 and extension of 18 of Chengdu Metro have been opened, but the template don't update these stations, please update it.--Nrya (talk) 04:49, 23 December 2020 (UTC)
 * ✅. Please let me know if you see any issues.  Heights (Want to talk?) 17:49, 24 December 2020 (UTC)

Zhucun Station and Jinxing Station
Zhucun station means station of Guangzhou Metro Line 21 and Shenzhen Metro Line 4. Jinxing station means station of Hangzhou Metro Line 5 and Chengdu Metro Line 17. Now it links to disambiguation page. --Neinyar (talk) 04:23, 30 December 2020 (UTC)

As well as Yongfeng station and Zhujiang Road station.--Nrya (talk) 07:40, 10 January 2021 (UTC)

Now it shows that "towards Jinxing station (Hangzhou)" and link to Jinxing station (Hangzhou) station.--07:40, 10 January 2021 (UTC)

please solve it, thank you.Nrya (talk) 07:41, 10 January 2021 (UTC)

Update stations
Thank you.Neinyar (talk) 04:46, 30 December 2020 (UTC)
 * Line 3&4 of Zhengzhou Metro
 * Line 1 phrase 2 of Fuzhou Metro
 * Line 3 of Nanchang Metro
 * Line 4 of Ningbo Metro
 * Line 5&6&9 of Xi'an Metro
 * Line 5 of Hefei Metro
 * Line 2 of Taiyuan Metro
 * Line 1&8 of Qingdao Metro
 * Line 10 phrase 2 & 18 or Shanghai Metro
 * Line 6&7 of Hangzhou Metro
 * Fangshan Line north phrase & Line 16 & Yizhuang T1 of Beijing Subway

Why is Adjacent stations needed in infoboxes with Heritage rail start?
There was a Table tag that should be deleted lint error in Muckleford railway station, in the. The article has with services, and in that section it had, which opens a table that wasn't closed with. I deduced that it needed to be closed with, but I could not get the Table tag that should be deleted lint error to go away. I investigated Castlemaine railway station, which is in the Heritage Rail box of Muckleford railway station, hoping to find the solution there, and saw that this lint-free article uses similar markup but has a full-blown above. I inserted an empty above  and the. results in the display of a tiny and unwanted rectangle (presumably the border of a very empty table).

What is going on here? Is there a way to have in the services section of  without generating lint errors and without an unwanted rectangle coming from ? If not, this should be documented and better yet fixed.

If you want to work on this, you should install lintHint. For more info, see linter. —Anomalocaris (talk) 09:14, 13 January 2021 (UTC)
 * , this doesn't have anything to do with Adjacent stations. 's services parameter creates the table by default, so using a start table template like or  causes the linter error you're seeing. The technique on Castlemaine railway station uses Adjacent stations and Heritage rail start together and works around this issue, but the root problem is with . Mackensen (talk) 12:55, 13 January 2021 (UTC)

Please update CMTA rcb
Per Template:CMTA color. Thanks! --truflip99 (talk) 08:11, 10 February 2021 (UTC)

Adirondack Railroad
The Adirondack Scenic Railroad has been renamed the Adirondack Railroad. I'm not familiar with this template and unsure of the right way to update the data module when a railroad is renamed: can someone who knows what they're doing update this? -Apocheir (talk) 23:07, 19 May 2021 (UTC)
 * ✅  Cards   84664   04:25, 20 May 2021 (UTC)

Left-to-right problem
Can anyone help with this? I have ported this module and template to yiwiki which uses right-to-left orthography.

This causes the the previous and following stations to be reversed. Does anyone how to adapt the code to swap the columns in the output? --Redaktor (talk) 15:33, 3 June 2021 (UTC)

Four more station errors
Johnuniq (talk) 05:11, 18 July 2021 (UTC)
 * Higashi-Onomichi Station
 * Metro B Line
 * Onomichi Station
 * Shanghai East railway station

More problems are at Castroville station + Gilroy station + Pajaro/Watsonville station + Salinas station + Transbay Transit Center. They appear to be due to recent changes at Module:Adjacent stations/Caltrain by. Again, I'm hoping someone will work out what's needed for a fix. Thanks! Johnuniq (talk) 06:01, 16 October 2021 (UTC)
 * Looks like Blaixx and I got them all. Mackensen (talk) 13:42, 18 July 2021 (UTC)
 * Another is at Pacific Central Station: Unknown line "Journey through the Clouds". Johnuniq (talk) 07:14, 26 September 2021 (UTC)
 * That would be the Rocky Mountaineer, and fixed. Mackensen (talk) 12:42, 26 September 2021 (UTC)
 * Sorry about that, I'll take a look. Fullmetal2887 (discuss me) 06:06, 16 October 2021 (UTC)
 * Those 5 have been fixed. Fullmetal2887 (discuss me) 06:13, 16 October 2021 (UTC)
 * Another set of errors (Dingpu metro station+Green line (Taoyuan Metro)+Bannan line) has just showed up, caused by Special:Diff/1050454957 by * Pppery * <sub style="color:#800000">it has begun...  01:40, 19 October 2021 (UTC)
 * Please add them to Template:Rail-interchange under "new taipei" thank you. Edgar Searle (talk) 01:44, 19 October 2021 (UTC)

Positioning
I've started a discussion over at WikiProject Trains on where these boxes should go: in the infobox or at the end of an article. This may be of interest to followers of this page. NemesisAT (talk) 22:54, 13 November 2021 (UTC)


 * Didn't find the result of that topic. Bouzinac (talk) 16:28, 7 March 2022 (UTC)
 * Here is the link to the discussion Wikipedia talk:WikiProject Trains/Archive: 2021 -- <span style="font-family: Kristen ITC; color: rgb(0, 35, 102); text-align: center; text-decoration: underline #FFD700;">ThylacineHunter  (talk) 05:23, 8 March 2022 (UTC)

TransLink (BC)
Hi, I started converting TransLink (BC) stations to use this template/module and I am not sure the best way to convert the templates in the station layout section in the articles. in particular, for example, it uses and  to get the name of the station to the left. thank you. Frietjes (talk) 20:29, 14 December 2021 (UTC)
 * That was always an off-label use of S-line, so to speak, and not really supported. I would just safesubst in those cases and move on. Mackensen (talk) 21:33, 14 December 2021 (UTC)

Nuremberg S-Bahn
Some recent edits at Nuremberg S-Bahn added  in an attempt to include a new line that is shown at de:S-Bahn Nürnberg. Would someone please fix the new text because it is showing "Lua error in Module:Adjacent_stations at line 425: "title" is missing from the data page." Johnuniq (talk) 23:03, 17 December 2021 (UTC)
 * Fixed: Mackensen (talk) 12:12, 18 December 2021 (UTC)

Lake Line
Lake Line is showing "Lua error in Module:Adjacent_stations at line 425: "title" is missing from the data page." in two locations due to a recent edit at Module:Adjacent stations/St. Gallen S-Bahn by. I had a look at what would be involved in putting more information in the error message to give a clue about the problem. It would be reasonably straight forward but a bit more complex than I want to take on at the moment. I'm hoping someone will clean the article, thanks. Johnuniq (talk) 06:22, 18 December 2021 (UTC)
 * Fixed: . Mackensen (talk) 12:07, 18 December 2021 (UTC)

How to convert service style templates to use the module?
How does one convert uses of Template:Monterrey Metro style to Module:Adjacent stations/Metrorrey? Gonnym (talk) 17:55, 30 December 2021 (UTC)
 * The parameters for "Name Format" are interchangable on both, the same text being invoked can be copy-pasted.  Cards   84664   19:13, 30 December 2021 (UTC)
 * I'm sorry, I'm still unclear on how exactly this should be done. Can you explain with an example? I have no experience in this field, but I came to notice this via WP:TFD where sibling templates where unused after having been already converted. Gonnym (talk) 09:09, 31 December 2021 (UTC)
 * since the module and template have different names, simply change the "style" parameter in infobox station to the new name (Metrorrey). You can also set "style2" to get the appropriate sub-style based on the line (example diff). <b style="color: #329604">B</b><b style="color: #FD8F42">L</b><b style="color: #0096FF">A</b>IXX 15:47, 31 December 2021 (UTC)
 * Ah, thank you! Also glad that the change is very simple. Gonnym (talk) 16:35, 31 December 2021 (UTC)

Unable to display more than one note-mid
Kashima Soccer Stadium Station is only served by trains during match days. Trying to append "Match days only" via note-mid to the two companies' lines serving the station doesn't work properly, as only one value can be used for the note-mid parameter; the result I got was that "Match days only" displays for JR East only and not for Kashima Rinkai Railway (it should be displaying for both companies). I'd be grateful if there is a proper solution for this. JaventheAldericky (talk) 20:38, 31 December 2021 (UTC)
 * All parameters can be used more than once, like left2. Should be good now.  Cards   84664   21:35, 31 December 2021 (UTC)
 * Great, thanks for your help! I probably made an oversight somewhere that caused the issue to pop up, ah well. JaventheAldericky (talk) 21:42, 31 December 2021 (UTC)

Go-Ahead Bayern
I tried to create a module for Module:Adjacent stations/Go-Ahead Bayern, but it doesn't seem to work: "Lua error in Module:Adjacent_stations at line 236: Unknown line "Go-Ahead Bayern".--Grahame (talk) 08:00, 8 January 2022 (UTC)
 * I fixed the example in your sandbox: . Mackensen (talk) 12:24, 8 January 2022 (UTC)
 * Thanks. So I was looking for problems in the module when the problem was in the invocation.--Grahame (talk) 13:02, 8 January 2022 (UTC)