This user has autopatrolled rights on Wikimedia Commons

User talk:JJMC89/Archives/2017/10

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

BSicons replacement issues

Routemap parameters

I've tried adding w:ru:Template:Маршрутная карта to w:ru:User:JJMC89 bot/config/BSiconsReplacer but I don't think it worked (the bot is yet to edit w:ru:Template:Магнитогорск — Тобол, which should have had its AKRZ icon names replaced – I'm not sure why; maybe it's because it uses |1=?). Jc86035 (talk) 14:07, 12 September 2017 (UTC)

@Jc86035: Yes, because it uses |1=. The routemap replacement only occurs in |map(n)=.[1] — JJMC89 14:15, 12 September 2017 (UTC)
Even then, only one icon was replaced in this edit, even though there are several others that should have been replaced. Is this because of the Cyrillic text or something? Jc86035 (talk) 10:20, 17 September 2017 (UTC)
@Jc86035: I don't think it is the Cyrillic text. mwparserfromhell doesn't parse |1= correctly. It is only showing \n\\CONTgq\\STR+r~~[[Однопутная система движения|↕]][[Электрификация железных дорог|нет]]~~ ~~{{rmri|L|Шаблон:Белорецк — Сибай}} на {{ст.|Сибай}}\n\\\\CONT2\\STR+c3\\~~ ~~ ~~ ~~Служебные пути ОАО «ММК»\n\\\\STRc1\\KRZ2+4u\\STRc3\n\\\\\\STR2!~STRc1\\v-STR+4!~STRc3\n\\\\\\exENDEa!~STRc1\\v-STR!~vSTR+4-\n\\\\\\ENDExa!~STRc2\\v-STR!~vSTR3-\n\\\\\\ABZg+1!~SEC1\\v-STR!~STRc4~~{{BSsplit{{!}}[[Электрификация железных дорог|нет]]{{!}}[[Переменный ток|≈]][[Электрификация железных дорог|25кВ]], which is not the complete value. — JJMC89 18:44, 17 September 2017 (UTC)
Probably {{BSsplit{{!}} being read as part of an invalid template name. This is there because without the {{!}} BSsplit used to mess with the line breaks (and still does on ruwiki) because of the table code. I replaced these on enwiki with AWB last year after updating the module and BSsplit, but I have yet to update the ruwiki module to allow for transclusion of BSsplit/BSto without {{!}}. Alternately mwparserfromhell could read {{!}} as a vertical bar but that might add too much complexity to it for a tiny use case. Jc86035 (talk) 01:42, 18 September 2017 (UTC)

Pipe magic word

Hi, the bot has not replaced all icons on w:en:Mannheim–Karlsruhe–Basel railway, w:ba:Ҡалып:Салават — Мурапталово — Тюльган or w:ca:Plantilla:Línia Tarragona-Reus-Lleida even though it should have by now (every day, the script seems to think it's finished after running for about 90 minutes for some reason). Could you check that it's working properly? Thanks, Jc86035 (talk) 14:29, 30 September 2017 (UTC)

The first one is showing no changes needed. This is likely the {{!}} issue above. The other two aren't appearing in the list of pages to be edited (using an icon needing replacement). — JJMC89 20:22, 1 October 2017 (UTC)
Of course. The cawiki one definitely has   (ABZlg), though, which should be replaced with   (ABZg+r) (and a few others). Jc86035 (talk) 08:18, 2 October 2017 (UTC)
  (ABZlg) appears to have 6803 uses globally, so Pywikibot isn't getting all of the API results for some reason. I'll have to investigate. — JJMC89 03:15, 3 October 2017 (UTC)

Edit rate

Also, you might want to consider increasing the global edit rate to about once every second or every two seconds, since the bot is now running on many more wikis than it initially was. Jc86035 (talk) 09:33, 1 October 2017 (UTC)

I don't see a need to increase the edit rate. Keeping it low is good for projects where the bot is not flagged. — JJMC89 20:22, 1 October 2017 (UTC)
Okay. Jc86035 (talk) 08:18, 2 October 2017 (UTC)
Would it be possible to run the bot starting from 02:30 UTC or earlier (since AFAIK the bot doesn't edit at all from 10:00 until 05:30 the next day), or would this also be bad for projects where the bot isn't flagged? Alternately maybe the bot could only run on the larger Wikipedias (or those where it has the flag) for a period of time and then run on all projects at a different time (I think it wouldn't be more than a few lines of code to implement it in the script's main function). Jc86035 (talk) 11:43, 2 October 2017 (UTC)
I can change the start time. I set the current start time to avoid the peak hours of 1200–0400 UTC (from w:WP:BOTPOL). — JJMC89 03:15, 3 October 2017 (UTC)
I didn't know the low edit rate was because of pywikibot. I think it's fine if you don't change the start time since there probably won't be anything bigger than the file moves I did last month, so it should gradually taper off. Jc86035 (talk) 08:06, 7 October 2017 (UTC)

Outstanding replacements

The bot hasn't edited w:da:Skabelon:Raumabanen or w:zh:模板:寧波軌道交通6號線RDT yet even though they each use multiple redirects, not sure why. I've made a null edit on each page to see what happens. Jc86035 (talk) 15:12, 23 October 2017 (UTC)

For the dawiki one, I'm guessing it might be the unbalanced table markup. For the zhwiki one, the bot doesn't see any BSicons in |map= since they are in {{RenderStations}}'s |1=. BTW, there are over 17,000 pages that the bot isn't editing. — JJMC89 15:59, 23 October 2017 (UTC) 01:43, 25 October 2017 (UTC)
I don't think the table markup should do anything. Nor should RenderStations, for that matter; w:zh:模板:寧波軌道交通5號線RDT was handled just fine. The purge worked on the dawiki template, and I did the replacements on the zhwiki template myself so the bot shouldn't need to do anything. Jc86035 (talk) 07:07, 24 October 2017 (UTC)
I have no idea why the purge would have done anything unless that page wasn't being listed in the GlobalUsage for any BSicons needing replacement. You're right about the zhwiki one, but I don't know why it wasn't making a replacement then. — JJMC89 01:43, 25 October 2017 (UTC)
If the bot isn't editing 17,000 pages (out of the about 17,000 diagrams across Wikimedia wikis?), then it's probably because there isn't anything to replace on those pages (or because of the {{!}} bug). Jc86035 (talk) 07:09, 24 October 2017 (UTC)
The last run: 17642 pages read, 16 pages written. (I can email or dump the list of pages if you want.) If there isn't anything to replace, then it shouldn't be reading the page. It could be the {{!}} issue or pages needing replacements like fr:Special:Diff/140088982. — JJMC89 01:43, 25 October 2017 (UTC)

Need Help

Thanks for undoing this user's edits. This user is blocked on Urwiki for one day, because he was using multiple accounts. (this user on urwiki). Can you please complain this user? BukhariSaeed (talk) 06:42, 10 October 2017 (UTC)

I don't know what you want me to do. I'm not an admin. — JJMC89 15:48, 23 October 2017 (UTC)