Wikipedia:Bots/Requests for approval/Muhbot
- The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was Approved.
Operator: Muhandes (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 16:30, Thursday, February 14, 2019 (UTC)
Automatic, Supervised, or Manual: supervised
Programming language(s): AWB
Source code available: AWB
Function overview: Replace obsolete parameters used in {{Single chart}}. Pages located at Category:Singlechart usages for Germany with id parameter (0) and Category:Singlechart usages for Germany2 (0)
Links to relevant discussions (where appropriate): Template talk:Single chart#Cleanup effort, Template talk:Single chart#Parameter name
Edit period(s): Twice
Estimated number of pages affected: About 6,000
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): No
Function details: The bot will first replace
id
with songid
to avoid future confusion. This is achieved by a simple regexp search/replace of (Germany2.*)\|id= to $1|songid=. The term is sufficiently obscure and I made a quick run of 150 manual edit with no problem
For the first step it will will use AWB parameter replacement to replace |id=
with |songid=
but only when Germany2
is within the template (a subrule). This will be applied on Category:Singlechart usages for Germany with id parameter (0).
Once Category:Singlechart usages for Germany is cleaned up, the bot will be used to replace Germany2
with Germany
and make that the default mode. This will be applied on Category:Singlechart usages for Germany2 (0). If required, this can be made in a separate task request.
Discussion
[edit]- Would it not make more sense to just use AWB's parameter replacement tool to replace
|id=
with|songid=
and|Germany2=
with|Germany=
? Also, as a minor note, this task falls under the purview of User:PrimeBOT/30 if you'd rather go that way than manually supervise 6k edits. Primefac (talk) 16:39, 14 February 2019 (UTC)[reply]
- Thanks, it would make more sense to use parameter replacement. I changed the function details. For the second step this is an unnamed parameter, so a search and replace within tempalte code will do. --Muhandes (talk) 17:14, 14 February 2019 (UTC)[reply]
- @Primefac: I made a couple of hundred assisted manual edits from my own account using the same setup and it seems to work perfectly. --Muhandes (talk) 12:24, 20 February 2019 (UTC)[reply]
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Primefac (talk) 16:22, 25 February 2019 (UTC)[reply]
Trial complete. Edits here. I just realised step one would also need to be run for West Germany
as well. If approved, does this fall under the same approval? --Muhandes (talk) 20:27, 25 February 2019 (UTC)[reply]
Approved. West Germany
falls under the same approval. Please use the talk page and ping if you need the scope adjusted. Please wait for the bot user group to be applied before starting full speed. --TheSandDoctor Talk 03:30, 14 March 2019 (UTC)[reply]
- The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.