Wikipedia:Bots/Requests for approval/DeprecatedFixerBot 5
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)
- Good point Richard0612, task updated. --TheSandDoctor Talk 13:51, 16 May 2018 (UTC)
- I note that Category:Pages containing click using deprecated parameters seems to have pulled in some pages that do not have the {{click}} template. I assume it will leave those pages alone? I know because one of may sub pages is flagged - User:Ronhjones/Gallery, it might have the word "click" inside a template, but it's not (and never has) used the click template. Ronhjones (Talk) 17:49, 16 May 2018 (UTC)