Jump to content

Template talk:Adjacent stations

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Data module not recognizing through service

[edit]

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)[reply]

How to reverse direction/swap termini?

[edit]

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:

Preceding station Comboios de Portugal Following station
Terminus InterRegional Lisbon-Oriente
towards Tomar
Regional
Entrecampos
InterRegional

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


Preceding station Comboios de Portugal Following station
Terminus InterRegional Lisbon-Oriente
towards Tomar
Regional
Entrecampos
InterRegional

)

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)[reply]

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)[reply]

Aliases not working for Module:Adjacent stations/GO Transit

[edit]

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

  • {{lnl|GO Transit|Milton}} Milton
  • {{ric|GO Transit|Barrie}}
    • {{ric|GO Transit|BR}} (falls back to system icon)

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

  • {{ric|Montreal Metro|Yellow}}
    • {{ric|Montreal Metro|4}}

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

@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)[reply]
Many thanks! I should have read the doc page more carefully. BLAIXX 14:25, 24 October 2025 (UTC)[reply]

Add Brussels Tram line icons and Metro 3

[edit]

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)[reply]