Template talk:S-rail
From Wikipedia, the free encyclopedia
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   ;
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)