Template:S-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 S-line template.
This template is within the scope of WikiProject Trains, an attempt to build a comprehensive and detailed guide to rail transport on Wikipedia. If you would like to participate, you can visit the project page, where you can join the project and/or contribute to the discussion. See also: WikiProject Trains to do list and the Trains Portal.TrainsWikipedia:WikiProject TrainsTemplate:WikiProject Trainsrail transport
The accessibility of this template is in question. Relevant discussion may be found on the talk page.
Template-protected edit request on 12 January 2022
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request.
Please remove the small font sizes. They serve no good reason, the template is not harmed by having all text at the same size, and it really helps readers with visual acuity issues if small text is not used. Please consider those with accessibility issues WP:ACCESSIBILITY10mmsocket (talk) 14:03, 12 January 2022 (UTC)[reply]
NOTE: This request is separate from the one above, not a duplicate. It concerns the /side cell template.
Please remove the small font sizes. They serve no good reason, the template is not harmed by having all text at the same size, and it really helps readers with visual acuity issues if small text is not used. Please consider those with accessibility issues WP:ACCESSIBILITY 10mmsocket (talk) 14:06, 12 January 2022 (UTC)[reply]
Not done this styling change seems controversial, please establish a consensus for this update by way of discussion, then reactivate the request when ready. — xaosfluxTalk15:05, 12 January 2022 (UTC)[reply]
Please note that I agree that this for the Hastings Line was too small, someone had double-invoked small. I however disagree that the regular subtext isn't readable. Cards8466416:57, 12 January 2022 (UTC)[reply]
Oppose only removing the small text. As currently displayed that does make it significantly harder to pick out the important detail from a sea of text. If small text is an accessibility issue (I don't know) then there needs to be some way of recreating the distinction between primary and subsidiary information. My first thought was bolding the adjacent station, but I'm not sure that's going to do anything but add to the too much text feeling. I haven't yet had a second thought. Thryduulf (talk) 23:30, 12 January 2022 (UTC)[reply]
It's worth noting that the use of small text here, if generated appropriately (I've not looked at the code), seems to be allowed by WP:FONTSIZE. If so that strongly implies there is no accessibility issue that needs correcting. Thryduulf (talk) 23:35, 12 January 2022 (UTC)[reply]
There are two separate problems here. First, when used outside of an infobox, the {{s-start}} template sets the declaration font-size:95%; (which itself is not a problem) and the {{S-line/side cell}} that is inside {{s-line}} sets the declaration font-size:85%;, and 85% of 95% is 80.75%, which is below the 85% limit set by MOS:SMALL. The same happens in {{s-line}} for some of the text in the middle column (visible when the |branch=, |notemid= or |transfer= parameters are in use). If those declarations in {{s-line}} (three in all) and in {{S-line/side cell}} (two in all) were all to be adjusted to font-size:89.5%; the net effect in conjunction with {{s-start}} would be 85.025%, which solves that problem. But there is a second problem: when one of these boxes is placed inside an infobox, the font-size of all textual elements is reduced still further, which is a definite accessibility problem. For this and other reasons, I have never been in favour of using such boxes inside infoboxes. --Redrose64 🌹 (talk) 15:43, 13 January 2022 (UTC)[reply]
I have removed some excessive shrinking of the font sizes in a couple of this template's subpages per MOS:FONTSIZE. Because infoboxes already reduce the font size to 88% of normal, the most you can reduce the font size beyond that is to 97%. I know this is not a fun situation, but the previous text sizes were just too small. Since MOS started enforcing this size limit a few years ago, we've had to change a lot of templates and template transclusions. For what it's worth, the text in the infobox S-rail templates is currently at 85.4% of normal size, so that's as small as it can go. – Jonesey95 (talk) 15:31, 27 January 2022 (UTC)[reply]
Note: After posting this message, I noticed the above discussion. I see that people have various opinions about whether they like the smaller size or not, but accessibility is the policy here. The previous code, when used in infoboxes at articles like Rathaus Spandau (Berlin U-Bahn), was too small. There are probably creative solutions for distinguishing important text from less-important text, but reducing the size of text is not one of them. – Jonesey95 (talk) 15:36, 27 January 2022 (UTC)[reply]
We should probably look at a CSS-based approach, such that the text is only reduced if the element is not within a table that belongs to the infobox class. --Redrose64 🌹 (talk) 21:02, 27 January 2022 (UTC)[reply]