Wikipedia:Bots/Requests for approval/ClickBot
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)
- 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)