Wikipedia:Bots/Requests for approval/PrimeBOT 26

PrimeBOT 26

[[User:PrimeBOT|PrimeBOT 26]]

{{Newbot|PrimeBOT|26}}

Operator: {{botop|Primefac}}

Time filed: 16:05, Tuesday, February 20, 2018 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): AWB

Source code available: WP:AWB

Function overview: Remove some deprecated parameters in {{t|infobox school}}

Links to relevant discussions (where appropriate): Template talk, my talk, and this TFD (which I'll explain below)

Edit period(s): one time run

Estimated number of pages affected: ~7200 (~6500 plus ~660)

Namespace(s): Article, maybe some User sandboxes and Drafts

Exclusion compliant (Yes/No): yes

Function details: I got a request on my talk page to remove the deprecated/invalid parameters in {{t|infobox school}} usage. Given that there is a rather large merge that will eventually happen with {{t|infobox UK school}} this seems like an opportune time to clean up the category. This task will be twofold:

  1. Clean up deprecated parameters:
  2. *"approx" - (established\s*)=([\s\S]*)\|\s*approx\s*=\s*.*?\n$1=c. $2
  3. *"c_approx" - (closed\s*)=([\s\S]*)\|\s*c_approx\s*=\s*.*?\n$1=c. $2
  4. *(feeder_schools|main feeder schools)feeders
  5. *number.of.pupilspupils
  6. *classes offered (case insensitive) → classes_offered
  7. *Convert the following to lowercase:
  8. ** {{param|Opened}}, {{param|Location}}, {{param|Region}}, {{param|Number}}, {{param|Principal}}, {{param|Years}}, {{param|Students}}, {{param|International_Students}}, {{param|System}}, {{param|Hours_in_Day}}, {{param|Campuses}}, {{param|National_ranking}}, {{param|Graduates}}
  9. *Remove the following:
  10. **{{para|motto_pl}}, {{para|founder_pl}}, {{para|specialist_pl}}, {{para|assistant_principal}}, {{para|assistant_principals}}, {{para|assistant principal}}, {{para|Vice Principal}}, {{para|vice principal}}, {{para|asst principal}}, {{para|campus_Bound}}, {{para|viceprincipal}}, {{para|viceprincipal_label}}, {{para|viceprincipal1}}, {{para|viceprincipal2}}, {{para|viceprincipal3}}, {{para|viceprincipal4}}, {{para|vision}}

#Unknown parameters

  1. *Remove any parameter line that is not one of the 357 listed parameters in the category check

=Discussion=

If there are concerns about the second part of this task (blanket unlisted removal) I'm happy to drop that. I added it mostly because I don't think that the deprecated parameter removal alone will cut down on the larger category. However, I know it will catch misspellings (e.g. {{para|etsablished}}) as well as deprecated params. I'm also happy to do only #1 and hold off of #2 unless the total number is still >1000. Primefac (talk) 16:05, 20 February 2018 (UTC)

:I would recommend removing only the "common" unsupported parameters with a bot, if you can figure out what they are. I have found that unsupported parameters in infoboxes and other templates often tend to be misspellings, which a bot should not remove, or typos of some sort, which require human attention. Would you be willing to run that second task in a supervised/manual mode? – Jonesey95 (talk) 18:48, 20 February 2018 (UTC)

::Probably, yeah. It really does sort of depend on how many pages get dealt with via task 1. I don't think I've ever seen a "bad param" cat have more than a few hundred pages, so if it ends up with <1000 values after that first run I'd be happy. Primefac (talk) 18:50, 20 February 2018 (UTC)

General comment: It would be really helpful if those parameters can be removed as well as the clean-up and convert to lowercase. I have no experience in this area and greatly appreciate Primefac for doing this. I mentioned the unsupported parameters being a mess. However, it is also because of the merge which I had proposed and has successfully resulted in merge. I'm also happy to sort out the misspellings manually. Steven (Editor) (talk) 22:31, 20 February 2018 (UTC)

  • For a variety of reasons, I'm not comfortable with wholesale removal of unsupported parameters. Is it feasible to generate a list of unsupported parameters currently in articles with the number of times they appear? I could see approving the removal of the common ones which aren't just misspellings. ~ Rob13Talk 07:04, 24 February 2018 (UTC)
  • I have removed the "second part" and will only be removing the specifically-listed deprecated parameters. From a check of the TemplateData numbers, those parameters are used in the majority of the flagged pages. Primefac (talk) 22:36, 24 February 2018 (UTC)
  • {{BotTrial|edits=50}} ~ Rob13Talk 01:02, 25 February 2018 (UTC)
  • :{{BotTrialComplete}}. I do apologize, spaced out for a second and didn't realize I'd already hit 50, so I ended up with [https://en.wikipedia.org/w/index.php?title=Special:Contributions/PrimeBOT&offset=201802251815&limit=53&target=PrimeBOT 52 edits]. Primefac (talk) 18:15, 25 February 2018 (UTC)

{{Reply to|BU Rob13}} Is this ready for approval? It's been 7 days too Steven (Editor) (talk) 13:56, 4 March 2018 (UTC)

{{t1|BAGAssistanceNeeded}} Steven (Editor) (talk) 19:06, 5 March 2018 (UTC

:{{BotApproved}} Task approved. — xaosflux Talk 15:50, 30 March 2018 (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.