Wikipedia:Bots/Requests for approval/Roccerbot 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 Bots/Noticeboard. The result of the discussion was

Roccerbot 2
Operator:

Time filed: 02:04, Friday, March 18, 2022 (UTC)

Automatic, Supervised, or Manual: Automatic

Programming language(s): Python

Source code available: Here

Function overview: Replace string values in C-SPAN transclusions with numerical IDs to prevent link rot.

Links to relevant discussions (where appropriate): Bot requests

Edit period(s): One-time run

Estimated number of pages affected: 10,985

Exclusion compliant (Yes/No): Yes

Already has a bot flag (Yes/No): No

Function details: This bot will iterate through the articles in Category:Pages using non-numeric C-SPAN identifiers, all of which provide an outdated string value rather than a numerical ID as the first and sole parameter for C-SPAN. If the link generated by the template on a certain article is still valid, the bot will assign the ID of whatever page it redirects to as the template's new first parameter. If the opposite is true, the parameter will be removed entirely pending a manual review by myself.

Discussion
The C-SPAN template was recently modified to support this string to numeric ID transition in coordination with Wikidata's format change. The template has a fallback to Wikidata when the parameter is empty, and if no Wikidata value is present the Template automatically adds orphan template uses to the maintenance category Category:C-SPAN template failing to display for collaborative review and cleanup. Wolfgang8741 says: If not you, then who? (talk) 03:10, 18 March 2022 (UTC)
 * Primefac (talk) 07:49, 18 March 2022 (UTC)
 * Please see the bot's contributions. I apologize if the bot went beyond 50 edits; I honestly have no idea what caused that to happen.  Philroc  (talk) 17:20, 18 March 2022 (UTC)
 * I reviewed all changes, and see no errors. There are 4 string IDs that were not found and had no Wikidata fallback correctly being placed in the maintenance category 1, 2, 3, 4, the remainder were replaced with the numeric ID. An example of removal of string with existing Wikidata property for fallback is Steve Adubato Jr. Wolfgang8741 says: If not you, then who? (talk) 14:39, 19 March 2022 (UTC)
 * Primefac (talk) 12:45, 27 March 2022 (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 Bots/Noticeboard.