Wikipedia:Bots/Requests for approval/ZackBot 10
- 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: Zackmann08 (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 20:36, Friday, September 28, 2018 (UTC)
Automatic, Supervised, or Manual: Automatic
Source code available: User:ZackBot/Infobox-needed
Function overview:The goal is to scan pages that are in Category:Wikipedia articles with an infobox request and remove any pages that already have an infobox.
Links to relevant discussions (where appropriate): Wikipedia:Bot_requests#Bot_to_update_'Needs_infobox'
Edit period(s): One time run for now.
Estimated number of pages affected: Very difficult to say. Per PetScan there are currently 88,074 talk pages that fall in the category. I'd guess that somewhere between 3%-8% of those have Infoboxes and thus would be affected by this script. So A guess would be somewhere around 7,000-8,000 pages? But that is a TOTAL guess. This will be greatly dependent on how many of these sub categories I will run the script against.
Namespace(s):Main
Exclusion compliant (Yes/No): yes
Function details:
The functionality is pretty straight forward:
- Take a list of pages from a PetScan search. These will be Talk pages that are marked as needing an infobox.
- Check the text of the page and search for the word infobox. My research thus far has indicated that just looking for the word infobox should be good enough as it is not a term used in any other context that I can find. However, if granted a trial run, this will be an area I will be focusing my attention on.
- If the page is found to contain the word then go back to the talk page and look for the param 'needs-infobox' and remove it from the templates.
- In the event that the needs-infobox parameter is not found, an error is raised and logged for manual inspection.
The ONLY change that this script will be making is to Talk pages, and it will be to remove text matching \|\s*needs-infobox\s*=\s*y(?:es){0,1}\s*
--Zackmann (Talk to me/What I been doing) 20:36, 28 September 2018 (UTC)[reply]
Discussion
[edit]- Could it regex for something like
[{][{][ \n\t]*[Ii]nfobox
? -- GreenC 21:34, 28 September 2018 (UTC)[reply]
- @GreenC: so technically speaking it can search for any regex. I think you are on the right track, but that has a few problems. Not all infoboxes start with
{{infobox...
. But perhaps something like/\{\{[\s\w\n]*infobox/i
. See my testcase: here --Zackmann (Talk to me/What I been doing) 21:41, 28 September 2018 (UTC)[reply]
- Great. -- GreenC 23:35, 28 September 2018 (UTC)[reply]
- @GreenC: so technically speaking it can search for any regex. I think you are on the right track, but that has a few problems. Not all infoboxes start with
I'd like to see a short trial to see how it works. Approved for trial (100 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. SQLQuery me! 03:30, 14 October 2018 (UTC)[reply]
- did the trial occur? Please provide a summary of your trial results. — xaosflux Talk 01:19, 11 November 2018 (UTC)[reply]
- Trial complete. @Xaosflux: thanks. Forgot to update this. @SQL: trial edits... --Zackmann (Talk to me/What I been doing) 01:26, 11 November 2018 (UTC)[reply]
- Approved. Task approved. — xaosflux Talk 02:01, 11 November 2018 (UTC)[reply]
- Ramp up schedule:
- 500 edits, 1 day hold
- 1000 edits, 1 day hold
- 1000 edits, 3 day hold
- open editing. — xaosflux Talk 02:03, 11 November 2018 (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.