User talk:cyberpower678
Add topic|
This user is offline, or has forgotten to update this message since starting a wikisession. (If there have been multiple edits from this user in the last 60 minutes and the most recent one wasn't to activate this template, it is safe to assume that this user forgot.) |


- Hello!! I am Cyberpower678. I am an administrator on Wikipedia. Despite that, I'm still your run of the mill user here on Wikipedia.
- I specialize in bot work and tools, but I lurk around RfPP, AfD, AIV, and AN/I, as well as RfA. If you have any questions in those areas, please feel free to ask. :-)
- For InternetArchiveBot matters specifically, please see meta:InternetArchiveBot/Problem for common issues or meta:User talk:InternetArchiveBot to leave a message
- I also serve as a mailing list moderator and account creator over at the Account Creation Center. If you have any questions regarding an account I created for you, or the process itself, feel free to email the WP:ACC team or me personally.
- At current I have helped to create accounts for 2512 different users and renamed 793 other users.
- Disputes or discussions that appear to have ended or is disputed will be archived.
All the best.—cyberpower
| No current discussions. Recent RfAs, recent RfBs: (successful, unsuccessful) |
Trouted
[edit]
Whack!
You've been whacked with a wet trout.
Don't take this too seriously. Someone just wants to let you know that you did something silly.You have been trouted for: Creating that very cool bot!
AfD regex is newline-unfriendly and other issues
[edit]I did some digging to try to figure out why User:Cyberbot I placed Custer National Forest in WP:BADAFD as being tagged with no discussion (Special:Diff/1368950844). At first I thought it might've had to do with just whitespace (Special:Diff/1368948524), but after playing around with the regex detection of the page parameter in regex101, I realized that it is both whitespace and newlines that are causing the failure.
I also found that the capture is rather unsafe, as something like {{AfDM|foo}}{{bar|page=ThisPage}} would evaluate the same as if it were {{AfDM|page=ThisPage}}, and so would {{AfDM|ignorethispage=ThisPage}}. After running several tests in regex101, I believe the following change should be much safer:
| − | /\{\{\s*((Article for | + | /\{\{\s*((Article for deletion\/dated)|(AfDM))\s*\|\s*(?:[^}]*?\|\s*)?page\s*=\s*(?P<page>[^|}]*?)\s*(?:\||\}\})/i |
This has a number of improvements:
- allows for whitespace between the template name and the first pipe
- makes it newline friendly (by allowing more whitespace and not using dot checks)
- cuts off any whitespace from either side of
$page(regex capture) - contains the capture inside of the first set of
}}that it sees after the template name - ensures that
page(template param) can only be prefixed by a pipe and whitespace (i.e. fails on theignorethispageexample)
The current expression fails on all of these points, making it quite problematic. Please ping if you end up implementing this, rejecting it, or have any questions or concerns. Thanks for your time, and all of your incredible work on bots that help keep WP running! ~ oklopfer (💬︎) 03:02, 12 August 2026 (UTC)