The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at Wikipedia:Bots/Noticeboard. The result of the discussion was  Approved.

New to bots on Wikipedia? Read these primers!

Operator: CX Zoom (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

Time filed: 23:32, Thursday, July 6, 2023 (UTC)

Function overview: Fix errors in code due to substitution of a template

Automatic, Supervised, or Manual: Manual

Programming language(s): AWB

Source code available: AWB

Links to relevant discussions (where appropriate): Wikipedia:Village pump (technical)/Archive 206#Categorisation error due to error in user warning template & Wikipedia:Bot requests#Fixing of categorisation error caused by error in uw template

Edit period(s): Until all errors are fixed.

Estimated number of pages affected: approx. 1520

Namespace(s): User talk

Exclusion compliant (Yes/No): No

Function details: Due to an error at Template:Uw-username, the following code appeared
((#ifeq:((NAMESPACENUMBER))|3|((#ifeq:((ROOTPAGENAME))|((ROOTPAGENAME:))[[Category:Pages which use a template in place of a magic word|S((PAGENAME))]]|[[Category:Wikipedia usernames with possible policy issues|((PAGENAME))]]))))
The actual markup that should have appeared is:
((#ifeq:((NAMESPACENUMBER))|3|((#ifeq:((ROOTPAGENAME))|<username at the time of subst>|[[Category:Wikipedia usernames with possible policy issues|((PAGENAME))]]))))

There was another issue with the tempalate with this edit, where due to extra safesubst, the #ifeq check between current username & username at the time of subst was removed and Category:Wikipedia usernames with possible policy issues permanently became a part of that page.

I wish to run AWB to fix these errors, and figured out I might ask for Bot flag as per old discussions (on an unrelated matter) with Primefac & Xaosflux respectively, due to the number of pages expected to be affected. Since these changes concerns about administrative categories, I have concluded that it must not be exclusion compliant, although I can change it if asked to. Thanks! CX Zoom[he/him] (let's talk • {CX}) 23:32, 6 July 2023 (UTC)[reply]

Discussion[edit]

Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Primefac (talk) 08:18, 7 July 2023 (UTC)[reply]

Trial complete. Done 50 edits. See Special:Contributions/CX Zoom AWB. Examples: 1, 2, 3. Although I hit a little too many edit filters ([1]), at one point disallowing me from making any edits, which was overcome when Ingenuity noticed the issue and granted me Confirmed rights. CX Zoom[he/him] (let's talk • {CX}) 18:33, 7 July 2023 (UTC)[reply]
This may be a bit late, but if the bot is editing talk pages, it should probably have the bot tag beforehand. — Qwerfjkltalk 10:52, 9 July 2023 (UTC)[reply]
((BAG assistance needed)): Since no BAG response in a week. Thanks! CX Zoom[he/him] (let's talk • {CX}) 06:19, 15 July 2023 (UTC)[reply]
 Approved. Primefac (talk) 12:39, 18 July 2023 (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 Wikipedia:Bots/Noticeboard.