Jump to content

Wikipedia:Bots/Requests for approval/ClickBot

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by SQL (talk | contribs) at 04:48, 2 April 2008 (Discussion: still a need for this?). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Operator: Sceptre (talk)

Automatic or Manually Assisted: Automatic

Programming Language(s): WP:AWB

Function Summary: Fix transclusions of {{click}} which incorrectly display images due to a recent change in parsing.

Edit period(s) (e.g. Continuous, daily, one time run): One time run

Edit rate requested: Normal rate (6 per minute?)

Already has a bot flag (Y/N): N

Function Details: Due to a change in mediawiki's parsing, "123pxpx" will not parse as "123px". This is shown mostly in the template {{click}}, which is heavily transcluded and is screwing up pages. The bot will make the regex replacement: (height|width)=(\d*)px$1=$2

Discussion

How are you going to make the list of affected pages? Or you will simply try every transclusion of that template? MaxSem(Han shot first!) 16:36, 25 March 2008 (UTC)[reply]

It'd go through every transclusion. The only false positive that regex should throw up is HTML, and IIRC, "px" is superfluous in that case. Sceptre (talk) 16:38, 25 March 2008 (UTC)[reply]
Never mind, User:Melon-Bot's doing it. Oh well. Sceptre (talk) 18:12, 25 March 2008 (UTC)[reply]
User Melon-Bot is not doing it. It has been blocked for running an unauthorized task. Snowolf How can I help? 12:52, 26 March 2008 (UTC)[reply]

It will replace (height|width)=(\d*)px$1=$2 within one template, or globally? MaxSem(Han shot first!) 17:46, 26 March 2008 (UTC)[reply]

On every page {{click}} is transcluded on (either directly or indirectly), that is, Special:WhatLinksHere/Template:Click, (e.g Ayn Rand), it will perform the regex. Sceptre (talk) 18:02, 26 March 2008 (UTC)[reply]

I'm fairly sure that the template was fixed earlier, so that it will no longer require bot intervention. [1] SQLQuery me! 20:02, 26 March 2008 (UTC) A user has requested the attention of the operator. Once the operator has seen this message and replied, please deactivate this tag. Is there still a need for this bot? SQLQuery me! 04:48, 2 April 2008 (UTC)[reply]