Template talk:S-rail

message: During a discussion at Wikipedia talk:WikiProject Trains#Transperth boxes the idea of allowing the "skinning" of s-rail arose. The proposed change allows the setting of the background and text colors via the  template, using the main_color and main_font_color parameters. You would still need to define the color for the actual line name link in :Template:S-rail/lines. The code necessary is pasted below:
|-
!Previous station
! style="border: 0px #aaa none; "| 
! style="border: 0px #aaa none; "|
! style="border: 0px #aaa none; "| 
!Next station
|-
While this does increase the size of the template from 259 bytes to 1,044 bytes, the template inclusion size only goes up about 3-5K even on high-use articles, which seems tolerable. Thoughts or objections? Mackensen (talk) 21:04, 22 July 2007 (UTC)
thread_title:  Proposed change 

message: Whilst it is the lowest of all importances, could someone please change the wording in the headers from Previous/Next to Preceding/Following. It just makes more technical and geographical sense; and it prevents that crushing of text (that happens when the termini are bigger than the headers). Kevin Steinhardt (talk) 04:13, 18 November 2007 (UTC)
thread_title:  Proposed change 

message: A minor suggestion to span the middle column by 3, instead of having 3 separate columns, unless they are serving any other specific purposes now?  - oahiyeel talk 20:20, 21 November 2007 (UTC)
thread_title:  colspan middle column 

message: When used on pages with very little content other than the Info Box, the template does not render until the end of the Info Box, leaving a large amount of white space to the right.  This does not appear to happen on the older(?) rail template.  As examples, see Brigg railway station and Baldock railway station. Can this be fixed? Ajcoxuk (talk) 16:47, 17 February 2008 (UTC)
thread_title:  Width required by macro 

message: suggestion to remove the non-breaking spaces   ; before and after the "preceding station" and "following station". They are causing slight misalignment with regards to being ed. Unless they are there for a reason? - oahiyeel talk 07:20, 2 April 2008 (UTC)
replies: text: Looks like those got added in November and were cosmetic only, so it's probably safe. Do you have an example of a misalignment? Mackensen (talk) 10:43, 2 April 2008 (UTC)
replies: text:  Happy‑melon 14:30, 5 April 2008 (UTC)
thread_title:  remove leading and trailing spaces 

message: This template is currently a member of :Category:Rail succession templates, but that category has been redirected to :Category:Rail transport succession templates, so the link should be updated.  --Russ (talk) 20:11, 9 July 2008 (UTC)
thread_title: Edit request

message: Could someone please remove the bold style from "Preceding station" and "Following station". It is not necessary, as wikitables apply bold automatically. Mitch Ames (talk) 10:56, 8 October 2013 (UTC)
replies: text: --Redrose64 (talk) 12:33, 8 October 2013 (UTC)
thread_title:  Bold style is unnecessary 

message: can someone fix or revert the recent changes?  they make no sense.  for example,

why would you still try to use  after you know that it doesn't exist? before the change, Template:Cairo Metro style had links but no transclusions.  Now it has transclusions, which means we are going to get a bunch of template clogging up Wikipedia:Database reports/Transclusions of deleted templates. 98.230.196.215 (talk) 01:10, 5 January 2017 (UTC)
replies: text: Undone: This request has been undone. As there seem to be good-faith concerns about these recent edits, and they have not been discussed, I have reverted them all and invite User:Jc86035 to get consensus — Martin (MSGJ · talk) 09:40, 5 January 2017 (UTC)

text: What we have here, when used with , is  which since Template:Cairo Metro style doesn't exist, reduces to  and the first test is empty, so it emits nothing. Compare when used with e.g. :  which since Template:BART style does exist, reduces to  but  returns the empty string, so again we get  and the first test is again empty, so it again emits nothing. If we didn't test for existence, the BART one would still reduce cleanly, but the Cairo Metro one would put invalid declarations into the style= attribute. --Redrose64 🌹 (talk) 09:52, 5 January 2017 (UTC)
replies: text: Clearly that wasn't happening, given the template calls to . The "old"/current version seems to work fine, given that the second option for an #ifexist is the same as a "false" for #if (i.e. there is no reason to have an #if:#ifexist). Maybe I'm just reading the code wrong? Primefac (talk) 15:08, 5 January 2017 (UTC)
replies: text:  Likely the reason there was a transclusion was because I didn't enclose the two instances of  in #ifexist: (and went off to make a Lua module instead because I thought it would load marginally faster). I've tried fixing that in the sandbox; the main template still needs the header colour fix to match site CSS. Jc86035 (talk) Use to reply to me 14:59, 6 January 2017 (UTC)
replies: text:  I've merged the sandbox into the main template. Jc86035 (talk) Use to reply to me 09:32, 8 January 2017 (UTC)
replies: text: Did you know that in a declaration like border-left: 0px none; one of the values is redundant? A style of none implies a width of zero, and vice versa. Also, when a width is zero, the units are also redundant, so you can simplify to either border-left: 0; or border-left: none; I prefer the latter as the meaning is clear. --Redrose64 🌹 (talk) 11:34, 8 January 2017 (UTC)
replies: text:  I've changed all of them to none; thanks for explaining. Jc86035 (talk) Use to reply to me 11:49, 8 January 2017 (UTC)
thread_title:  Template-protected edit request on 5 January 2017 

message: Please replace To add another line, go here.
Category:Rail transport succession templates with  to allow non-template-editors to develop documentation for this template. I have copied the current instruction and category over to the new /doc page. Thanks, --DannyS712 (talk) 02:28, 23 April 2019 (UTC)
replies: text: Jc86035 (talk) 10:17, 23 April 2019 (UTC)
thread_title:  Template-protected edit request on 23 April 2019 

message: There is currently a discussion at Wikipedia talk:WikiProject UK Railways regarding a requested edit to this template. The thread is Northumberland Park in Tyne & Wear. Thank you. Thryduulf (talk) 14:26, 16 January 2024 (UTC)
thread_title:  Northumberland Park Metro station