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 Wikipedia:Bots/Noticeboard. The result of the discussion was Approved.
Operator: Philroc (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
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): Wikipedia:Bot requests#Bot action to convert Template:C-SPAN from strings to numeric values for identifier fix
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
editComment: The C-SPAN template was recently modified to support this string to numeric ID transition in coordination with Wikidata's C-SPAN person ID (P2190) 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)[reply]
- Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Primefac (talk) 07:49, 18 March 2022 (UTC)[reply]
- @Primefac: Trial complete. 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)[reply]
- Comment: 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)[reply]
- Approved. Primefac (talk) 12:45, 27 March 2022 (UTC)[reply]
- Comment: 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)[reply]
- @Primefac: Trial complete. 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)[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 Wikipedia:Bots/Noticeboard.