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 TheSandDoctor (talk | contribs) at 13:53, 16 May 2018 (ce/dummy edit: autocorrect/fill is always out to get me. Summary was supposed to be just "update"). 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 {{click}}'s transclusions, converting {{click}} to the <nowiki>File:Title.extension</nowwiki> (using click's |image= and |link= parameters (respectively) to popular the fields.

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: 12,300 (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 fetch the values stored in the |image= and |link= parameters and store them internally. It would then replace that instance of the click/click-fixed template with the newer file format. If they were not found (ie in a transcluded template), then the bot would simply move on. I anticipate that some pages may 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). Some pages may also be added to Category:Pages using deprecated image syntax if the click template happens to be within an infobox. I do not anticipate that the category would be flooded with new pages, however.

Discussion

Given that the {{click}} template itself is deprecated, could/should it be removed altogether where found? Richard0612 07:57, 16 May 2018 (UTC)[reply]
Good point Richard0612, task updated. --TheSandDoctor Talk 13:51, 16 May 2018 (UTC)[reply]