Commons:Bots/Requests/Wiki-Bot 2

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

Wiki-Bot (talk · contribs)

Operator: Platonides (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)

Bot's tasks for which permission is being sought: Fixup of creator templates

Along with DragonflySixtyseven, I have been looking at the problem of the large number of creator templates which we have with wrong parameters (and the category is not complete, there are about twice as many). There are (were) many pages which should be reviewed by a human, but also found an additional list of ~1600 (so far) that are issues simple enough they could be fixed by a bot, such as [1] [2] [3]

It is thus requested permission to run a bot fixing creator templates.

Automatic or manually assisted: automatic

Edit type: manual runs

Maximum edit rate (e.g. edits per minute): 6 (pywikibot default)

Bot flag requested: (Y/N): Yes

Programming language(s): Python (for wiki editing, pywikibot library) + PHP (XML dump analysis)

Platonides (talk) 22:37, 10 September 2022 (UTC)[reply]

Discussion

Please make test run. --EugeneZelenko (talk) 14:09, 11 September 2022 (UTC)[reply]

Here you have [4]
Note: I had to give it IP block exemption in order to run it from WMES bot server bypassing this webhost-range block
Platonides (talk) 23:15, 11 September 2022 (UTC)[reply]
Looks OK for me. --EugeneZelenko (talk) 14:11, 12 September 2022 (UTC)[reply]
Looks good, no objections. Was it intentional that "Workshop" hasn't been lowercased at File:Sumarokov Aleksandr Petrovich.jpg? --Achim55 (talk) 18:40, 12 September 2022 (UTC)[reply]
Achim55: That's basically for a lack of \L in python. It is using a regex changing (workshop|circle|school|studio|manner|follower) to \2 of. In perl one could do "\L\2 of" and ensure the \2 group ends in lowercase (which would be much nicer), but python doesn't support that and alternatives are quite ugly, so I left those cases as-is. Platonides (talk) 23:54, 12 September 2022 (UTC)[reply]
I have finally implemented it for the few cases with a substantial count, Achim55: [5] [6] [7] (attributed was already handled before) Platonides (talk) 00:00, 18 September 2022 (UTC)[reply]

Approved. --Krd 08:07, 17 September 2022 (UTC)[reply]