Template talk:Infobox rail line/Archive 2

Template-protected edit request on 21 April 2020
Hi, Could someone enlarge the logo and image sizes please as as can be seen here both the logo and the image are on the small side (the logo more so), Most infoboxes now don't include image or logo widths as the infobox tends to do the job, Thanks, Regards, – Davey 2010 Talk 12:30, 21 April 2020 (UTC)
 * Red information icon with gradient background.svg Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. It looks like the current logo_width and logo_width2 defaults are 50px each, and the current image_width has no default. As an uninvolved editor, the images look reasonable to me, so please make changes in the sandbox to support your preferred width(s), and post back here to ask people to look at the testcases page when you are ready. – Jonesey95 (talk) 14:41, 21 April 2020 (UTC)
 * Except I have no idea what I'm doing and asked here in the hope those that answer these would know, Oh well thanks anyway. – Davey 2010 Talk 15:28, 21 April 2020 (UTC)
 * Take a look at Template:Infobox rail line/testcases to see if you like those default sizes better. – Jonesey95 (talk) 17:08, 21 April 2020 (UTC)
 * Hey Jonesey95, Many thanks for doing that - Templates really aren't my strong point and are probably the least thing I actually know/understand here so thanks for doing that,
 * Must infobox images here reach side-to-side (See Audi A4, Arriva, Blink-182) so personally I prefer #2,
 * If consensus would be preferred then I have no problems firing up an RFC,
 * Many thanks again I genuinely do appreciate your help, Thanks, – Davey 2010 Talk 17:33, 21 April 2020 (UTC)
 * I have updated the template based on this discussion. Let me know if it causes any problems. If the logo should be larger as well, I can experiment with that. – Jonesey95 (talk) 17:41, 21 April 2020 (UTC)
 * Hi Jonesey95, Ah okay thank you, I was just about to say the logo may need experimenting with as over at Ebbw Valley Railway it's still too small, Many thanks, Kind Regards, – Davey 2010 Talk 17:44, 21 April 2020 (UTC)
 * I enlarged the logo in the sandbox to 80px from the current default of 50px, but it looks garish to me at Template:Infobox rail line/testcases. I think that particular article may need a custom setting. – Jonesey95 (talk) 17:57, 21 April 2020 (UTC)
 * Hey Jonesey95, Ah okay in that case I'll reinstate the prev logo settings for that logo, Many thanks again for your help, Thanks, – Davey 2010 Talk 18:45, 21 April 2020 (UTC)

Hi again Jonesey95, I've been playing about with the testcase page and basically copied the image coding from Template:Infobox company - this is the result, If I paste the Arriva logo into the Ebbw article it's tiny so I assume somewhere a long the lines my coding has enlarged the Arriva image however it's still not enlarging the Ebbw logo so I guess there's nothing else we can do about that logo, Should the coding at the testcase also be included as without it all logos would continue to be tiny ?, (I'll restore the testcase later), Thanks, – Davey 2010 Talk 19:30, 21 April 2020 (UTC)
 * Nevermind - I've inadvertently reduced the main image size now so am giving up, Thanks again. – Davey 2010 Talk 19:37, 21 April 2020 (UTC)

Add maximum gradient parameter
Hi Great work on the template, which I'm using in my first sandbox project (which may move out into the real world at some point). How about adding a maximum/ruling gradient(UK)/grade(US) parameter to the template? I noticed the lack as the original-language article on de.wikipedia uses a different infobox which does include this information. Ssptwriter (talk) 14:47, 28 September 2016 (UTC)
 * This parameter was previously in this template, as "maxincline", and its removal appears to have been made by accident, perhaps in this 2015 edit (and corresponding edit to the doc file? I don't fully understand all the workings of templates such as this). I find no discussion of the removal anywhere, nor any mention in an edit summary, and it seems a very logical inclusion in the template, so it was almost certainly made in error.  I remembered it being there in the past, and I was surprised to find it gone. The parameter was  "maxincline", and it was defined/labelled as "Maximum incline", but I believe that "ruling gradient" (UK English) or "ruling grade" (US English), as mentioned above by Ssptwriter, are more common terms for this measure than "maximum incline". However, for the broader Wikipedia audience "maximum" is better than "ruling". The article to which the former parameter was linked is Grade (slope), so I suggest the label be "maximum grade" (and linked to Grade (slope), as before). Differing views are welcome, but the label can be changed in the future if there is consensus to do so. Meanwhile, can someone please reinstate this parameter? SJ Morg (talk) 07:52, 13 June 2020 (UTC)

Change order of parameters
I created a draft in the sandbox seperating properties of railway line from the passenger services running on it. For example the type commuter rail or the system National Rail doesn't refer to the railway line itself but to the services of the TOCs. These properties are grouped in a new section called services that replaces the operation section.

Line number has been intended for the number of a service. In many articles it is used for the railway line number (in France or in Germany). For services the parameter routes can be used instead, in some cases Template:Infobox rail service might be more suitable.

Dates such as opening etc. and the events are grouped in one section called History. I couldn't find out what "conduction system" means in rail context so it's temporarily located in the technical section.

These changes can be seen in the sandbox and the testcases. Please note that I haven't changed the if-statements for the headers yet as some parameters might be changed in the final version.--PhiH (talk) 11:06, 27 July 2020 (UTC)

Template-protected edit request on 5 September 2020
As described here I changed the order of parameters and added some parameters to draw a clear distinction between railway line and services. The final version can be seen in the /sandbox. --PhiH (talk) 07:59, 5 September 2020 (UTC)
 * Yes check.svg Done Primefac (talk) 23:18, 6 September 2020 (UTC)

Just noticed a typo: I wrote "date56" instead of "data56" Could you fix that please?--PhiH (talk) 17:43, 7 September 2020 (UTC)
 * ✅. Primefac (talk) 18:26, 7 September 2020 (UTC)

Map
Is there any way of adding a "pushpin_map" or "mapframe" for maps other than a route map? Liverpoolpics (talk) 12:14, 15 August 2020 (UTC)

– I have made a start at this in Template:/sandbox 2, using code copied initially from Template:Infobox mine. &mdash; WT79 (speak to me &#124; [//xtools.wmflabs.org/ec/en.wikipedia/WT79 editing patterns] &#124; [//xtools.wmflabs.org/globalcontribs/WT79 what I been doing]) 11:25, 28 December 2020 (UTC)

Template-protected edit request on 19 January 2021
Hi, please help to transfer source code from sandbox to main template. This is the testcase. The changes is the inclusion of module parameter, and the testcase shows  when called/embeded from/inside the module parameter is working as intended. Thanks  — Paper9oll  (📣 • 📝)  11:55, 19 January 2021 (UTC)
 * Red information icon with gradient background.svg Not done: You can already use embedded for that. Elliot321 (talk &#124; contribs) 00:16, 20 January 2021 (UTC)

Template-protected edit request on 27 December 2020
Add the line " " to the template, preferably just below the abovestyle; this has been tested in the sandbox. The change is because, when the template is embedded, the title is hidden as it is in the "above" section, which obviously does not exist when embedded. See, for instance,, showing the issues when the title is hidden. Regards, WT79 (speak to me &#124; [//xtools.wmflabs.org/ec/en.wikipedia/WT79 editing patterns] &#124; [//xtools.wmflabs.org/globalcontribs/WT79 what I been doing]) 17:55, 27 December 2020 (UTC)
 * There should be an option to retain the design as it is for cases where the subheading is not needed. I would suggest to only add the row if the "name" parameter is specified. --PhiH (talk) 19:29, 27 December 2020 (UTC)
 * So that would be  --PhiH (talk) 19:57, 27 December 2020 (UTC)
 * Would there ever be a case where the name was not needed? As the main subject of the article is not a railway, otherwise this template would not be embedded, don't we want to make it clear which part of the infobox is relating to the railway and which is not? WT79 (speak to me &#124; [//xtools.wmflabs.org/ec/en.wikipedia/WT79 editing patterns] &#124; [//xtools.wmflabs.org/globalcontribs/WT79 what I been doing]) 15:23, 28 December 2020 (UTC)
 * In the majority of cases we want to make clear that a section is referring to the railway line. "Railway" wouldn't be a suitable header in most cases which is why it's specified in . But there may be cases where that header is not needed. I don't think we should that remove that feature just because we can't think of a situation where it is necessary. --PhiH (talk) 15:51, 29 December 2020 (UTC)
 * Understood. I am happy for the code you suggested to replace mine; have updated sandbox to reflect this. WT79 (speak to me &#124; [//xtools.wmflabs.org/ec/en.wikipedia/WT79 editing patterns] &#124; [//xtools.wmflabs.org/globalcontribs/WT79 what I been doing]) 16:46, 29 December 2020 (UTC)
 * Yes check.svg Done Izno (talk) 05:39, 1 February 2021 (UTC)

Template-protected edit request on 26 January 2022
At " " change " " to " ". At " " change " " to " ". Bellow " " add " " after " ". Reason: To be able to use "Stops" instead of "Stations" when using this template. JivanZa (talk) 14:57, 26 January 2022 (UTC)
 * Red information icon with gradient background.svg Not done for now: please establish a consensus for this alteration before using the template. – Jonesey95 (talk) 17:04, 26 January 2022 (UTC)

Use proper list for termini
Please change data10 to as demonstrated in the sandbox. This conforms the infobox to MOS:PLIST by using a real HTML list instead of faking one with a line break, and makes it more readable (at least on mobile) by adding space to distinguish between the two entries more clearly. (Note the sandbox has other differences that I'm not requesting here.) Hairy Dude (talk) 13:55, 25 July 2022 (UTC)
 * ✅.  P.I. Ellsworth &thinsp;, ed.  put'r there 19:12, 25 July 2022 (UTC)