Jump to content

Template talk:Adjacent stations

From Calamity Wiki
Revision as of 20:46, 26 April 2026 by imported>Lowercase sigmabot III (Archiving 1 discussion(s) to Template talk:Adjacent stations/Archive 5) (bot)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Permanently protected

Template:Archives

How to reverse direction/swap termini?

If a line is defined as being from A to B, is there a better way to make it display as B to A in an invocation of this template, other than manually specifying a different terminus to override the default? Manually adding to-{left,right}N isn't too cumbersome, but I'm wondering if there's a way to avoid having to hardcode the terminus. The stop where I'm having this issue is Santa Apolónia, in Lisbon. Here's a shortened table showing the issue: the last two entries are lines defined such that Santa Apolónia would be on the right side and Caldas da Rainha on the left:

Template:Adjacent stations

(For comparison, here's the output with no use of `to-rightN=...`:


Template:Adjacent stations )

 
Map of railway lines, branches and direct curves in Lisbon. Do note that the Northern line is mistakenly labeled "Linha da Azambuja".

(Swapping the direction here matches the direction of travel too, as this station sits on one corner of the triangle defined by the Northern line, Cintura line and the Xabregas direct curve. The two top entries connect to/from Lisboa-Oriente through the Northern line, and the ones that need swapping reach the Cintura line through the direct curve.)

njsg (talk) 17:17, 5 October 2025 (UTC)

If it's just one station, it's usually easiest to just use the to- parameters. If it's a whole section of a line, you could create a second entry for the line in the adjacent stations data module - called it "[linename]-reversed" or whatnot. Pi.1415926535 (talk) 20:57, 5 October 2025 (UTC)

Aliases not working for Module:Adjacent stations/GO Transit

For some reason the GO Transit line aliases are not working. Using the full line name works but the aliases do not.

Aliases work fine for other systems like Module:Adjacent stations/Montreal Metro:

Can anyone spot what's going wrong? Thanks, BLAIXX 03:09, 24 October 2025 (UTC)

@Blaixx: Aliases need to be in lower case, because inputs are lower-cased before comparing with aliases. Pi.1415926535 (talk) 04:14, 24 October 2025 (UTC)
Many thanks! I should have read the doc page more carefully. BLAIXX 14:25, 24 October 2025 (UTC)

Add Brussels Tram line icons and Metro 3

Brussels currently operates the following tram lines: T4, T7, T8, T9, T10, T18, T19, T25, T35, T39, T44, T51, T55, T62, T81, T82, T92 and T93.

All corresponding line icons are available on Wikimedia Commons under Category: Line numbers and symbols of Brussels trams.

The icon for M3 is also incorrect. It should be: File:STIB-MIVB Line M3.svg

Jhowie_Nitnek (talk) 09:49, 22 January 2026 (UTC)

Unnecessary whitespace?

Throwing this out there... this template consistently seems to bring unnecessary whitespace with it. For instance, Battersea Power Station tube station - why is it so far down? Is there a hidden "Clear" template that puts it so far down the page? Is this something that can be fixed? — Preceding unsigned comment added by Mattdaviesfsic (talk • contribs)

  • You're looking for the |noclear= parameter. Mackensen (talk) 21:42, 25 April 2026 (UTC)
Thanks. Odd that it is not the default but ¯\_(ツ)_/¯ Cheerio, Mattdaviesfsic. Talk to me. 21:47, 25 April 2026 (UTC)
I think it replicates the default from s-start (used with s-rail), and the convention with those templates was either to place them in the infobox or at the bottom of the article. I think the mid-article usage is mostly found in the UK. As you say, ¯\_(ツ)_/¯. It had to be one or the other :). Mackensen (talk) 21:59, 25 April 2026 (UTC)