![]() | This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||
|
![]() | Template:Adjacent stations is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
Pages related to |
Module:Adjacent stations |
---|
(talk | sandbox | sub-pages) |
{{Infobox station}} |
(talk | sandbox | testcases) |
{{Station link}} |
(talk | sandbox | testcases) |
{{Station icon link}} |
(talk | sandbox | testcases) |
{{Rail color}} |
(talk | sandbox | testcases) |
{{Line link}} |
(talk | sandbox | testcases) |
{{Rail icon}} |
(talk | sandbox | testcases) |
{{Rail color box}} |
(talk | sandbox | testcases) |
{{Adjacent stations}} |
(talk | sandbox | testcases) |
{{Line terminus link}} |
(talk | sandbox | testcases) |
|
|||||
![]() | This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
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).
- oahiyeel talk 02:26, 1 January 2024 (UTC)
![]() | This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
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)
@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)
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)
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)
![]() | This edit request to Module:Adjacent stations has been answered. Set the |answered= parameter to no to reactivate your request. |
Hello, can a module for Dreamstar Lines be added? Thank you! OrdinaryScarlett (talk) 20:58, 6 May 2024 (UTC)
{{Edit template-protected}}
template. — Martin (MSGJ · talk) 10:11, 7 May 2024 (UTC)![]() | This edit request to Template:Station link has been answered. Set the |answered= parameter to no to reactivate your request. |
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)
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)
{{ric|Tyrol S-Bahn|S1|size=50px}}
→ 50px|S1? Useddenim (talk) 19:21, 24 June 2024 (UTC)
{{ric|Salzburg S-Bahn|S1|size=50px}}
→ |size=
should then scale the text. Useddenim (talk) 20:46, 24 June 2024 (UTC)
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)
size
parameter could be figured as a percentage to then change the text-height? Useddenim (talk) 01:47, 25 June 2024 (UTC)![]() | This edit request to Module:Adjacent stations has been answered. Set the |answered= parameter to no to reactivate your request. |
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)
![]() | This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
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)
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)
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)
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)
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:
Additionally, the following may cause problems and need to be evaluated for removal and redirection as well:
And as candidates for the accessible replacement values:
The issues are that:
Please consider this change. Thisisnotatest (talk) 07:35, 4 October 2024 (UTC)
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):
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)
![]() | This edit request to Module:Adjacent stations has been answered. Set the |answered= parameter to no to reactivate your request. |
I saw the following error message: Lua error in Module:Adjacent_stations at line 237: Unknown line "Hamilton-Allandale".
. Please add the name of the system to this message - I did eventually find the source of the error (a subsequent musnumbered system
parameter), but it would have been much faster if I could search for the system name. Animal lover |666| 17:28, 26 November 2024 (UTC)
Unknown line "Hamilton-Allandale" in system "XXX"
, so that if the error is with the system parameter as opposed to the line parameter this fact will be easier to see. Animal lover |666| 01:05, 29 November 2024 (UTC)
Module:Adjacent stations/London Overground is currently transitioning to a system of six new named lines and colours. I wish to ask how I can generate a report of articles that call the module with "legacy" values? --Minoa (talk) 16:52, 2 December 2024 (UTC)
S43 — Martin (MSGJ · talk) 21:42, 16 December 2024 (UTC)
The following code should have the second line marked with the right being the terminus:
{{Adjacent stations |system1=National Rail|line1=London North Eastern Railway|type1=Highland Chieftain|left=Aviemore or Carrbridge Sunday |line2=ScotRail|type2=Highland Main Line|left2=Aviemore or Carrbridge |line3=ScotRail|type3=Highland Main Line|left3=Aviemore or Carrbridge|right3=Inverness Airport|to-right3=Inverness Airport|note-right3=(Sundays only) }}
Instead, the second line--including the right--is completely merged into the third. How can I keep the right side separate while having the rest of lines 2 and 3 merged? Animal lover |666| 12:28, 1 June 2025 (UTC)
|right2=
. I hacked it like this, which is probably not what you want:Preceding station | ![]() |
Following station | ||
---|---|---|---|---|
Aviemore or Carrbridge (Sunday southbound only) towards London King's Cross
|
London North Eastern Railway | Terminus | ||
Aviemore or Carrbridge towards Perth
|
ScotRail | towards Inverness
| ||
Inverness Airport (Sundays only) Terminus
|
Obu Station's adjsta broke, when I was trying to list a service that continues to Nagoya Station beyond Obu, the usual terminus of the line. I wanted the adjstn to say "Kyowa towards Nagoya" instead, but I have no idea how to do that, and when I try the page warns me of errors so here I am. AlphaBetaGamma (Talk/report any mistakes here) 13:00, 19 June 2025 (UTC)