User talk:Anomie

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Crystal Clear app ark.png This user's talk page has archives:

2007 2008 2009 2010 2011 2012


Project tagging

I need all the new articles in categories (but not subcategories) listed at WP:CHIBOTCATS to be tagged with {{WikiProject Chicago}}.--TonyTheTiger (T / C / WP:FOUR / WP:CHICAGO / WP:WAWARD) 01:50, 18 January 2014 (UTC)

It looks like that list needs some cleanup. Also, define "new articles" (is that just "any article not already tagged"?), and specify whether you want assessments copied from any other projects' banners. Anomie 01:46, 19 January 2014 (UTC)
What do you mean by cleanup? Yes new articles means untagged articles in these categories (but not subcategories)? Yes auto-assess when possible? Also is it possible to check and make sure that no article has FA, GA or FL in other tags and not ours?--TonyTheTiger (T / C / WP:FOUR / WP:CHICAGO / WP:WAWARD) 14:50, 20 January 2014 (UTC)
Hey, I think we both forgot about this conversation. Let's get back to it.--TonyTheTiger (T / C / WP:FOUR / WP:CHICAGO / WP:WAWARD) 17:22, 29 January 2014 (UTC)
If I don't here from you by the end of the weekend, I will seek another person to perform this task.--TonyTheTiger (T / C / WP:FOUR / WP:CHICAGO / WP:WAWARD) 23:47, 5 February 2014 (UTC)
That might be best, I've been busy lately (since about 24 hours after my first reply). But what I meant by "cleanup" was I saw a number of redlinks on the list when I looked at it originally. Anomie 01:14, 6 February 2014 (UTC)

smile :)

Smiley.png smile :)
Peace33756 (talk) 00:48, 28 January 2014 (UTC)


For your information: It could be that your commit broke Huggle's sensitive XML parsing attempts. ;-) See my github pull request for more information. Greetings --se4598 (talk) 21:49, 8 February 2014 (UTC)

... Ugh. You really shouldn't be parsing XML with regexes like that. Anomie 23:04, 8 February 2014 (UTC)
Just wondering, are compiled regexes like that particularly fast in VB? I think Huggle 2 needs all the help it can get to keep up on slower computers.  —SMALLJIM  15:03, 12 February 2014 (UTC)

mw.message methods

Why did you OK the removal of the mw.message methods? There were all sorts of cool uses for these - figuring out the size of a file thumbnail image so you could build HTML around it, getting Wikidata pages, and deliberately avoiding page reparsing, for example. There were more ideas I meant to try out with it... [1]

Honestly, I can't shake the feeling that trying to figure out a way to do anything useful at all with Wikidata is some kind of crime, and this is the punishment for trying. Wnt (talk) 19:37, 11 February 2014 (UTC)

(talk page stalker) The "cool uses" of them you mention were exactly why they were removed. They had all sorts of unintended side effects, such as allowing unlimited expensive parser function calls. Jackmcbarn (talk) 20:35, 11 February 2014 (UTC)
If you're talking about expensive parser function calls on the page being read, well ... you're getting the old cached version when the function is run anyway. So those calls shouldn't be counted; it's not cheating, but genuine efficiency. Wnt (talk) 20:59, 11 February 2014 (UTC)
I not only approved their removal, I suggested it in the first place. As Jackmcbarn said, these were removed because they had negative consequences—besides the unlimited expensive parser functions, they also prevented updating of the links tables (so Special:WhatLinksHere would be broken) and various other issues. If you want to access Wikidata, ask the relevant people if you can help get bug 47930 solved so you can do it correctly rather than with hacks. Anomie 00:49, 12 February 2014 (UTC)
Well, it's been a very long time that nothing's been done there. And since I'm not really a Wikidata user, and have written stuff like Module:MapClip, it was actually the ability to get image size by viewing the parsed page data that seemed most useful to me. The slightly imperfect solution seems better than awaiting developments. Wnt (talk) 04:09, 12 February 2014 (UTC)
In particular, it is Module:FileData that has been rendered inoperative. I hadn't pictured this module having much use except on pages that linked to the file anyway. Wnt (talk) 13:56, 12 February 2014 (UTC)
Interestingly, Flow also apparently breaks WhatLinksHere. For example, the test case Wikipedia talk:WikiProject Breakfast has not been listed as a link to Wikipedia:WikiProject Breakfast/Tabbed header. At the rate things seem to be going with it, I'm thinking you may have little disagreement should you decide to disable that... Wnt (talk) 19:21, 18 February 2014 (UTC)
Yes, sadly the Flow people decided bug 57512 wasn't important enough to block the deployment. Anomie 02:01, 19 February 2014 (UTC)

Implementing Extension:Variables with lua

I've managed to implement Extension:Variables in lua, in an admittedly hacky way. See Module:Sandbox/Jackmcbarn/variables. I assume this isn't desirable. Unstrip seems like the easy target to prevent this kind of thing, but I think the bigger problem is the fact that mw:Extension:Cite produces side effects (and I think is unique in this regard). Thoughts? Jackmcbarn (talk) 02:50, 12 February 2014 (UTC)

Interesting. This appears to use frame:extensionTag to call mw:Extension:Variables using some tricks that I don't understand and don't feel like studying at the moment. I have wondered whether it might be useful to add a global store to mw so templates/modules could set variables that can be used by later templates/modules and was going to suggest it as soon as I could think of a reason! The code which implements mw.loadData could possibly be extended so there is one read/write table per page, restricted to allow only numbers/strings as keys and "simple" values (numbers/strings, or perhaps a table of those). Johnuniq (talk) 03:13, 12 February 2014 (UTC)
I think you meant to link to the Cite extension. This is duplicating the Variables extension without actually using it. This being able to exist is actually a bad thing, though. Side effects of parsing causes problems. Jackmcbarn (talk) 03:15, 12 February 2014 (UTC)
Oh—now I understand what that code is for! I agree it is possibly a problem. Johnuniq (talk) 03:24, 12 February 2014 (UTC)
Oh, ugh. Anomie 04:11, 12 February 2014 (UTC)
This seems fundamental for Lua to be able to have ref tags and get reflists based on them. What is so bad about leaving this working? I should mention that unstrip is another very useful function - for example, in Module:Module overview to obtain the full list of Allpages for module space - hence my concern. Wnt (talk) 04:28, 12 February 2014 (UTC)
  • Novel idea, why don't we just get consensus and enable Extension:Variables on this wiki? — {{U|Technical 13}} (tec) 12:51, 12 February 2014 (UTC)
The point is that it shouldn't have been possible for me to write that, because having that possibility breaks things. Jackmcbarn (talk) 12:59, 12 February 2014 (UTC)
Well, having refs dumped onto a page has always been a bit problematic, even simply editing a talk page where a references header tends to pick up stray refs. In Lua there's a particular weirdness addressed in Module:Arguments where just looking at a parameter that contains a ref tag causes the reference to be cited at the end, which easily results in a ghost reference at the end of the article. If you can picture a fundamental fix in mind that replaces the cite extension's handling of these things throughout the wiki I can see the appeal, but I wouldn't want someone looking to cripple Lua while leaving the underlying situation as it is. Wnt (talk) 13:47, 12 February 2014 (UTC)
I filed bug 61268 to track this. Let's continue any relevant conversation there. Anomie 15:56, 12 February 2014 (UTC)

OAuth on MediaWiki

Hi Anomie! Can you review my request (Nullzerobot) at Thank you :) --Nullzero (talk) 17:54, 27 February 2014 (UTC)

Wikipedia:Village pump (idea lab)/Archive 13#Section editing reflinks idea

You are invited to join the discussion at Wikipedia:Village pump (idea lab)/Archive 13#Section editing reflinks idea. This is an idea that I think may interest you and would love to hear your feedback on. Thanks! — {{U|Technical 13}} (tec) 16:11, 1 March 2014 (UTC)

AnomieBOT being admirably persistent at Encyclopedia Dramatica

Hi Anomie. You probably want to take a look at AnomieBOT's entries on the spam blacklist for the Encyclopedia Dramatica article today. I imagine that is probably more persistent than you would want AnomieBOT to be. Not sure what the cause is, but it's occurring once every couple of weeks or so on various articles, and seems to stop after a few hours, or after 40-50 attempts. I've denied AnomieBOT from the Encyclopedia Dramatica article to stop the immediate problem; as the attempts seem to stop after a few hours, I'll remove the {{bots}} template tomorrow if you don't get to it first. — Mr. Stradivarius ♪ talk ♪ 09:14, 4 March 2014 (UTC)

I didn't know we had an on-wiki log for spamblacklist hits. I'll have to put in some sort of handling to avoid flooding that. The reason it stops after a few hours is that I see the bot's notice at User talk:AnomieBOT (e.g. Special:Diff/597749841/598071056) and remove the blacklisted link, or someone else does it for me. Anomie 13:04, 4 March 2014 (UTC)

Clean up requested

I wonder if you could use your magic to clean up zh:维基百科:AutoWikiBrowser/Dated templates and zh:维基百科:AutoWikiBrowser/Template redirects. -- Magioladitis (talk) 10:14, 4 March 2014 (UTC)

The first is at Special:PermanentLink/598098932. I don't have a script ready-made for the latter. Anomie 12:33, 4 March 2014 (UTC)
Thanks! I can try working manually for the latter. -- Magioladitis (talk) 13:52, 4 March 2014 (UTC)


Why does PPFrame::getTitle() return a string instead of a Title object, and would it break too much to change it at this point? Jackmcbarn (talk) 02:06, 5 March 2014 (UTC)

Found you a live example for bug 61953

Sorry, I'm not on IRC, but I just came across Wikipedia:Articles for deletion/Escalon Medical, which has the problem described at bugzilla:61953 - and still had it after I edited the page. — Mr. Stradivarius ♪ talk ♪ 09:45, 10 March 2014 (UTC)

That's the problem with this bug: I just looked, and it's no longer showing the issue. Anomie 17:40, 10 March 2014 (UTC)
Found another: Wikipedia:Articles for deletion/Jeffrey Scaperrotta. I'll let you know if I come across any others as well. — Mr. Stradivarius ♪ talk ♪ 04:05, 26 March 2014 (UTC)
Which templatelinks was that page missing? ... Or are you telling me it was missing the templatelink from Wikipedia:Articles for deletion/Log/2014 March 18 to that page? I did see the latter, then I did a null edit (more or less) on the March 18 page and it was fixed, so no luck debugging there 😞. Anomie 13:37, 26 March 2014 (UTC)
My method of checking wasn't as scientific as that. I tried to relist the discussion with User:Mr.Z-man/closeAFD.js, and it failed in the way described at User talk:Mr.Z-man#closeAFD stopped relisting. I then made a dummy edit to the page and tried again, and it still failed, so I posted here. I tried again as I was typing this message, and it has now relisted successfully. Should I have made a dummy edit to the log, rather than the AfD page? — Mr. Stradivarius ♪ talk ♪ 14:06, 26 March 2014 (UTC)
Ok, brain is now engaged, and I can see that the answer to that last question is "yes". :P I'll actually do a null edit on the log page next time. — Mr. Stradivarius ♪ talk ♪ 14:11, 26 March 2014 (UTC)

User Identifier

Hello, I'm Anupmehra. I was just wondering if {{User:Anomie/useridentifier.js}} would be working on Modern skin as well? Anupmehra -Let's talk! 23:28, 16 March 2014 (UTC)

@Anupmehra: Why not just try it and see? Jackmcbarn (talk) 23:43, 16 March 2014 (UTC)
Jackmcbarn- I'm trying it. I just feel insecure with javascripts. Anupmehra -Let's talk! 23:52, 16 March 2014 (UTC)
I don't know, I haven't tested it there. I don't see any reason it shouldn't, though. Anomie 11:44, 17 March 2014 (UTC)

Anomiebot III

Hi Anomie, I just noticed that your bot, User:AnomieBOT III, changes redirects to other language versions (which doesn't work) into soft redirects. The task was approved and the example I found was done correctly, so no complaints there, but such soft redirects are strongly discouraged. Per the lead of Wikipedia:Soft redirect: "Soft redirects to non-English language editions of Wikipedia should be avoided because they will generally be unhelpful to English-language readers." I thnk it would be better if you changed it to e.g. a proposed deletion or something similar, like I have now done at Gaspar de Bono and Damaso Pio De Bono. Fram (talk) 13:09, 18 March 2014 (UTC)

I see the former was already turned into a real article. I wouldn't be opposed to the bot doing this, but I'd like to see a discussion on WP:VPR showing that people actually want it done by a bot (rather than humans looking at Category:Wikipedia soft redirects) first. Anomie 23:43, 18 March 2014 (UTC)
OK, now at Wikipedia:Village pump (proposals)/Archive 110#Proposal to automatically ProD redirects to other language versions of wikipedia, instead of turhing them into soft redirects. Fram (talk) 07:42, 19 March 2014 (UTC)
Thanks! Anomie 11:29, 19 March 2014 (UTC)

Avoiding calls from mw.message back into PHP

Would it be a good idea to rework the mw.message Scribunto library to only call into PHP to fetch message text (and not at all if newRawMessage is used), doing things like parameter substitution within Lua? I see a performance gain, but I'm worried about duplicating code. If it's a good idea, I'll code it up. Jackmcbarn (talk) 02:03, 20 March 2014 (UTC)

That would be a fair bit of code duplication, as it would have to duplicate and keep up to date with Message::extractParam. And IIRC, a call from Lua to PHP in LuaSandbox costs about the same in CPU time as a call from Lua to another Lua function (although retesting that could be helpful). I wouldn't necessarily be opposed, but there would have to be enough of a positive to counterbalance the code-duplication negative. Anomie 11:37, 20 March 2014 (UTC)

Script instructions and monobook.js

Should the comments in your userscripts be updated to mention vector.js since it has been the wikipedia default since 2010 (or at least Special:MyPage/skin.js which will link to whatever skin the user is using)? As it is, it can be confusing for powerusers that started here after the switch away from monobook. --Ahecht (TALK
) 14:54, 7 April 2014 (UTC)


Should the comments in your userscripts be updated to your program.I am happy. Tank you.--shiroikabe 10:05, 11 April 2014 (UTC) — Preceding unsigned comment added by Shiroikabe (talkcontribs) Tank you --shiroikabe 10:32, 11 April 2014 (UTC)

BOT Request

Hi Anomie, I have requested for a bot to cleanup the Tamil wiki articles, I didn't get any reply regarding the same, to whom I can approach for the same? Thanks!--Dineshkumar Ponnusamy (talk) 09:45, 21 April 2014 (UTC)

Creative Commons License