Template talk:S-line
![]() | 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. |
|
Archives: 1, 2Auto-archiving period: 90 days ![]() |
![]() | This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||
|
![]() | 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
[edit]![]() | 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:ACCESSIBILITY 10mmsocket (talk) 14:03, 12 January 2022 (UTC)
Not done see further in next section. — xaosflux Talk 15:04, 12 January 2022 (UTC)
Template-protected edit request on 12 January 2022 (2)
[edit]![]() | This edit request to Template:S-line/side cell has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
Not done this styling change seems controversial, please establish a consensus for this update by way of discussion, then reactivate the request when ready. — xaosflux Talk 15:05, 12 January 2022 (UTC)
- Notified Wikipedia_talk:WikiProject_Trains#Styling_of_S-line_template. If there is no response by anyone in say a week, feel free to reactivate. — xaosflux Talk 15:07, 12 January 2022 (UTC)
- Pings to some editors that worked on this: @Mackensen and NE2: — xaosflux Talk 15:08, 12 January 2022 (UTC)
It would be helpful to see mockups of the current and proposed styles. Thryduulf (talk) 15:52, 12 January 2022 (UTC)
- 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. Cards84664 16:57, 12 January 2022 (UTC)
I've updated the sandbox and testcases to show removing the small text for the termini and side notes only: Template:S-line/testcases. Mackensen (talk) 19:09, 12 January 2022 (UTC)
- Yeah, Oppose. Gives undue weight to the termini. Cards84664 19:17, 12 January 2022 (UTC)
- 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)
- 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)
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)
Fixed too small font per MOS:FONTSIZE.
[edit]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)
- 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)
- 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)
- @Jonesey95 and Redrose64: I've implemented such an approach for {{Adjacent stations}}, but this template only uses inline CSS so it would have to be converted to use {{Adjacent stations/styles.css}} or something similar in order for that to be replicated here. I'm not sure if anything would be broken by such a change. Jc86035 (talk) 08:46, 15 March 2022 (UTC)
- That was my intent, to use WP:TemplateStyles rather than inline. --Redrose64 🌹 (talk) 14:02, 15 March 2022 (UTC)
- @Jonesey95 and Redrose64: I've implemented such an approach for {{Adjacent stations}}, but this template only uses inline CSS so it would have to be converted to use {{Adjacent stations/styles.css}} or something similar in order for that to be replicated here. I'm not sure if anything would be broken by such a change. Jc86035 (talk) 08:46, 15 March 2022 (UTC)
- 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)
- This change unintentionally removed the linebreaks between the line, system, and transfer components. Here are before and after screenshots. The quick fix would be to put plain
<div>
tags back in, just without the style attribute. Decrypt3 (talk) 03:33, 29 January 2022 (UTC)- My apologies, and thanks for AGF. I have restored the div tags. You didn't link to an article, but Northfields tube station looks good to me now. Please link to any articles that still show errors. – Jonesey95 (talk) 06:10, 29 January 2022 (UTC)
- Thanks, it looks good now. The screenshots were of an example on the S-line doc page; sorry I forgot to mention that. Decrypt3 (talk) 00:29, 30 January 2022 (UTC)
- My apologies, and thanks for AGF. I have restored the div tags. You didn't link to an article, but Northfields tube station looks good to me now. Please link to any articles that still show errors. – Jonesey95 (talk) 06:10, 29 January 2022 (UTC)
Adding a new line to a system that already exists on S-line
[edit]Hello, our city will open a new line in future and I want to ask, how we can add a new line to s-line template?
EMREOYUNMessage - 20:59, 31 March 2022 (UTC)
- Which system is it? It can be converted over to the new module. Cards84664 21:20, 31 March 2022 (UTC)
- Ankara Metro
EMREOYUNMessage - 15:02, 1 April 2022 (UTC)- @Emreoyun: I have created Module:Adjacent stations/Ankara Metro and updated the Metro articles. The Module will allow for easy additions. Cards84664 01:34, 2 April 2022 (UTC)
- Ankara Metro