Template talk:S-rail

From Wikipedia, the free encyclopedia

Template:S-rail is permanently protected from editing, as it is a heavily used or visible template.

Substantial changes should be proposed here, and made by administrators if the proposal is uncontroversial, or has been discussed and is supported by consensus. Use {{editprotected}} to attract the attention of an administrator in such cases.
This template does not have a documentation subpage. If the template page contains categories, interwiki links or usage notes, move these to Template:S-rail/doc. If the template does not require documentation, add |doc=no to this template ({{permprot}}).

Notice For information on how to use this template, see Template talk:S-line
This article 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
Template This page is a template and does not require a rating on the quality scale. (assessment comments)
??? This article has not yet received a rating on the importance scale within the Trains WikiProject.

Contents

[edit] Proposed change

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 {{{{{SYSTEM}}} style}} 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:

|-
!{{#ifexist:Template:{{{title}}} style|style="color:{{#if:{{{{{title}}} style|main_font_color}}|#{{{{{title}}} style|main_font_color}}|inherit}}; background-color:{{#if:{{{{{title}}} style|main_color}}|#{{{{{title}}} style|main_color}}|inherit}};"{{!}}}}'''Previous station'''
! style="border: 0px #aaa none; {{#ifexist:Template:{{{title}}} style|background-color:#{{{{{title}}} style|main_color}}}}"| 
! style="border: 0px #aaa none; {{#ifexist:Template:{{{title}}} style|background-color:#{{{{{title}}} style|main_color}}}}"|{{S-rail/lines|title={{{title}}}}}
! style="border: 0px #aaa none; {{#ifexist:Template:{{{title}}} style|background-color:#{{{{{title}}} style|main_color}}}}"| 
!{{#ifexist:Template:{{{title}}} style|style="color:{{#if:{{{{{title}}} style|main_font_color}}|#{{{{{title}}} style|main_font_color}}|inherit}}; background-color:{{#if:{{{{{title}}} style|main_color}}|#{{{{{title}}} style|main_color}}|inherit}};"{{!}}}}'''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)

[edit] Proposed change

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)

[edit] colspan middle column

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)

  • Doing so forces the fixed width for the color bars; otherwise they vary depending on the size of the template. Mackensen (talk) 20:42, 21 November 2007 (UTC)

[edit] Width required by macro

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)

  • Already has been. When using {{s-start}} or {{s-rail-start}}, use the noclear=yes parameter. I've demonstrated at Baldock. Mackensen (talk) 17:09, 17 February 2008 (UTC)

[edit] remove leading and trailing spaces

{{editprotected}}

suggestion to remove the non-breaking spaces &nbsp ; before and after the "preceding station" and "following station". They are causing slight misalignment with regards to being <center>ed. Unless they are there for a reason? - oahiyeel talk 07:20, 2 April 2008 (UTC)

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)
Y Done Happymelon 14:30, 5 April 2008 (UTC)