Template talk:Infobox rail line
![]() | Template:Infobox rail line 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. |
This is the talk page for discussing improvements to the Infobox rail line template. |
|
Archives: 1, 2Auto-archiving period: 6 months ![]() |
![]() | This template was nominated for deletion. Please review the prior discussions if you are considering re-nomination:
|
![]() | This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||
|
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)
- 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)
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)
- 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)
- Grf, that caused other problems. Reverted and following up on Template talk:Routemap#Dark mode problems. -- Beland (talk) 18:51, 9 September 2024 (UTC)
I dont know how to code it but someone please add cost in the template under the owner section and auto turn whatever amount into dollars. Thanks :] Faisalisonline2 (talk) 07:44, 6 June 2025 (UTC)
There are approximately 800 pages that don't have short descriptions but use the rail line infobox. Short descriptions could be generated from the infobox (documentation). One option is "Rail line in {{locale}}". Brigandeur (talk) 19:46, 12 June 2025 (UTC)
- I looked at {{Infobox political party}} as an example and it tests the value of {{Has short description}} to prevent overriding a local value. That seems reasonable. There's no guarantee that locale is set, though it should be, so "Rail line in {{locale}}", with "Rail line" as a fallback, would work. Mackensen (talk) 20:16, 12 June 2025 (UTC)
- According to the above documentation, specifying
|2=noreplace
in the Infobox's short description allows a short description specified in the article to take precedence. Brigandeur (talk) 20:34, 12 June 2025 (UTC)
- According to the above documentation, specifying
![]() | It is requested that an edit be made to the template-protected template at Template:Infobox rail line. (edit · history · last · links · sandbox · edit sandbox · sandbox history · sandbox last edit · sandbox diff · test cases · transclusion count · protection log) This template must be followed by a complete and specific description of the request, so that an editor unfamiliar with the subject matter could complete the requested edit immediately.
Edit requests to template-protected pages should only be used for edits that are either uncontroversial or supported by consensus. If the proposed edit might be controversial, discuss it on the protected page's talk page before using this template. Consider making changes first to the template's sandbox and test them thoroughly here before submitting an edit request. To request that a page be protected or unprotected, make a protection request. When the request has been completed or denied, please add the |
Description of suggested change: Generate short description from this Infobox. I added the following checks:
- There is no short description already in the article.
- The article is in the main namespace.
- The Infobox is in the lead.
I used the snazzy Type in location module which cleans up the locale
parameter before using it, and falls back to "Rail line" if locale
is empty or missing.
Testing is not straightforward, so before adding the namespace check, I copied a couple of pages to my user namespace and used the sandbox version there.
Diff: See my changes in Template:Infobox_rail_line/sandbox