Template talk:Infobox rail line

Latest comment: 2 months ago by Beland in topic Dark mode problems

Template-protected edit request on 17 February 2023

edit

Please change the link to Railway electrification system, to link to Railway electrification, as the article has been moved via WP:RMT --- Tbf69 P • T 15:15, 17 February 2023 (UTC)Reply

  Done — Martin (MSGJ · talk) 16:16, 17 February 2023 (UTC)Reply

How do I change the color of the heading?

edit

The heading in the infobox is sandwiched between two colored lines. How to change the color to a custom one? Footy2000 (talk) 10:28, 20 February 2023 (UTC)Reply

@Footy2000: What coloured lines are these? Always give an example of where you see a problem. --Redrose64 🌹 (talk) 11:43, 20 February 2023 (UTC)Reply
@Redrose64: Check out the Alpha Line which is used in this very page's Example section. Or you can check out Orange Line (Namma Metro) where the infobox has its heading sandwiched between two orange lines. Footy2000 (talk) 11:47, 20 February 2023 (UTC)Reply
If you open up Orange Line (Namma Metro) for editing, you will see there is a line
| color                           = {{rcr|Namma Metro|Orange}}
The |color= parameter is documented, as is the {{rcr}} template. --Redrose64 🌹 (talk) 11:54, 20 February 2023 (UTC)Reply
The color of the bars in that article is specified in the "Orange" section of Module:Adjacent stations/Namma Metro. – Jonesey95 (talk) 19:31, 20 February 2023 (UTC)Reply

System examples

edit

A bit confused why National Rail is given as an example for a "system" here? Isn't it just a generic ticketing name for most services on the GB rail system? Was confused what it meant by "system", and that as the example didn't help, would Merseyrail, Réseau Express Régional or Bay Area Rapid Transit be better examples than National Rail? DankJae 22:04, 19 February 2024 (UTC)Reply

I agree, this is not the best example here. Most articles of UK railway lines have "National Rail" named as the system. I think that is why I added the example back then. Feel free to change it. --PhiH (talk) 15:48, 20 February 2024 (UTC)Reply

Dark mode problems

edit

Template:Greenbush Line is displaying OK for me in dark mode, but in the context of Greenbush Line, there is some nearly impossible-to-read text that is nearly white-on-white. The CSS color handling in this template has gotten rather complicated and it's used on a lot of pages, so I'm wondering if there's an expert who would know better than me how to fix it? If it's helpful, there are recommendations at mw:Recommendations for night mode compatibility on Wikimedia wikis. It might be as simple as just not setting a background color. -- Beland (talk) 05:29, 5 September 2024 (UTC)Reply

I managed to find the problem and fix it with an edit to Template:Routemap/styles.css. -- Beland (talk) 18:30, 9 September 2024 (UTC)Reply
Grf, that caused other problems. Reverted and following up on Template talk:Routemap#Dark mode problems. -- Beland (talk) 18:51, 9 September 2024 (UTC)Reply