Wikipedia:Bots/Requests for approval/SporkBot 8


 * 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

SporkBot 8
Operator:

Time filed: 14:37, Tuesday, July 14, 2020 (UTC)

Function overview: Update template parameters in Template:Infobox mountain per a discussion on the talk page as requested by User:Rehman

Automatic, Supervised, or Manual: Semi-supervised (completely supervised at the start, then automatic with a log file that will be reviewed after the run).

Programming language(s): Perl using the MediaWiki::Bot library

Source code available: Standard Perl regular expressions

Links to relevant discussions (where appropriate):

Edit period(s): One time with possible second run if there are subsequent reverts or oversights.

Estimated number of pages affected: 25,000 (per whatlinkshere for Infobox mountain)

Namespace(s): Mainspace

Exclusion compliant (Yes/No): Yes

Function details: See the tables in copied here for convenience

Discussion
Overall, this bot reflects the consensus of editors at Template talk:Infobox mountain. However, there are a few details that need to be fixed before we unleash the bot on 25,000+ articles. I've spent the last several weeks cleaning up hundreds of Mountain infoboxes, so I've gotten familiar with current usage patterns. I think we need to tweak what the bot will do. Here are my recommendations: Thanks for building the bot, Plastikspork! — hike395 (talk) 07:09, 17 July 2020 (UTC)
 * 1) border is used for much more than ranges. There are many mountain ranges in the Western United States where border is used for valleys, deserts, or even roads. Thus, I would suggest moving the content to borders, not border_ranges.
 * 2) For region, the current infobox uses the label "Regions" if state is defined, and uses "States/Provinces" if state is not defined. Some mountain ranges in Europe rely on this. So, I would change the logic --- if region1 is defined and state is define, then set Regions. If region1 is defined and state is undefined, set States/Provinces
 * 3) language should not be moved to native_name_lang, because they are not duplicates. language is for the full name of the language (e.g., "Spanish") while native_name_lang is for the ISO-639-3 code of the language (e.g., "es").
 * Fine with me. Let me know if there are any other changes. Thanks! Plastikspork ―Œ (talk)  13:41, 17 July 2020 (UTC)
 * Please hold this for now. I didn't expect this last minute change. I'll bring this up at the template talkpage (so as to not clutter BRFA) and update here in due course. Thank you. Reh  man  14:20, 17 July 2020 (UTC)
 * After some discussions and minor tweaks, we're good to go! Reh  man  04:06, 22 July 2020 (UTC)
 * Sorry, found another minor issue --- we need to copy over parameters like state_type, district_type, etc. to the new label parameters. I've fixed the specification, above. this bot has a lot of edge cases that are rather tricky. Would you like me to code review your Perl? — hike395 (talk) 07:06, 22 July 2020 (UTC)
 * Thanks for making the table a clearer. Based on my previous experience with the bot, such cases (i.e. conflicts in parameter values) would be listed separately for manual action (and not actioned by the bot); making the code less complex. Hence I did not specify. But anyway, the clearer it is, the better. Cheers, Reh  man  08:40, 22 July 2020 (UTC)

Trusted operator with solid plan. Primefac (talk) 22:19, 2 August 2020 (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.