Wikipedia:Bots/Requests for approval/PrimeBOT 26
- 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: Primefac (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
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 {{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 {{infobox school}} usage. Given that there is a rather large merge that will eventually happen with {{infobox UK school}} this seems like an opportune time to clean up the category. This task will be twofold:
- Clean up deprecated parameters:
- "approx" -
(established\s*)=([\s\S]*)\|\s*approx\s*=\s*.*?\n
→$1=c. $2
- "c_approx" -
(closed\s*)=([\s\S]*)\|\s*c_approx\s*=\s*.*?\n
→$1=c. $2
(feeder_schools|main feeder schools)
→feeders
number.of.pupils
→pupils
classes offered
(case insensitive) →classes_offered
- Convert the following to lowercase:
{{{Opened}}}
,{{{Location}}}
,{{{Region}}}
,{{{Number}}}
,{{{Principal}}}
,{{{Years}}}
,{{{Students}}}
,{{{International_Students}}}
,{{{System}}}
,{{{Hours_in_Day}}}
,{{{Campuses}}}
,{{{National_ranking}}}
,{{{Graduates}}}
- Remove the following:
|motto_pl=
,|founder_pl=
,|specialist_pl=
,|assistant_principal=
,|assistant_principals=
,|assistant principal=
,|Vice Principal=
,|vice principal=
,|asst principal=
,|campus_Bound=
,|viceprincipal=
,|viceprincipal_label=
,|viceprincipal1=
,|viceprincipal2=
,|viceprincipal3=
,|viceprincipal4=
,|vision=
- "approx" -
#Unknown parameters
Remove any parameter line that is not one of the 357 listed parameters in the category check
Discussion
[edit]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. |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)[reply]
- 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)[reply]
- 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)[reply]
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)[reply]
- 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)[reply]
- 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)[reply]
- Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. ~ Rob13Talk 01:02, 25 February 2018 (UTC)[reply]
- Trial complete.. I do apologize, spaced out for a second and didn't realize I'd already hit 50, so I ended up with 52 edits. Primefac (talk) 18:15, 25 February 2018 (UTC)[reply]
@BU Rob13: Is this ready for approval? It's been 7 days too Steven (Editor) (talk) 13:56, 4 March 2018 (UTC) {{BAGAssistanceNeeded}} Steven (Editor) (talk) 19:06, 5 March 2018 (UTC[reply]
- Approved. Task approved. — xaosflux Talk 15:50, 30 March 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.