Wikipedia:Bots/Requests for approval/NihlusBOT 7


 * 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

NihlusBOT 7
Operator:

Time filed: 22:42, Friday, October 27, 2017 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): AWB

Source code available: AWB

Function overview: Remove useless size/thumb/caption parameters from infobox/template image or file housing parameters, i.e. 300px, which are forms of Unknown parameters

Links to relevant discussions (where appropriate): Bot requests/Archive 75

Edit period(s): Once a month

Estimated number of pages affected: 4,405

Exclusion compliant (Yes/No): Yes

Already has a bot flag (Yes/No): Yes

Function details: It will be finding  and replacing it with. See examples here.

Discussion
Comment: Have you considered removing "|thumb" as well? It is pretty common. – Jonesey95 (talk) 23:15, 27 October 2017 (UTC)
 * Right when I finished spending some time updating it further. :) Right now it will catch "|300px|thumb" but not "|thumb" by itself. I'll have to either expand that regex or add a second one. Nihlus  23:19, 27 October 2017 (UTC)
 * Well, that was relatively easy. It will catch these now. See the updated examples. Nihlus  23:22, 27 October 2017 (UTC)


 * Sorry but how are these invalid parameters. When I insert an image, I used 400px|thumb.  See tests on the right hand side. — Preceding unsigned comment added by Cyberpower678 (talk • contribs)
 * Please sign your posts with four tildes (~). These parameters are invalid in infoboxes when there are no square brackets around them. See this edit for an example that removes unsupported unnamed parameters in an infobox. – Jonesey95 (talk) 02:02, 28 October 2017 (UTC)
 * Images in most infoboxes are supported by Module:InfoboxImage with . Additional information that isn't assigned to one of those parameters will have no impact on the image displayed and will actually put it in the category mentioned above as having an invalid parameter (it reads them as parameter 1 or 2).  Nihlus  02:16, 28 October 2017 (UTC)
 * Oh I misread the function details. I thought we are talking about images not infoboxes.—  CYBER POWER  ( Trick or Treat) 18:14, 28 October 2017 (UTC)


 * — CYBER POWER  ( Trick or Treat) 18:14, 28 October 2017 (UTC)
 * See here. Only issue with with templates that inexplicably had  within the template. The code has been fixed and the examples have been updated to catch these cases. I have also fixed the ones that were resolved fully.  Nihlus  18:25, 30 October 2017 (UTC)

I forgot to sign the last one so the notification didn't go through. Nihlus 18:31, 3 November 2017 (UTC)

Anyone? Nihlus 19:56, 5 November 2017 (UTC)
 * — CYBERPOWER  ( Chat ) 23:04, 5 November 2017 (UTC)
 * 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.