Share to: share facebook share twitter share wa share telegram print page

Template talk:Routemap

Need help with aligning collapsible sections

Hi. I am clearly not proficient enough to know how to align collapsible sections on a template. I flipped the orientation of Template:Confederation Line to west to east since that appears to be the convention for routemaps, but in doing so, I was unable to get the collapsible segments to properly line up how they did prior to me flipping the diagram's orientation. Could someone with more experience help go in and fix it? Much appreciated. OrdinaryScarlett (talk) 12:09, 11 January 2025 (UTC)[reply]

@OrdinaryScarlett: Unfortunately I have no idea. They seem to always be distorted either in the template or in the article. Because of that, I avoid them at all costs. The best solutions I can think of, assuming this is not fixed, is to remove the collapsible section(s) entirely or try to ignore it. Sorry I could not be of more help! Hotdog with ketchup (talk) 21:14, 11 January 2025 (UTC)[reply]
No worries! OrdinaryScarlett (talk) 07:28, 14 January 2025 (UTC)[reply]
Usually it's a matter of either making sure the column width of the collapsible section is the same as in the body, or setting the |tw= (text width) parameter value correctly. Useddenim (talk) 19:31, 6 July 2025 (UTC)[reply]

Adding a new set color

I've just been doing some maintenance work over at Commons on a new BSicon color, emerald. Could someone with template editor privileges please update your routemap to include | emerald = 006400 | ex_emerald = 64A064. Thanks for your help. VanIsaac, GHTV contrabout 01:04, 17 February 2025 (UTC)[reply]

Is there consensus for this color value? I see a lot of back and forth. Pinging Useddenim, who participated in that discussion. – Jonesey95 (talk) 01:49, 17 February 2025 (UTC)[reply]
Well, as you can see at Commons:Category:BSicon/railway/set emerald, they've already been created, and haven't been changed in the ensuing month and a half on the basis of the discussion. VanIsaac, GHTV contrabout 03:37, 17 February 2025 (UTC)[reply]
My takeaway from the discussion was "Yes, we could use a darker shade of green, but  emerald  is too close to the existing   set f  ." I was going to delete emerald and suggest  Brunswick  as an alternative, but just haven't got to it yet. Useddenim (talk) 03:44, 17 February 2025 (UTC)[reply]
@Jonesey95: See c:Talk:BSicon/Colors#Proposed new color. Useddenim (talk) 19:19, 20 February 2025 (UTC)[reply]
I have said that I already read that discussion and saw a lot of back and forth, and I do not see any new comments since 4 January. Please be explicit about your request, if you have one. That discussion and the above discussion are both confusing to me. – Jonesey95 (talk) 19:28, 20 February 2025 (UTC)[reply]
@Vanisaac and Jonesey95:  Done. Useddenim (talk) 01:57, 7 July 2025 (UTC)[reply]

Improvement

I have three suggestions for improving this module. I initially attempted to enhance it myself but had to pause due to its complexity.

  • Would it be better to move the i18n table into a configuration submodule? Also, should the odata table be placed in a subpage and accessed via the mw.loadData method?
  • I noticed that the current approach to generating tables involves concatenating wikitext directly, which appears unstructured. Would it be more appropriate to use the mw.html.create method to construct the table in a cleaner, more maintainable way?

I have a question:

  • Who is/are the author(s) of this module? Were they two Russian Wikipedians (According to Chinese WP)?
Hzt0208042508415531 tw (talk) 06:57, 26 June 2025 (UTC)[reply]

Template-protected edit request on 28 June 2025 Comment

Redundant items(at line 52, Module:Routemap):

...
["row-linfo3-fmt"] = '<div class="RMsi">%s</div> ',
["row-rinfo3-fmt"] = ' <div class="RMsi">%s</div>', 
...

Hzt0208042508415531 tw (talk) 08:26, 28 June 2025 (UTC)[reply]

 Not done: it's not clear what changes you want to be made. Please mention the specific changes in a "change X to Y" format and provide a reliable source if appropriate.. taavi (talk!) 14:05, 28 June 2025 (UTC)[reply]
@Taavi: It's a module, not an article, so {{subst:ETp|xy}} isn't ideal - {{subst:ETp|sand}} would be better. This displays as follows:
 Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. --Redrose64 🌹 (talk) 22:12, 28 June 2025 (UTC)[reply]
In module,I would like to made the change to remove redundant key-value code.173.224.219.79 (talk) 15:58, 30 June 2025 (UTC)[reply]
I do not see any change to Module:Routemap/sandbox. Without that, your proposal cannot be tested. --Redrose64 🌹 (talk) 07:43, 1 July 2025 (UTC)[reply]

Useddenim (talk) 00:38, 6 August 2025 (UTC)[reply]

Template-protected edit request on 14 August 2025

Template:RoutemapRoute's documentation mentions parameters |Llink=, |Lsize=, |Rlink=, |Rsize=. Therefore I suggest to make this change (line 1096 and 1097):

  • if args.l then args.l = p._rmri{args.l,args.llink,(args.lsize or args.size),' '}..'&nbsp;' else args.l = '' end to if args.l then args.l = p._rmri{args.l,args.llink or args.Llink,(args.Lsize or args.lsize or args.size),' '}..'&nbsp;' else args.l = '' end
  • if args.r then args.r = '&nbsp;'..p._rmri{args.r,args.rlink,(args.rsize or args.size),' '} else args.r = '' end to if args.r then args.r = '&nbsp;'..p._rmri{args.r,args.rlink or args.Rlink,(args.Rsize or args.rsize or args.size),' '} else args.r = '' end Repakr (talk) 07:53, 14 August 2025 (UTC)[reply]
 Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. Please do not paste code blobs into a template's talk page. I do not see any change to Module:Routemap/sandbox. Without that, your proposal cannot be tested. --Redrose64 🌹 (talk) 21:17, 16 August 2025 (UTC)[reply]

Template-protected edit request on 15 August 2025

There is invisible text in Example 2.1, to fix it, the line 93 in module should be changed:

["colspan-fmt"] = '%s\n|-\n| colspan="7" style="background:%s;text-align:%s;%s"|\n%s',
+
["colspan-fmt"] = '%s\n|-\n| colspan="7" style="color:inherit;background:%s;text-align:%s;%s"|\n%s',

Repakr (talk) 15:07, 15 August 2025 (UTC)[reply]

 Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. Please do not paste code blobs into a template's talk page. I do not see any change to Module:Routemap/sandbox. Without that, your proposal cannot be tested. --Redrose64 🌹 (talk) 21:17, 16 August 2025 (UTC)[reply]

Template-protected edit request on 18 August 2025

As per above I have made changes to sandbox. These changes, firstly, fix a problem with invisible text in dark mode as seen in Example 2.1 in template's documention, secondly they fix a problem of unworking parametrs, mentioned in Template:RoutemapRoute. (They are |Llink=, |Lsize=, |Rlink=, |Rsize=.) Repakr (talk) 07:55, 18 August 2025 (UTC)[reply]

Help, please

I originally posted this on the Template:Railway line legend page, so this may not fit this page exactly, but some of these never show up, as far as I can tell. After thorough research, the only place using the horsecar icon is the Disneyland Horsecar. However, there is NO list of draisine systems, so is there any rail line that uses it? Also, I'm doing a list of these symbols with examples, so if anyone can tell me a way to find Wikipedia articles with certain icons, that would be amazing. Daylighted tunnels, among other things, are hard to find. This would be very helpful, so if there is any way to do this, please tell me. AtTheTownHouse (talk) 23:27, 10 September 2025 (UTC)[reply]

All images are stored on Commons, for example File:BSicon DRAISINE.svg. The linked page will show usage of the file across all wikis, including this one. Mackensen (talk) 23:33, 10 September 2025 (UTC)[reply]
Thanks!!! You are a lifesaver.
Sincerely, AtTheTownHouse (talk) 13:45, 11 September 2025 (UTC)[reply]
Prefix: a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9

Portal di Ensiklopedia Dunia

Kembali kehalaman sebelumnya