Wikipedia:Bots/Requests for approval/NihlusBOT 4
- 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: Nihlus (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 03:10, Thursday, October 5, 2017 (UTC)
Automatic, Supervised, or Manual: automatic
Programming language(s): AWB
Source code available: AWB
Function overview: Remove deprecated parameters from {{Infobox musical artist}}
Links to relevant discussions (where appropriate): Template talk:Infobox musical artist#Removal of "Notable_instruments" field & below
Edit period(s): One time run
Estimated number of pages affected: ~30,000
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): Yes
Function details: Remove deprecated parameters |notable_instruments=
, |alma_mater=
, |children=
, |country=
, |education=
, |ethnicity=
, |height=
, |influences=
, |nationality=
, |parents=
, |religion=
, |residence=
, and |spouse=
from {{infobox musical artist}}, which had been used outside its intended purpose. Removing anything that matches \|[\s]*notable_instruments[\s]*=[\s]*(?:(?:\{\{[^}]*?}})|(?:\[\[.*?]])|[^\|}])*
. This will only be run on pages that transclude the above template.
Discussion
editNihlus: Do you have any interest in expanding the scope of this bot task to remove other unsupported parameters? Common ones listed in the monthly report are |Alma_mater=
, |Children=
, |Country=
, |Education=
, |Ethnicity=
, |Height=
, |Influences=
, |Nationality=
, |Parents=
, |Religion=
, |Residence=
, |Spouse=
(case-insensitive). – Jonesey95 (talk) 11:25, 5 October 2017 (UTC)[reply]
- @Jonesey95: Sure can. It might take a tiny bit longer since it's going to run multiple regex searches, but I'm in no hurry. Will this fix the 6,907 listed in the category? Might as well try to get as many as I can while I go through 96,000 pages. Nihlus 11:35, 5 October 2017 (UTC)[reply]
- Looking into it a litter deeper, a lot of those seem to be parameters without =. That might be better handled elsewhere for legitimate parameters. I can still do the ones above, though. Nihlus 11:58, 5 October 2017 (UTC)[reply]
- Doing the above will fix many hundreds of the pages in the unknown parameter error category, but a bot should be careful in trying to fix errors where the = is missing. The bot is probably safe to fix (untested regex follows:)
\|%s*thumb%s*\| -> \|
as in this edit. It looks like there are hundreds of those stray "thumb"s. – Jonesey95 (talk) 12:09, 5 October 2017 (UTC)[reply]- Yeah, I don't trust my bot to fix the = issues. The thumbs issue could be fixed with
\|[\s]*thumb[\s]*\n
, which should avoid any valid placement within File code, but I should probably save that for a more dedicated task (there would be issues with imagemaps and whatnot). Nihlus 12:23, 5 October 2017 (UTC)[reply]
- Yeah, I don't trust my bot to fix the = issues. The thumbs issue could be fixed with
- Doing the above will fix many hundreds of the pages in the unknown parameter error category, but a bot should be careful in trying to fix errors where the = is missing. The bot is probably safe to fix (untested regex follows:)
- Looking into it a litter deeper, a lot of those seem to be parameters without =. That might be better handled elsewhere for legitimate parameters. I can still do the ones above, though. Nihlus 11:58, 5 October 2017 (UTC)[reply]
- Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete.—CYBERPOWER (Chat) 15:29, 5 October 2017 (UTC)[reply]
- Trial complete. Cyberpower678, see here. Nihlus 19:33, 7 October 2017 (UTC)[reply]
- Approved.—CYBERPOWER (Chat) 13:41, 9 October 2017 (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.