Wikipedia:Bots/Requests for approval/PrimeBOT 23

PrimeBOT 23

[[User:PrimeBOT|PrimeBOT 23]]

{{Newbot|PrimeBOT|23}}

Operator: {{botop|Primefac}}

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 {{t|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:

: {{!xt|image_size}} or {{!xt|imagesize}} use {{xt|image_width}}

: {{!xt|ridership}} use {{xt|1=daily_ridership}}

: {{!xt|1=notrack}} use {{xt|1=tracks}}

: {{!xt|1=ra}} use {{xt|1=availability}}

: {{!xt|1=ogauge}} use {{xt|1=old_gauge}}

: {{!xt|1=lgauge}} use {{xt|1=load_gauge}}

: {{!xt|1=el}} use {{xt|1=electrification}}

=Discussion=

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)

: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)

::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)

:::Groovy. Support, by the way. Cleanup is good. – Jonesey95 (talk) 23:26, 31 January 2018 (UTC)

  • Quick question. Gen fixes, yes or no?—CYBERPOWER (Chat) 22:30, 2 February 2018 (UTC)
  • :Nope. Primefac (talk) 15:19, 3 February 2018 (UTC)
  • {{BotTrial|50 edits}}—CYBERPOWER (Chat) 16:59, 3 February 2018 (UTC)
  • :{{BotTrialComplete}} - [https://en.wikipedia.org/w/index.php?title=Special:Contributions/PrimeBOT&offset=20180203175300&limit=51&target=PrimeBOT Edits]. Primefac (talk) 18:05, 3 February 2018 (UTC)

:{{BotApproved}} Task approved. — xaosflux Talk 02:14, 8 February 2018 (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.