Wikipedia:Bots/Requests for approval/PrimeBOT 18
[[User:PrimeBOT|PrimeBOT 18]]
{{Newbot|PrimeBOT|18}}
Operator: {{botop|Primefac}}
Time filed: 05:22, Sunday, July 16, 2017 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): AWB
Source code available: WP:AWB
Function overview: Remove deprecated parameter from {{t|infobox video game}}
Links to relevant discussions (where appropriate): Template talk:Infobox video game#Distributor
Edit period(s): one-time run
Estimated number of pages affected: Max of [https://tools.wmflabs.org/templatecount/index.php?lang=en&name=Infobox_video_game&namespace=10#bottom ~22k]
Namespace(s): All
Exclusion compliant (Yes/No): yes
Function details: Remove deprecated parameter {{para|distributor}} from {{t|infobox video game}}, which was determined to be a confusing and often unnecessary parameter to have in the infobox. Bot will find and remove
([http://rubular.com/r/bXB3qZhsKj test cases])
=Discussion=
It may be helpful to remove other previously supported parameters at the same time. It looks like the main offenders in {{cl|Pages using infobox video game with unknown parameters}} are {{para|media}}, {{para|ratings}}, {{para|requirements}}, {{para|show image}}, and {{para|version}}. – Jonesey95 (talk) 13:10, 16 July 2017 (UTC)
- I would have no issues making this amendment. In the regex above it would simply require changing
distributor
to the other parameter names. Primefac (talk) 13:20, 16 July 2017 (UTC) - :Dealing routinely with templates myself, any chance you're going to encounter a nested template? Because as it is, the regex will botch the template if it tries to remove a parameter with a template as its value.—CYBERPOWER (Chat) 16:18, 16 July 2017 (UTC)
- ::Good catch. Updated regex is above, along with new test cases list. I do also plan on only running this inside {{t|Infobox video game}} and its redirects to avoid removing valid parameters in other templates. Primefac (talk) 16:26, 16 July 2017 (UTC)
- Alright let's do a quick trial. {{BotTrial|edits=50}}—CYBERPOWER (Chat) 16:28, 16 July 2017 (UTC)
- {{BotTrialComplete}} - [https://en.wikipedia.org/w/index.php?title=Special:Contributions/PrimeBOT&offset=2017071619000&limit=51&target=PrimeBOT Edits]. Primefac (talk) 17:18, 16 July 2017 (UTC)
- {{BotApproved}} Looks good, and doesn't seem likely to have additional serious bugs.—CYBERPOWER (Chat) 17:45, 16 July 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.