User talk:Sameboat

From Wikipedia, the free encyclopedia
Jump to: navigation, search
♡ Because English isn't my first language, please use simple and Plain English if you have something to discuss with me.
♡ You can write in modern Chinese if you're capable to do so. Or leave the message in my user talk page in Chinese Wikipedia. Thank you.
Not interested in public gathering This user is not interested in any public meeting or gathering, thus not hoping to receive any invitation. Thank you.
After a long day's work, SineBot can get pretty stressed.

Remember to sign your name with four waves ~~~~ after your message in any talk page. Intentionally avoiding signature and letting the user:SineBot do all the works for you will be reported to Admin!

Regarding File:West Coast Main Line service pattern diagram.svg[edit]

(crossposted from your Commons talk page) I notice you redrew the above map recently. Unfortunately the map it was based on has become out of date and the services described have changed considerably since 2010 when the original was drawn. The current normal weekday service (as of May 2015) is as follows:

Virgin Trains[edit]

(dep. 03 mins) London–Rugby–Coventry–B'ham Intl–Birmingham Same
(dep. 23 mins) London–Watford–Coventry–B'ham Intl–Birmingham 43->23; +Watford
(dep. 43 mins) London–Milton Keynes–Coventry–B'ham Intl–Birmingham–Sandwell–Wolverhampton–Crewe–Warrington–Wigan–Preston–Lancaster–Oxenholme/Penrith (alternating)–Carlisle–Glasgow/Haymarket–Edinburgh (alternating) 23->43; Merger of 2 services
(dep. 10 mins) London–Milton Keynes–Crewe–Chester (some continuing to Bangor/Holyhead) Same
(dep. 07 mins) London–Stafford–Crewe–Runcorn–Liverpool +Crewe
(dep. 30 mins) London–Warrington–Wigan–Preston–Lancaster–Oxenholme/Penrith (alternating)–Carlisle–Glasgow Same
(dep. 00 mins) London–Stoke–Macclesfield–Stockport–Manchester Same
(dep. 20 mins) London–Milton Keynes–Stoke–Stockport–Manchester Same
(dep. 40 mins) London–Crewe–Wilmslow–Stockport–Manchester Same

London Midland[edit]

(dep. 13 mins) London–Leighton–Bletchley–Milton Keynes–Wolverton–Northampton–Long Buckby–Rugby–Coventry–Tile Hill–Hampton–B'ham Intl–Marston Green–Birmingham 54->13; -Watford; -Hemel Hempstead; -Berkhamsted
(dep. 49 mins) London–Watford–Milton Keynes–Northampton–Long Buckby–Rugby–Coventry–Canley–Tile Hill–Berkswell–B'ham Intl–Marston Green–Lea Hall–Birmingham 54->49; -Hemel Hempstead; -Berkhamsted; -Leighton; -Bletchley; -Wolverton; +Canley; +Berkswell; +Lea Hall
(dep. 54 mins) London–Watford–Hemel–Berkhamsted–Leighton–Bletchley–Milton Keynes–Wolverton–Northampton 13->54; +Watford; +Hemel; +Berkhamsted
(dep. 25 mins) Northampton–Long Buckby–Rugby–Coventry–Canley–Tile Hill–Berkswell–Hampton–B'ham Intl–Marston Green–Birmingham (NB: in the southbound direction the above two services run as one) Newffffffffff
(dep. 46 mins) London–Milton Keynes–Rugby–Nuneaton–Atherstone–Tamworth–Lichfield–Rugeley–Stafford–Stone–Stoke–Kidsgrove–Alsager–Crewe -Northampton; -Watford
(dep. 24 mins) London–Watford–Hemel–Berkhamsted–Tring–Cheddington–Leighton–Bletchley–Milton Keynes Same
(dep. 04 mins) London–Wembley Central (limited)–Harrow–Bushey–Watford–Kings Langley–Apsley–Hemel–Berkhamsted–Tring +Wembley Central;
(dep. 34 mins) London–Harrow–Bushey–Watford–Kings Langley–Apsley–Hemel–Berkhamsted–Tring Same
(dep. 01 mins) Birmingham–Smethwick GB–Wolverhampton–Stafford–Crewe–Winsford–Hartford–Acton Bridge (limited service)–Runcorn–Liv S Pkwy–Liverpool Winsford no longer limited
(dep. 36 mins) Birmingham–Coseley–Wolverhampton–Penkridge–Stafford–Crewe–Runcorn–Liv S Pkwy–Liverpool Same

Transpennine Express[edit]

  • (dep. 00 mins) Manchester Airport–Manchester Picc–Manchester Ox Rd–Wigan–Preston–Lancaster–Oxenholme–Penrith–Carlisle–Lockerbie–Glasgow/Haymarket–Edinburgh (alternating)
  • (limited service via Bolton and Chorley instead of via Wigan) (talk) 13:37, 2 July 2015 (UTC)

A barnstar for you![edit]

Editors Barnstar Hires.png The Editor's Barnstar
In appreciation of your ongoing hard work (on other wikis, as well as English Wikipedia), your neutrality, and the intelligence with which you approach any subject. I know I awarded you a barnstar with similar wording recently, but your diligence and good humour is truly outstanding. Iryna Harpy (talk) 23:19, 22 July 2015 (UTC)


I noticed your post at WP:WikiProject Trains#Lua-based route diagram template. Looks good! I had a very quick look at some of the code.

Typo: rigth

This does not do what is hoped:

local i, j = next(rows), next(rows, i)--removing empty lines

The right-hand side is evaluated before the assignment. The last i in that line is an undefined global variable and so is nil. The result is that i and j are identical.

Rather than doing the split then removing blank lines, you might consider something like the following:

-- rows is the string argument (don't split it)
local index = 0
for row in rows:gmatch('([^\n]*)\n?') do
    row = mw.text.trim(row)
    if row ~= '' then
        index = index + 1
        local keyword = q.isKeyword(row, index, rows)
        if type(keyword) ~= "string" then table.insert(tmp, row(row, nil, nil)) else table.insert(tmp, keyword) end
    -- Perhaps omit the earlier "if rows == '' then..." test and use the following.
    -- The following checks that at least one row was non-blank.
    if index == 0 then return formaterror('parameter-missing') end

The gmatch works perfectly well with any UTF-8 text. Johnuniq (talk) 08:02, 30 August 2015 (UTC)

@Johnuniq: Sorry to disappoint you but that module was originally written by someone else who is already inactive and I just copy that from ru.wp. After few test in module:routemap/sandbox I still can't get it right in module talk:routemap/sandbox. -- Sameboat - 同舟 (talk · contri.) 08:52, 30 August 2015 (UTC)
I did a quick edit. Let me know if there is a problem. Do you want me to convert the whole module to use tabs for indents which is standard these days? Johnuniq (talk) 09:35, 30 August 2015 (UTC)
@Johnuniq:Yes, please do. But there is another thing I want to know before making a request: Do I need to rewrite the "route" function (to make it a local function?) in order to incorporate template:routemap & /i18n into the same module because the templates feel unproductive with all those parser functions. -- Sameboat - 同舟 (talk · contri.) 09:50, 30 August 2015 (UTC)
It's very complex so I do not understand what the different pieces are doing. However, as you say, the template stuff should be moved into the module. If there is a lot of i18n text, it would be worth putting it in a submodule to keep the main module manageable. However, that might happen later, if needed. Is the module in use right now? How long has it been in use? I'm wondering if it is known to work with the wikitext currently in articles. If it is in use, working in the sandbox to move everything from the templates into the module would be best. I can look at it every now and then, if wanted. Johnuniq (talk) 10:51, 30 August 2015 (UTC)
@Johnuniq:I've just finished localizing it today and no one besides you seems to be aware of/interested in the module yet, so currently the only article loads template:routemap is Crossrail which was revised by me. But working in the sandbox is indeed the best option. -- Sameboat - 同舟 (talk · contri.) 11:09, 30 August 2015 (UTC)
@Johnuniq: Just realized the fix does cause error as you can see in Module talk:Routemap/sandbox. -- Sameboat - 同舟 (talk · contri.) 23:01, 30 August 2015 (UTC)
Oops, I wasn't paying attention and a quick look shows that some quite strange stuff is happening to the rows table that I missed. I'll think about that later and let you know my conclusion. I think I should fix the tabs in Module:Routemap (no other changes) and attribute the module to ru:Module:Routemap in the edit summary—let me know if that is a problem. Later, I'll fix the sandbox. Johnuniq (talk) 23:30, 30 August 2015 (UTC)
I just saw WT:Route diagram template#Lua-based RDT. That's a bit of a problem which reduces my enthusiasm. We'll see what else happens. Johnuniq (talk) 23:40, 30 August 2015 (UTC)
I understand. I will try that myself in zh.wp sandbox in case you're interested again to avoid edit conflict. -- Sameboat - 同舟 (talk · contri.) 00:41, 31 August 2015 (UTC)
I fixed my mistake. The module is more complicated than I realized, and I suppose a lot more would be needed to make it fully implement the template. I have not looked at the syntax—your comment that the new syntax has no limits indicates a change would be desirable, but a change would be disruptive. I have to attend to other things and might not get a chance to do more. Don't feel obliged to use what I did—it's trivial, but it is slightly more efficient. I really just wanted to let you know about the "does not do what is hoped" line that I mentioned above. It has the tabs fixed. Johnuniq (talk) 04:22, 31 August 2015 (UTC)

@Johnuniq: I applied your last change to zh.wp and also modified the p.route function to a local function (localroute) so it can be used by other functions as well. Apparently it works and I can start implementing the infobox template into the module in zh.wp by myself. I will go with the method of stacking "result" variable again if its code isn't too horrible to look at. -- Sameboat - 同舟 (talk · contri.) 05:00, 31 August 2015 (UTC)

Good, thanks for letting me know. Johnuniq (talk) 05:32, 31 August 2015 (UTC)
(Not worth pinging...) I have finished adding the new function "infobox" to the zh.wp sandbox in order to substitute {{routemap}} which seems functional by far. Please tell me if you spot any weird code in the new function when you're in the mood. Thank you. -- Sameboat - 同舟 (talk · contri.) 15:52, 31 August 2015 (UTC)


Further to the above discussion, I have opened a RFC at Wikipedia talk:Route diagram template#RFC. As the use of the new system has been challenged and does not have consensus, no further RDTs should be changed to the new system until there is consensus for their use. Mjroots (talk) 17:43, 7 September 2015 (UTC)


IMO, Template:BSto doesn't look like a good candidate to convert to a module. It's pretty simple as templates go, and the module is anything but. The one use I do see would be if you planned to call this from another module. Is this the case? Jackmcbarn (talk) 15:07, 8 September 2015 (UTC)

I wrote module:BSto, invoked in {{BSto/sandbox}} and {{BSsplit/sandbox}} and tested in my sandbox. The markup explosion still occurs without {{!}} so the module is merely for little speed boost and reduce template expansion depth. -- Sameboat - 同舟 (talk · contri.) 13:08, 8 September 2015 (UTC)
OK; but I don't know what the point is, as the current templates seem to work fine in {{Routemap}} (as long as one remembers to use {{!}} instead of |). Useddenim (talk) 17:50, 8 September 2015 (UTC)
P.S. I think you meant to put this on Jackmcbarn's talk page, not mine. Useddenim (talk) 18:00, 8 September 2015 (UTC)

ArbCom elections are now open![edit]

You appear to be eligible to vote in the current Arbitration Committee election. The Arbitration Committee is the panel of editors responsible for conducting the Wikipedia arbitration process. It has the authority to enact binding solutions for disputes between editors, primarily related to serious behavioural issues that the community has been unable to resolve. This includes the ability to impose site bans, topic bans, editing restrictions, and other measures needed to maintain our editing environment. The arbitration policy describes the Committee's roles and responsibilities in greater detail. If you wish to participate, you are welcome to review the candidates' statements and submit your choices on the voting page. For the Election committee, MediaWiki message delivery (talk) 13:43, 23 November 2015 (UTC)

Season's greetings![edit]

Dynamic SVG[edit]

Hi Sameboat,

I found your contributions through File:London_Overground_map_sb.svg and am amazed with your excellent underground maps. I'm also touched by your willingness to teach your techniques on producing railway maps on your Commons user page — thank you!

I'm also passionate about SVGs, especially interactive and animated ones. I hope you wouldn't mind my pointing out that the click or hover effect on File:London_Overground_map_sb.svg didn't work for me on Firefox 38 or IE 11 on Windows 7: the cursor changed to a help cursor but hovering or clicking a line had no effect.

In case you might be interested, I discovered a reasonably cross-platform method which I've described on user:cmglee/Dynamic_SVG_for_Wikimedia_projects#Progressive_disclosure for which hover works in Chrome, Firefox and IE and clicking to select/deselect works in Chrome and Firefox. An SVG demonstrating this technique is File:Comparison_of_notable_bridges_SMIL.svg. I can help you to change File:London_Overground_map_sb.svg as you see fit.

Please let me know if you'd like to collaborate on developing dynamic SVGs in the future!

cmɢʟeeτaʟκ 23:37, 23 January 2016 (UTC)

@Cmglee: Hi. The Overground map hover effext works for me on latest Firefox v43 (Win xp and 7). I always let Firefox update itself. On top of that, the hover-trigger to me is not really reliable because it can easily fail to trace the mouse position when you move the mouse too fast, this causes the line remaining blue-lit even when the mouse has been moved away. I read from some SVG blog some time ago that such issue can only be fixed via script which is not really an option. -- Sameboat - 同舟 (talk · contri.) 14:35, 24 January 2016 (UTC)
Hi. I found a bug in my Firefox: opening an SVG from a link breaks the hover interaction. Pressing reload doesn't fix it but selecting the address bar and pressing Enter does. It works now for me, though as you wrote, a line sometimes stays on the lit state after moving the mouse away. cmɢʟeeτaʟκ 23:42, 24 January 2016 (UTC)

A barnstar for you![edit]

Graphic Designer Barnstar Hires.png The Graphic Designer's Barnstar
Three cheers for your excellent railway maps! cmɢʟeeτaʟκ 23:38, 23 January 2016 (UTC)

Train routes exceeding template include size[edit]

I made a list of articles which exceed the template include size, see here. It appears that several of them are due to complex railroad diagrams. For example, Alexandrovskaya railway station is in the hidden Category:Pages where template include size is exceeded, presumably because it uses {{Local train routes of Finlyandsky Rail Terminal}}. Is that something your routemap module would fix? If you feel like fixing them, please do so. Johnuniq (talk) 22:23, 3 February 2016 (UTC)

@Johnuniq: Hi. Did a quick search for article namespace containing "station" and "rail" in the category and fixed some route map templates. That should solve it. -- Sameboat - 同舟 (talk · contri.) 04:20, 4 February 2016 (UTC)
Thanks, that looks painful, but had a good result. If you have some time, there are some more:
Johnuniq (talk) 04:47, 4 February 2016 (UTC)
@Johnuniq: All done. Safesubst makes things easier even though some still requires manual rework. -- Sameboat - 同舟 (talk · contri.) 09:31, 4 February 2016 (UTC)
Thanks! I may be back, but it looks good at the moment... Johnuniq (talk) 10:19, 4 February 2016 (UTC)

To reproduce a bug[edit]

Hello Sameboot,

I tried to reproduce the bug in libRSVG and uploaded File:Crea.sandbox.svg, now a simple path, with the coordinates:

  • <path class="SamplePath" d="M150,200 C100,100 250,100 250,200 S400,300 400,150 <b>600,100</b> 600,20 570,90 450,60 500,70 <b>600,100</b>" id="path7519" /><!-- the red bezier path -->

The control point of 3rd before last point is the same as the last point: 600,100 but there in no fault. Can you reproduce it?. Thanks in advance, --Keysanger (talk) 12:44, 1 March 2016 (UTC)

It is triggered by calling the auto-oriented middle marker in the problematic path. More importantly, you need to add more objects after the path, because the said bug does not prevent the path itself from rendering, specifically the bug prevents rendering of the middle markers of the path and subsequent objects. -- Sameboat - 同舟 (talk · contri.) 13:09, 1 March 2016 (UTC)
Sorry, there is something I still don't understand. I added more objects after the path and arrows (middle-marks) to the file. But all objects remain visible. Can you give me a hint?. --Keysanger (talk) 15:29, 1 March 2016 (UTC)
Actually your path is not "glitchy" enough. Change C100,100 250,100 250,200 to C100,100 250,100 250,100 or S400,300 400,150 to S400,300 400,300. You can check it in SVGcheck without uploading it on Commons for a quick temporary check, after entering "What it will render like" page, you can simply click F5/refresh-resend after you have edited and saved the SVG on your computer. -- Sameboat - 同舟 (talk · contri.) 01:02, 2 March 2016 (UTC)
Right, the objects after the path disappeared. I see now that every time when y2=y the objects after the path disappear. I tested it with "C100,100 250,56 250,56" , "C100,100 250,99 250,99" and "C100,100 250,100 250,100" . The three cases lead the objects to disappear. Thanks Sameboat, I know now where is the Bermuda Triangle of SVG. --Keysanger (talk) 22:56, 2 March 2016 (UTC)

BS-map "souce code"[edit]

Got anything to add to Template talk:Great Eastern Main Line RDT.src? Useddenim (talk) 22:36, 6 March 2016 (UTC)

Nomination for deletion of Template:BS10[edit]

Ambox warning blue.svgTemplate:BS10 has been nominated for deletion. You are invited to comment on the discussion at the template's entry on the Templates for discussion page. Jc86035 (talk • contribs) Use {{re|Jc86035}} to reply to me 11:51, 14 March 2016 (UTC)

Nomination for deletion of Template:Railway line header1[edit]

Ambox warning blue.svgTemplate:Railway line header1 has been nominated for deletion. You are invited to comment on the discussion at the template's entry on the Templates for discussion page. ~ RobTalk 05:04, 24 March 2016 (UTC)

Nomination for deletion of Template:BS![edit]

Ambox warning blue.svgTemplate:BS! has been nominated for deletion. You are invited to comment on the discussion at the template's entry on the Templates for discussion page. Jc86035 (talk • contribs) Use {{re|Jc86035}} to reply to me 03:48, 27 March 2016 (UTC)



@Winterysteppe: 以論據反駁沒有問題,但我不想看見任何針對特定編者的標籤字眼,就算你認為這些標籤是絕對中立在第三者來看都是極之不妥當。-- Sameboat - 同舟 (talk · contri.) 06:26, 5 April 2016 (UTC)
另外關於衛報,她報導巴拿馬文件是二次來源,但作出普京牽涉其中的結論是屬於一次來源,這就是我認為直接以衛報支撐整段走資路徑的最大問題。-- Sameboat - 同舟 (talk · contri.) 06:35, 5 April 2016 (UTC)

MfD nomination of Wikipedia:MTR templates[edit]

Ambox warning orange.svg Wikipedia:MTR templates, a page which you created or substantially contributed to, has been nominated for deletion. Your opinions on the matter are welcome; you may participate in the discussion by adding your comments at Wikipedia:Miscellany for deletion/Wikipedia:MTR templates and please be sure to sign your comments with four tildes (~~~~). You are free to edit the content of Wikipedia:MTR templates during the discussion but should not remove the miscellany for deletion template from the top of the page; such a removal will not end the deletion discussion. Thank you. Jc86035 (talk • contribs) Use {{re|Jc86035}} to reply to me 14:04, 28 April 2016 (UTC)

Commons/Wikisource request.[edit]

You seem to be good at cleaning up SVG, Would you mind taking a look at these? c:Category:Traffic Signs Manual (UK) (Chapter 5) which are a set of diagrams for UK road markings..

The previous workflow on these seems to be a bit convoluted but seems to be as follows...

The original drawing looks to be Micrografix... -> Converted to EPS (possibly in Adobe Illustrator).

When I started on the EPS, I was using Inkscape.. Inkscape can't import EPS directly so it gets Ghostscript to make a PDF and it then imports the PDF. This imported PDF was then saved as SVG and in many cases cleaned up manually by making a font susbtitution and cleaning up some nodes.

However, it would be appreciated if someone with experience in recovering 'noisy' SVG files took a look at the digarams as well. ShakespeareFan00 (talk) 14:18, 13 May 2016 (UTC)


I've modified Module:Routemap and the four auxiliary templates (to, split, cvt, srws + module) to display (mostly) correctly in mobile view. (See 1, 2.) A few questions:

  • Should I/anyone take the time to fix {{BS-map}} as well?
  • Edokter suggested replacing the <center> tags (see 1), probably for HTML5 validity. How could this be implemented?
  • There are unfortunately still a few issues with mw-collapse (what with it being disabled in mobile), particularly that the usually-replaceable row, due to all the rows being shown, is below the first usually-collapsed row. Is it necessary to fix this?
  • How easy is it for the changes to be ported to the other wikis' versions without messing up all the language customisations and other things?

Thanks, Jc86035 (talk • contribs) Use {{re|Jc86035}} to reply to me 10:57, 21 June 2016 (UTC)

I don't have a good idea, so I just moved your topic to Wikipedia talk:Route diagram template#Module:Routemap. -- Sameboat - 同舟 (talk · contri.) 01:20, 22 June 2016 (UTC)

File:West Coast Main Line service pattern diagram.svg[edit]

Please see comments from User:Mvpo666 about this diagram here: Talk:Virgin Trains#New service vector diagram. Thanks!   JaJaWa |say hello  18:39, 3 July 2016 (UTC)

Route map size exceeded[edit]

I was looking at articles exceeding template include size and saw these:

It appears stuff like {{Gloucester to Newport Line}} is way too big. That's unbelievably complex! Does your module fix that? Don't worry about it if it's too much hassle, but I thought I'd mention it. Those articles were not in the size-exceeded category a couple of weeks ago, so something has been added which took them past the limit. Johnuniq (talk) 11:34, 5 July 2016 (UTC)

@Johnuniq: Thanks for notice, but I have to leave {{Medway watermills diagram}} as is because the #if: parser in the {{{map}}} parameter is causing trouble to the module:routemap markup. The parser function is used as a switch so that the transcluding articles can hide a specific section of the diagram individually. -- Sameboat - 同舟 (talk · contri.) 14:14, 5 July 2016 (UTC)
I don't see why edits like this or this are suddenly necessary? You claim "exceeds template size limit", but it wasn't exceeded before, so what's changed? --Redrose64 (talk) 14:25, 5 July 2016 (UTC)
@Sameboat: Thanks, the first link in my above comment shows that those articles are now OK. Sorry about the difficulty.
@Redrose64: I tried to work out why those articles popped up in the category but it's complex and I did not get anywhere. The category was empty a week or two ago. To see that there was a problem, consider History of the District line which transcludes {{District Line RDT}}. Viewing the html source of the current article and searching for "NewPP" shows:
Post‐expand include size: 680094/2097152 bytes
Template argument size: 4950/2097152 bytes
Using the template version before Sameboat's edit exceeds the expansion size. To see that, view the 28 February 2016 of the template, then edit it, then paste "History of the District line" at the bottom of the page under "Preview page with this template" in the "Page title" box, and click "Show preview". That shows a message at the top of the page:
Warning: Template include size is too large. Some templates will not be included.
and viewing the html source shows:
Post‐expand include size: 2091615/2097152 bytes
Template argument size: 979470/2097152 bytes
Johnuniq (talk) 01:25, 6 July 2016 (UTC)
Since History of the District line had not been changed since 30 May 2016, and Template:District Line RDT not since 28 February 2016, that makes me suspect that the problem is not in District Line RDT but in one of the subtemplates used by that or by History of the District line that had changed in the last two weeks. These are:
One of those must have changed with detrimental effects; I don't know which it was. But it does show the need for proper testing before any widely-used module or template is altered. --Redrose64 (talk) 10:17, 6 July 2016 (UTC)
@Nima Farid and Redrose64: Template:Rail-interchange/doc#Generic alone is enough to be classified as Pages where template include size is exceeded, but the progress of rewriting {{Rail-interchange}} into Lua module is unknown because of the sheer amount of images and text styles the template handles. -- Sameboat - 同舟 (talk · contri.) 13:40, 6 July 2016 (UTC)
This edit didn't notify me, and it won't have notified Nima Farid either. You need to add the user links in the same edit as the one which added your signature, see WP:Echo. --Redrose64 (talk) 20:20, 6 July 2016 (UTC)


What does "Gentrify" mean? --Redrose64 (talk) 10:05, 10 July 2016 (UTC)

@Redrose64: Just to edit the map so it looks nicer. If this word offended you, I will stop using it. I do understand the negative connotation "gentrification" carries. -- Sameboat - 同舟 (talk · contri.) 10:20, 10 July 2016 (UTC)
Yes, I was understanding it in the same sense of "gentrification". I don't think that it's an appropriate term for the reshaping of a topological map. --Redrose64 (talk) 10:24, 10 July 2016 (UTC)

Nomination for deletion of Template:Routemap/i18n[edit]

Ambox warning blue.svgTemplate:Routemap/i18n has been nominated for deletion. You are invited to comment on the discussion at the template's entry on the Templates for discussion page. Jc86035 (talk • contribs) Use {{re|Jc86035}} to reply to me 14:04, 29 July 2016 (UTC)

Questions about Module:Routemap/sandbox[edit]

Hi Sameboat,

  • Does the fillercell function actually do anything, or is it leftover code from the Russian Wikipedia?
  • Would splitting the module up into separate subpages improve performance?

Thanks, Jc86035 (talk • contribs) Use {{re|Jc86035}} to reply to me 10:47, 30 July 2016 (UTC)

A1: Only in Russia...n WP and similar Slavic WPs for separating rows, e.g. ru:Шаблон:Кольцевая линия (Москва), this is due to their special way of using vibrant RDT icons. But we should leave it be if the EN WP module gets retro-implemented to RU WP.
A2: Would be better if you ask Johnuniq or in Wikipedia talk:Lua, but I assume the performance by separating sub-module is unnoticeable unless you hit the Scribunto's cap of 250 local variables (I once hit this cap in a wikia project when I was still learning the basic of Lua/Scribunto). -- Sameboat - 同舟 (talk · contri.) 11:28, 30 July 2016 (UTC)
I don't think splitting that module would help—Module:Convert is 2.5 times larger, not counting the fact that it loads two large and complex data modules. Well over 1000 {{convert}} templates can be expanded in under the 10-second limit. Splitting would only ever help if there was a lot of fixed data (like in Module:Convert/data), or if most invokes of a module only need, say, 40% of the code in the module, and the other 60% is required only for a small number of cases that arise infrequently. Is there a performance problem? Johnuniq (talk) 02:23, 31 July 2016 (UTC)
@Johnuniq: Not yet and I do not expect it would. -- Sameboat - 同舟 (talk · contri.) 00:27, 1 August 2016 (UTC)