Wikipedia:Bots/Requests for approval/PrimeBOT 23
- 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: 20:11, Tuesday, January 30, 2018 (UTC)
Automatic, Supervised, or Manual: automatic
Programming language(s): AWB
Source code available: WP:AWB
Function overview: Replace deprecated parameters in {{Infobox rail line}}
Links to relevant discussions (where appropriate): The existence of Category:Pages using infobox rail line with deprecated parameters plus a general inclination towards removal of these parameters at Template talk:Infobox rail line.
Edit period(s): one time run
Estimated number of pages affected: 1200
Namespace(s): all
Exclusion compliant (Yes/No): yes
Function details: A relatively straight-forward find/replace inside of the template, with the following params changes:
- image_size or imagesize use image_width
- ridership use daily_ridership
- notrack use tracks
- ra use availability
- ogauge use old_gauge
- lgauge use load_gauge
- el use electrification
Discussion
editComment: Have you considered whether you will need to check for the existence of the corresponding non-deprecated parameter before doing the replacement? You wouldn't want to end up with electrification=yes | electrification = no
. If I were running this bot, I would either do a manual run with AWB and check each one, or skip instances where the supported parameter is already present. – Jonesey95 (talk) 21:20, 30 January 2018 (UTC)[reply]
- I have, and so far (I have one more check to run) I have yet to find any that fit that bill. Primefac (talk) 17:14, 31 January 2018 (UTC)[reply]
- UPDATE: There are no pages that transclude this template that use both a deprecated parameter and its replacement. Primefac (talk) 19:16, 31 January 2018 (UTC)[reply]
- Groovy. Support, by the way. Cleanup is good. – Jonesey95 (talk) 23:26, 31 January 2018 (UTC)[reply]
- UPDATE: There are no pages that transclude this template that use both a deprecated parameter and its replacement. Primefac (talk) 19:16, 31 January 2018 (UTC)[reply]
- Quick question. Gen fixes, yes or no?—CYBERPOWER (Chat) 22:30, 2 February 2018 (UTC)[reply]
- Nope. Primefac (talk) 15:19, 3 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.—CYBERPOWER (Chat) 16:59, 3 February 2018 (UTC)[reply]
- Trial complete. - Edits. Primefac (talk) 18:05, 3 February 2018 (UTC)[reply]
- Approved. Task approved. — xaosflux Talk 02:14, 8 February 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.