Template talk:Infobox rail line/Archive 2
![]() | This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 |
Template-protected edit request on 21 April 2020
![]() | This edit request to Template:Infobox rail line has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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, –Davey2010Talk 12:30, 21 April 2020 (UTC)
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. –Davey2010Talk 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, –Davey2010Talk 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, –Davey2010Talk 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, –Davey2010Talk 18:45, 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)
- 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, –Davey2010Talk 17:44, 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)
- 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)
- 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. –Davey2010Talk 15:28, 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, –Davey2010Talk 19:30, 21 April 2020 (UTC)
- Nevermind - I've inadvertently reduced the main image size now so am giving up, Thanks again. –Davey2010Talk 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
![]() | This edit request to Template:Infobox rail line has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
As described here (#Change order of parameters) 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)
Just noticed a typo: I wrote "date56" instead of "data56" @Primefac: Could you fix that please?--PhiH (talk) 17:43, 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)
@Liverpoolpics: – I have made a start at this in Template:Infobox rail line/sandbox 2, using code copied initially from Template:Infobox mine. — WT79 (speak to me | editing patterns | what I been doing) 11:25, 28 December 2020 (UTC)
Template-protected edit request on 19 January 2021
![]() | This edit request to Template:Infobox rail line has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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 {{infobox korean name}}
when called/embeded from/inside the module parameter is working as intended. Thanks — Paper9oll (📣 • 📝) 11:55, 19 January 2021 (UTC)
Not done: You can already use
|embedded=
for that. Elliot321 (talk | contribs) 00:16, 20 January 2021 (UTC)
Template-protected edit request on 27 December 2020
![]() | This edit request to Template:Infobox rail line has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Add the line "| title = {{#if:{{{embed|}}}|'''{{{name|Railway}}}'''}}
" 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, this implementation, showing the issues when the title is hidden. Regards, WT79 (speak to me | editing patterns | 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
| title = {{#if:{{both|{{{embed|}}}|{{{name|}}}}}|'''{{{name}}}'''}}
--PhiH (talk) 19:57, 27 December 2020 (UTC)- @PhiH: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 | editing patterns | 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
{{{name}}}
. 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 | editing patterns | what I been doing) 16:46, 29 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
- @PhiH: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 | editing patterns | what I been doing) 15:23, 28 December 2020 (UTC)
Done Izno (talk) 05:39, 1 February 2021 (UTC)
Template-protected edit request on 26 January 2022
![]() | This edit request to Template:Infobox rail line has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
At "label15
" change "Stations
" to "{{#if:{{{stations|}}}|Stations|Stops}}
".
At "data15
" change "{{{stations|}}}
" to "{{#if:{{{stations|}}}|{{{stations}}}|{{{stops|}}}}}
".
Bellow "end of infobox
" add " | stops
" after "stations
".
Reason: To be able to use "Stops" instead of "Stations" when using this template. JivanZa (talk) 14:57, 26 January 2022 (UTC)
Not done for now: please establish a consensus for this alteration before using the
{{edit template-protected}}
template. – Jonesey95 (talk) 17:04, 26 January 2022 (UTC)
Use proper list for termini
![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please change data10
to {{#if:{{{start|}}}|{{#if:{{{end|}}}|{{unbulleted list|{{{start}}}|{{{end}}}}}|{{{start}}}}}}}
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)
Native name lang does not show
X | |
---|---|
Overview | |
Other name(s) | Y |
Native name | Z |
Peter Horn User talk 18:19, 5 December 2022 (UTC)
- It is not supposed to show. It is rendered as a span tag that wraps around the native name:
<span class="nickname" lang="es">Z</span>
. See Template:Lang#Rationale for more information. – Jonesey95 (talk) 21:01, 5 December 2022 (UTC)