Jump to content

Wikipedia:Bots/Requests for approval/DeprecatedFixerBot 5

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Firefly (talk | contribs) at 07:57, 16 May 2018 (DeprecatedFixerBot 5: r). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Operator: TheSandDoctor (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

Time filed: 05:15, Wednesday, May 16, 2018 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): Python

Source code available: https://github.com/TheSandDoctor/Click-deprecated-param-fixer/tree/master

Function overview: Goes through Category:Pages containing click using deprecated parameters removing |width=, |height=, and |desc= from {{click}} and its redirect/alias, {{click-fixed}} (where present).

Links to relevant discussions (where appropriate): Category:Pages containing click using deprecated parameters, Template:Click

Edit period(s): Routine runs until category is cleared, possible maintenance runs in future

Estimated number of pages affected: 6,600 (approx)

Exclusion compliant (Yes/No): Yes

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

Function details: If the click (or click-fixed) template are found on the page, the bot would assess the template's parameters looking for |width=, |height=, and |desc=. If they are found, the parameters are removed and left vacant as they are deprecated and not replaced with anything. It would then move on to the next page in the category. The same applies for if they were not found (ie in a transcluded template; it would just move on). I anticipate that some pages will be left behind in the category that will need to be dealt with by hand, but a bot could help reduce that number and make those cases more obvious (so they could be identified and addressed).

Discussion

Given that the {{click}} template itself is deprecated, could/should it be removed altogether? Richard0612 07:57, 16 May 2018 (UTC)[reply]