User talk:MER-C/Sandbox
From Wikipedia, the free encyclopedia
Directory | |
---|---|
User space: Home | Talk (archives) | Sandboxes: General 1 · General 2 · Article | Spam (burnination) | |
Software: Spamsearch (source) | Wiki.java | Website resolver | Test account | |
AFDs | Warning templates | Report a vandal | Recent changes | Deletion log | Block log | Short pages | Featured picture candidates (guide) |
This is my sandbox. If you are an anonymous user, please go to Wikipedia:Sandbox. If you are a registered user, please create or use your own in your user space. Alternatively, you can go to the Test Wikipedia instead.
[edit] Your user page
A {{mfd}} tag has been placed on your user page, requesting that it be deleted from Wikipedia. All Wikipedians can join the debate at Miscellany for deletion, where pages asserted to be inappropriate to Wikipedia are discussed. You are encouraged to submit your opinion, and remember that Miscellany for Deletion debates are not a vote. ~~ ~~
[edit] regular expressions
- spam catcher: .*?\/\*\s[Ee]xternal\s[Ll]inks.*?
- section names: .*?\/\*\ssection title.*?
[edit] code bits
// nukes some unlicensed images String[] noDescription = wiki.getCategoryMembers("Images lacking a description"); for (int i = 0; i < noDescription.length; i++) { if (wiki.getCategories(noDescription[i]) == 1) // not implemented yet, what this does is gets the categories a page is in { LogEntry[] history = wiki.getUploadHistory(noDescription[i]); User uploader = history[history.length - 1].getUser(); wiki.prepend(noDescription[i], "{{subst:nld}}"); // notify user } }