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[edit]
Comment: 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[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[reply]
- Quick question. Gen fixes, yes or no?—CYBERPOWER (Chat) 22:30, 2 February 2018 (UTC)Reply[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[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.