Wikipedia:Bots/Requests for approval/PrimeBOT 26.2
- 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:47, Friday, April 6, 2018 (UTC)
Automatic, Supervised, or Manual: Auto
Programming language(s): AWB
Source code available: WP:AWB
Function overview: Continuation of Task 26, to remove a large number of deprecated parameters in {{Infobox school}}
Links to relevant discussions (where appropriate): Wikipedia:Bots/Requests for approval/PrimeBOT 26
Edit period(s): OTR
Estimated number of pages affected: ~4000 (3400 + 600)
Namespace(s): Article
Exclusion compliant (Yes/No): Yes
Function details: The original BRFA was held to a relatively small number of parameters because they were the ones specifically listed in the category and/or the talk page discussions. Steven (Editor) has since compiled a list of other parameters that need removal, all of which have anywhere between 10 and 200 uses. This will hopefully clean up the majority of the junk in the category so the actual improper parameters can be dealt with manually.
To remove:
|box_width=
, |bgcolor_section=
, |bgcolor_label=
, |bgcolor_value=
, |bgcolor_image=
, |bgcolor_address=
, |bgcolor_url=
, |bgcolor_motto=
, |background=
, |border=
, |custodian=
, |vision=
, |Athletic Director=
, |athletic director=
, |telephone=
, |tel=
, |phone number=
, |vice_principal=
, |vice principals=
, |viceprincipals=
, |vice-principal=
, |viceprincipal_label1=
, |viceprincipal_label2=
, |assistantprincipals=
, |asst principals=
, |asst_principal=
, |assistant_principals_label=
, |assistantprincipal_label=
, |deputy principal=
, |mission=
, |mission statement=
, |type_label=
, |magazine=
, |classification=
, |dean of students=
, |calendar=
, |iso_region=
, |owner=
, |facebook=
, |native_name_lang=
, |curriculum=
To convert to lowercase: |Name=
, |Superintendent=
, |Principal=
Discussion
[edit]- Steven (Editor), you'll notice I left out the "to change" section of your original message, because in perusing some of the hits in Category:Pages using infobox school with deprecated parameters I found pages like School of One and Prairiewood High School; the former has an improperly-named parameter (it should be
|head =Joel I. Klein
not|head_name =Joel I. Klein
) and the former uses two similar values in the "address" variants. In other words, as much as it will be a pain I think those need to be done manually. Primefac (talk) 16:47, 6 April 2018 (UTC)[reply]- Hi Primefac, thank you for doing this, really appreciate it. Ah I see, if we could leave these certain parameters "to change" out, would it be possible to do the rest which will still clean up a lot of the parameters? For example,
|former name=
to|former_name=
and|patron saint=
to|patron=
etc. Please let me know, Steven (Editor) (talk) 21:53, 6 April 2018 (UTC)[reply]- Yeah, should be fine. I nixed the whole list because a) I was in a bit of a rush, and b) the first two instances I found were of a CONTEXT sort of variety. Happy to add in any changes that aren't like the ones described above. Primefac (talk) 14:49, 9 April 2018 (UTC)[reply]
- @Primefac: You're using the exact same code and merely adding these parameters into it, right? If so, I don't see the need for a trial. ~ Rob13Talk 15:26, 9 April 2018 (UTC)[reply]
- Precisely. I would like to wait and see the list Steven's got, since it might remove the need for a third run. Primefac (talk) 15:31, 9 April 2018 (UTC)[reply]
- Hi Primefac, I have another list; a few more parameters to add to the removal and to change. I've removed teachers because this seems to be mostly school districts using Infobox school which is the wrong infobox and should be using Infobox school district. I will change these manually. I've also removed color because I came across an article which was using both color and colors, so changing it to colors won't be good and comes up with the 'more than one value' message at the top. Please check this list and let me know, thank you Steven (Editor) (talk) 18:03, 9 April 2018 (UTC)[reply]
- @Primefac: You're using the exact same code and merely adding these parameters into it, right? If so, I don't see the need for a trial. ~ Rob13Talk 15:26, 9 April 2018 (UTC)[reply]
- Yeah, should be fine. I nixed the whole list because a) I was in a bit of a rush, and b) the first two instances I found were of a CONTEXT sort of variety. Happy to add in any changes that aren't like the ones described above. Primefac (talk) 14:49, 9 April 2018 (UTC)[reply]
- Hi Primefac, thank you for doing this, really appreciate it. Ah I see, if we could leave these certain parameters "to change" out, would it be possible to do the rest which will still clean up a lot of the parameters? For example,
To remove: |manager=
, |hymn=
, |ISO_region=
, |executive director=
, |secretary=
, |literary magazine=
, |asst admin=
and |Dean of Students=
To change: (some of these changes are to bring consistency)
|homepage=
and|url=
to|website=
- this is to bring all articles to use the same parameter for the website. The infobox school documentation also only uses website rather than the other two.|imagesize=
and|image size=
to|image_size=
|image_name=
to|image=
|image caption=
to|caption=
|mascot image=
to|mascot_image=
|avg_class_size=
to|average_class_size=
|schoolnumber=
and|number=
to|school_number=
|schoolcolors=
and|school colors=
to|school_colors=
|head of school=
and|Head of School=
to|head_of_school=
|bar pass rate=
to|bar_pass_rate=
|school code=
to|school_code=
|roll=
to|school_roll=
|campustype=
and|campus type=
to|campus_type=
|campus size=
to|campus_size=
|deans=
to|dean=
|teamname=
to|team_name=
|fightsong=
and|fight song=
to|fight_song=
|testname=
to|test_name=
|testaverage=
to|test_average=
|nicknames=
to|nickname=
|former name=
to|former_name=
|age range=
to|age_range=
|schedtyp=
to|schedule_type=
|schooldistrict=
,|school district=
and|schoolmdistrict=
to|district=
|school type=
and|school_type=
to|schooltype=
|mottoeng=
to|motto_translation=
(unknown parameter being used for English translations of the motto)|principals=
to|principal=
|school song=
to|song=
|annual tuition=
to|annual_tuition=
|publications=
to|publication=
|patron saint=
to|patron=
|grade=
to|grades=
|map_type=
to|pushpin_map=
|map_caption=
to|pushpin_map_caption=
|feeders=
and|main feeder schools=
to|feeder_schools=
|medium of language=
,|medium=
,|mediums=
and|Medium=
to|medium_of_language=
|athletics conference=
,|athletic_conference=
and|conference=
to|athletics_conference=
|languages=
to|language=
|num_employ=
to|employees=
- That list mostly looks like proper one-or-the-other lists, so if the BAGs are good with it I'm good with it. Primefac (talk) 19:19, 9 April 2018 (UTC)[reply]
- Thanks Primefac Steven (Editor) (talk) 19:49, 9 April 2018 (UTC)[reply]
- That list mostly looks like proper one-or-the-other lists, so if the BAGs are good with it I'm good with it. Primefac (talk) 19:19, 9 April 2018 (UTC)[reply]
- Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. This has gotten big enough that it's worth running a trial. ~ Rob13Talk 11:58, 10 April 2018 (UTC)[reply]
- Hi Primefac, I'm glad this bot has been approved for trial, whenever you are ready. Is there a way that articles using Infobox School can be changed to Infobox school with the lowercase 's'? I know this might not be much of a problem, but there's almost 6,000 transclusions using Infobox School as compared to over 30,000 using Infobox school. Thought it would be better to bring things together in one - could this task be done by a bot, possibly added to this or another bot, or maybe this isn't worth doing? Please let me know, thank you Steven (Editor) (talk) 20:38, 12 April 2018 (UTC)[reply]
- Template redirects exist for a reason, and there's not a lot of reason to change the "called" template. While I can update it, it is not a trivial matter to do so only when the other changes take place, and the bot should not be changing it on pages where that's the only change. Primefac (talk) 22:20, 12 April 2018 (UTC)[reply]
- Ah I see, thank you Steven (Editor) (talk) 22:32, 12 April 2018 (UTC)[reply]
- Template redirects exist for a reason, and there's not a lot of reason to change the "called" template. While I can update it, it is not a trivial matter to do so only when the other changes take place, and the bot should not be changing it on pages where that's the only change. Primefac (talk) 22:20, 12 April 2018 (UTC)[reply]
- Hi Primefac, I'm glad this bot has been approved for trial, whenever you are ready. Is there a way that articles using Infobox School can be changed to Infobox school with the lowercase 's'? I know this might not be much of a problem, but there's almost 6,000 transclusions using Infobox School as compared to over 30,000 using Infobox school. Thought it would be better to bring things together in one - could this task be done by a bot, possibly added to this or another bot, or maybe this isn't worth doing? Please let me know, thank you Steven (Editor) (talk) 20:38, 12 April 2018 (UTC)[reply]
- Trial complete.. Edits. Two things to note, I removed the url/website/homepage tracking because there were too many instances where 2+ of them had content, and I did find and fix the typo that showed up here. Primefac (talk) 23:22, 12 April 2018 (UTC)[reply]
- Hi Primefac, I was just looking at the edits, by any chance did you include all of the parameters that need to be removed - the ones mentioned at the start and the extra ones? I noticed it didn't remove
|assistantprincipal_label=
on Gardendale High School for example. Please let me know, thank you Steven (Editor) (talk) 23:43, 12 April 2018 (UTC)[reply]- Yes, I missed removing a space when converting your list to a gigantic (either|or) code. It's fixed now and will catch them in the future. Primefac (talk) 23:53, 12 April 2018 (UTC)[reply]
- Thank you, really appreciate you doing this. You know the typo you found, would it be possible to include changing
|school type=
and|school_type=
to|schooltype=
(did mention in the list above by the way, you may have missed it haha)? Steven (Editor) (talk) 00:01, 13 April 2018 (UTC)[reply]- That was the fix I mentioned. Primefac (talk) 00:02, 13 April 2018 (UTC)[reply]
- No I mean it's just that you did that one manually, will the bot change these for the other articles using these parameters? Steven (Editor) (talk) 00:08, 13 April 2018 (UTC)[reply]
- Sorry Primefac, I had another look, I see what you mean, ignore above haha Steven (Editor) (talk) 00:11, 13 April 2018 (UTC)[reply]
- That was the fix I mentioned. Primefac (talk) 00:02, 13 April 2018 (UTC)[reply]
- Thank you, really appreciate you doing this. You know the typo you found, would it be possible to include changing
- Yes, I missed removing a space when converting your list to a gigantic (either|or) code. It's fixed now and will catch them in the future. Primefac (talk) 23:53, 12 April 2018 (UTC)[reply]
- Hi Primefac, I was just looking at the edits, by any chance did you include all of the parameters that need to be removed - the ones mentioned at the start and the extra ones? I noticed it didn't remove
- Approved. If there are additional parameters you need to add/changes you want to make, ping me on talk. If it's just a couple, I'll probably just give the go ahead without a need for a third BRFA. ~ Rob13Talk 13:34, 13 April 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.