User talk:Krinkle/Archive 1

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
Archive This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page.


Hey Krinkle.

Re-categorizations like this are actually wrong. We use those language categories (stuff like "Category:Nederlands") because they're the ones we'll use on foundationwiki, where the translation is later posted. The Translations nl category is automatically added with {{Translate}} translate. If the fact that that redlinks like that exist, feel free to create the category page with "{{WMF translation category|NL}}" so that it's clear that that's for pages on other wikis.

You don't need to revert all your category changes, but please keep this in mind in the future. Cbrown1023 talk 20:47, 5 March 2010 (UTC)

Thanks a lot for the notification ! I've added the template to the category page, and reverted my category changes on pages that included WMF-names in them. -- Krinkle 21:49, 5 March 2010 (UTC)
Bedankt, Krinkle. Sorry for the confusion! :-) Cbrown1023 talk 02:11, 6 March 2010 (UTC)

Global CSS & JavaScript

Hello Krinkle. You now have global CSS & JavaScript, as you requested on User:Pathoschild/Scripts/Synchbot. You can see sortable logs of each page edited or skipped at User:Pathoschild/Scripts/Synchbot/Archives/Krinkle. —Pathoschild 02:46:19, 25 June 2010 (UTC)

Thanks. I spotted my account wasn't created on yet. I presume it's a new wiki that wasn't in your database yet last February. I created the scripts/account there manually. everything else looks nice and works great ! –Krinkletalk 11:57, 25 June 2010 (UTC)
You're welcome. The Karachay-Balkar Wikipedia was created in March. —Pathoschild 12:49:34, 25 June 2010 (UTC)
Okay, thanks for the info. –Krinkletalk 15:24, 25 June 2010 (UTC)


Hello there. Since you don't seem to answer on User talk:Krinkle/Tools, this time I'll post here instead. Unless I misunderstood something, your instructions on User:Krinkle/Tools/Real-Time Recent Changes are missing an important last step: visiting the page user:Krinkle/RTRC (or just Krinkle/RTRC). I have some other comments and questions, let me know if you're interested. -AlexSm 04:49, 30 June 2010 (UTC)

Hi AlexSm,
Lately I've been busy on all kinds of things, I don't know how I missed that. I'll reply there shortly.
Originally (before I centralized it on Meta) the page it is on was in the help docs (see here) but when I moved it to Meta and used the template it got lost. I've got it fixed now. Thanks a lot for reporting this ! –Krinkletalk 23:27, 30 June 2010 (UTC)
Well, whenever you have time, you're welcome to the #mediawiki-scripts channel, I usually hang there from 13 to 21 (UTC) (except the next week from July 3rd). And ... here's another little issue: currently User:Krinkle/Scripts/toggleRevDel suggests to paste importScriptURI('...index.php?title=&action=raw') with empty title. -AlexSm 03:47, 1 July 2010 (UTC)


Hi! =D

What about using jQuery(document).ready... instead of add addOnloadHook? Helder (talk)

I am using that, $j(function(){ is shorthand for jQuery(document).ready(function() {. I left in addOnloadHook aswell because of a weird bug regarding the order scripts are loaded. –Krinkletalk 10:01, 24 October 2010 (UTC)

Blank pages fixed Kaldari 03:14, 17 November 2010 (UTC)


Hello, I see you've imported a new tool "photocommons" into SVN. And I'm just wondering what it is, has is something to do with search, or no? --Rainman 19:09, 14 January 2011 (UTC)

It is one of the projects I took at the Amsterdam Hackathon w:chapter:Hackathon 2011. It's done together with Husky and it's a WordPress plugin to search for images in the Post/Pages editor and be able to get them into your posts with a single click – while also staying connected to Commons through the API in case the image would perhaps become a redirect, so it is still functional.
At the moment it's a basic 0.1 version (only in SVN) and not published yet. The outcome of the Hackathon was in a limited time-frame (24 hours) because it had to be presentable in real-life to an audience the day after on Saturday. In the coming days/weeks it will be further polished and released as a plugin for real users. Documentation will be written from now on as well. Keep an eye out for mw:PhotoCommons (doesn't exist yet) if you're interested. –Krinkletalk 00:00, 16 January 2011 (UTC)

Global usage


I liked your idea of using Special:GlobalUsage to list/monitor the use of your scripts (thanks! ;-) ), and then I started to use it for one script. Then I've added a comment to a "MediaWiki:Gadget-page-..." and it didn't show up in the list. Is this a bug in that special page when dealing with MediaWiki namespace? Are you familiar with it's code to see if it would be easy to fix? Helder 14:58, 17 January 2011 (UTC)

It took me a while to figure out but the reason is quite simple. Adding a file-link to global usage in a javascript // comment is possible as long as it's part of what would be a normal wiki page. However you put it inside the <source lang="javascript"> in which case it's no longer a pseudo image but simply unparsed code.
Solution: Add the // [[File: ... ]] on top of the .js page –Krinkletalk 23:21, 18 January 2011 (UTC)
Wow! Interesting... I didn't notice that! Thanks for your help! Helder 15:02, 20 January 2011 (UTC)


Great work! Now we can delete those poor orphan pages faster again :) --Alhen 14:26, 2 February 2011 (UTC)

Collapsible templates


I was wondering if you have any idea on how to handle this use case of makeCollapsible script. I'm having trouble creating a solution using ids as in the default example, because it is needed that to use the template multiple times in the pages. Is this something that would be feasible using classes instead of ids? Any suggestions? Helder 12:24, 11 February 2011 (UTC)

Using IDs would indeed work, but it's not required. It is perfeclty doable using only classes. The construction may seem a little weird (ie. different than the demonstration examples), but it works fine. Check it out here. –Krinkletalk 21:36, 11 February 2011 (UTC)
Thanks for your help with that. That is what I was looking for.
One more question: is that "makeCollapsible" part of the improvements ready to be merged to mw 1.17, or the inclusion of this feature will be postponed to a future update? Helder 14:17, 13 February 2011 (UTC)
It was developed shortly after 1.17 was branched and the main (new) developments were going to 1.18. But since it's a stand-online plugin (also usable outside MediaWiki) I think it can be backported without problems. I'll see if I can get this one as soon as 1.17 is settled (ie. all problems with existing scripts are solved). –Krinkletalk 14:39, 13 February 2011 (UTC)
Ah, ok. Thanks for your quick answer. Have a nice Sunday! =D. Helder 15:26, 13 February 2011 (UTC)
You might have a look at JQuery snippets#Make watchlist options collapsible --Nakohdo 08:59, 14 February 2011 (UTC)

Als je tijd over hebt....

Eet smakelijk!

VectorSearchNav.js lijkt op NL niet helemaal de goede afmetingen te hebben. Wil jij dr een blik op werpen? Bij voorbaat dank en met vriendelijke groet, Kwiki 11:35, 16 February 2011 (UTC) p.s. Kijk ook ff hiernaar alsjeblieft. Ter compensatie een stroopwafel.

De zoekbox is nog wat te breed, zelf heb ik dat opgelost door t script in mijn vector.js te zetten en de volgende regels toe te voegen. Met vriendelijke groet, Kwikipopsok 09:42, 19 February 2011 (UTC)
$j("div#simpleSearch").css("width", "130px");
$j("button#searchButton").css("margin-right", "7px");
Ik had dit eerder deze week al gefixed hier, maar op was een duplicaat van het script. Dat is nu opgelost. De afmeting was opzich niet te breed, maar de verhouding is veranderd in Vector, ik heb de eenheid aangepast en nu klopt de breedte weer. –Krinkletalk 12:24, 20 February 2011 (UTC)


Greetings! I'm pleased with your assistance at en.wikibooks. I noticed you've replaced a few uses of "prettytable" here. If you have some utility to show or maybe a list of uses of that class at en.wikibooks, I'd be very interested to see it. We have MediaWiki:Common.css/WikiTable.css that is only needing to remain for that old class that shouldn't be used and I too would like to get rid of it but people always voiced concerns that it might break existing usage that we can't detect with a "what links here". – Adrignola talk 21:00, 16 February 2011 (UTC)

Actually, I'm going to download a dump and search it with AutoWikiBrowser. – Adrignola talk 21:10, 16 February 2011 (UTC)

$ is undefined


Sorry for bothering you again, but I think maybe you can help me with a JS bug in Special:RecentChanges from pt.wikibooks. As far as I can tell, it is the only page where $ is not defined, and so I get errors like

Uncaught TypeError: Property '$' of object [object DOMWindow] is not a function

in Google Chrome or

$ is not a function
Line 41

in Firebug. I've being updating our b:pt:MediaWiki:Common.js to use non-deprecated functions, and also some of our gadgets, based on Migration guide and the changes I've seeing in other wikis. Maybe I did something wrong in the process?

Thanks in advance. Helder 21:29, 17 February 2011 (UTC)

I don't see the error. Does it still happen ? If so, try logging out and/or using a different browser and see if it still happends. –Krinkletalk 23:06, 17 February 2011 (UTC)
Hmm... This is odd. I did that before and it happened both on Chrome and Firefox when logged out. But today it isn't happening anymore. So never mind. Helder 12:25, 18 February 2011 (UTC)


Hi, I'm jquerizing the French Wikipedia Common.js. I intend to use your script User:Krinkle/insertVectorButtons.js to ensure compatibility of old custom toolbar and I wrote almost the same code before finding your page. Just a small question: is it possible to use 'type': 'encapsulate' [1] instead of the 'type': 'callback' of your script, is it working and performing the same task? (I think the answer is yes, but I prefer ask, moreover if it allows to optimize your implementation.) ~ Seb35 12:56, 1 March 2011 (UTC)

val() x text()


When I tested this script, I noticed something strange with jQuery's text() function in the editbox. Consider the following steps:

  • Open a JS page like Special:MyPage/Just a test.js in edit mode;
  • Put some text in it (and doesn't save the page), e.g. "Lorem ipsum";
  • Type in the address bar the

It will display an empty alert box, instead of "Lorem ipsum". Is this supposed to behave like this?

I noticed that


works as I expected. Do you know why do these functions return different values in this situation? Thanks Helder 23:37, 2 March 2011 (UTC)

The .text() method cannot be used on input elements. For input field text, use the .val() method.
The reason is a bit complicated but basically it comes down to the difference in accessing the actual HTML node and the active value. When typing in an input field, the contents of the HTML input element will not change, but the active value does.
.text() returns the content of the HTML element, wheares val() returns the value.
This is not a bug, see also jQuery val(), jQuery text() and a blog postKrinkletalk 19:09, 5 March 2011 (UTC)

Collapsible tables bugs?


I've copied your collapsible table example and added the class "mw-collapsed" to it but then the table disappears completely!

Did I do something wrong while installing the plugin, or this is a bug?

Still on that page, in the subsequent section, if the element with class "mw-collapsible-toggle" has a link, the link isn't clickable. This seems to be the same problem mentioned on Commons. Should I create a bug about that? Helder 22:30, 4 March 2011 (UTC)

I don't have much time right now but I'll leave quick reply here
  • CollapsibleTemplates.js and JQuery-makeCollapsible.js are unrelated from eachother and seperate in each and every way. So that can't be the cause.
  • The bug was introduced when I implemented the instantHide, I didn't run all tests from the demonstration page. This has been fixed in rev:83309 and I'll update the files on the wikis as soon as possible.
Thanks again for this report!, –Krinkletalk 19:02, 5 March 2011 (UTC)
Thanks for fixing the first bug.
As for the second one, although the scripts are independent from each other, that strange behaviour (of expanding the collapsible element instead of opening the link when it is clicked) appeared in both, but it seems to be fixed on CollapsibleTemplates.js (e.g. here the link in the "Artist" field goest to "Jacopo Tintoretto" when it is clicked). Would it be possible to fix the problem also in JQuery-makeCollapsible.js? BTW: the problem only happens if I click with the left button (middle and right buttons works fine). It is particularly problematic in pages like b:pt:Português, where the links to some chapters of the book are in the section used to toggle the content. Helder 20:01, 5 March 2011 (UTC)
This was reported in bugzilla:28344. Helder 11:53, 31 March 2011 (UTC)

User:Krinkle/Scripts/CVNSimpleOverlay wiki

Bug in Krinkle's script CVNSimpleOverlay.JPG

There currently seems to be a problem with the script that you have, namely the hyperlink to a blocked person's userpage is replaced by a blacklist message instead. Can you please think of a way to fix this? :| TelCoNaSpVe :| 11:57, 30 March 2011 (UTC)

Thanks, I've verified the bad output on User:Tanduay1 and fixed this right away. Latest version is now 0.1.12-wiki. You can verify which version is currently running by clicking the CVN-icon next to User icon 2.svg. –Krinkletalk 15:58, 31 March 2011 (UTC)

OrphanTalk bug

Hi, there's a bug in OrphanTalk. Instead of pointing to the wikis, all links point to Would be nice to have that fixed. :-) Jon Harald Søby 18:36, 2 April 2011 (UTC)

Hi Jon, Thanks for your message.
I'm currently in the middle of rewriting the backend of this tool to make the interface localized and translated in more languages (so non-English wikis can use it without the need to understand English). In the mean time it should stay fully functional, but apparently I screwed up a bit there, I've fixed that now. In case you notice other problems, I've restored the old version here: . Ofcourse, would you notice such thing, let me know here I can fix it in the new version asap. Thanks again, –Krinkletalk 22:33, 2 April 2011 (UTC)
Thanks for the prompt response! Yeah, Gerard's post about your localization efforts is what made me aware of the tool in the first place. Great work, keep it up! :-) Jon Harald Søby 11:54, 3 April 2011 (UTC)

Norwegian translation of RTRC

I've translated RTRC to norwegian. Could you add it to RTRC? User:Laaknor/RTRC.js/no. Laaknor 21:39, 23 April 2011 (UTC)

Soon the gadget will be translated via, I rather focus on getting that done then importing these one-by-one into the current system. I hope to have this ready by the end of June. –Krinkletalk 13:35, 5 June 2011 (UTC)


Hi, you seem like someone well-versed in maintaining Wikicode. I understand that my recent attempt to modify this template was reverted, but somehow the template still remains broken along the way; see Proposals for closing projects/Closure of Corsu Wikibooks, where the level two header labeled "Discussion" appears to be suddenly cut off. I've tried to have a look at the template myself and possibly fix it, but I can't see what exactly is wrong with it, so I figured you might have some knowledge about the problem. Could you please fix it? :| TelCoNaSpVe :| 03:27, 27 April 2011 (UTC)

If I recall correctly, the edit you made to the template didn't fix the problem, that's why I reverted it. It wasn't a wrong solution.
The problem seen at Proposals for closing projects/Closure of Corsu Wikibooks is that the text parameter to {{Closed}} ends with a heading. Headings must always be on their own line. Inside {{Closed}} there was a </div> directly after the inclusion of {{{text}}} . Which resulted in:
== Discussion == </div> , which doesn't work. Fixed at Template:Closed

. –Krinkletalk 12:20, 1 May 2011 (UTC)

Wikimedia New York City

Just saw that you protected Wikimedia New York City. I think you should Unprotect it as Interested Participants may have to add their name in Interested Participants section, or You can replace the names by a template, so they can add their name there. Vibhijain 12:29, 5 June 2011 (UTC)

Well, it has a paypal donation button with a gmail address in it. Anyone could modify that otherwise and reroute donations. That sounds way too risky to me. One could argue such a button doens't belong on a Meta article, but that's not up to me. I just make sure it's not abused. –Krinkletalk 13:19, 5 June 2011 (UTC)
Alright, I've moved the sensitive part to a subpage and protected that instead. The main page can be edited freely again! –Krinkletalk 13:29, 5 June 2011 (UTC)

m:Tech ping :-) --MZMcBride 22:46, 19 June 2011 (UTC)

Thanks!, –Krinkletalk 07:00, 20 June 2011 (UTC)

Localized redirect magic word sr-ec

Hi, Krinkle. Do you know how we can enable all these variants (at the top of that page) for redirects on For example, see this page. Thanks in advance :) mickit 12:32, 27 September 2011 (UTC)

Hi Micki. Sorry but I don't have access to this configuration, nor do I know that much about the magic word configuration. Please raise the topic on Babel or, if you have an account (?) at bugzilla: (under "Enter a bug > Wikimedia > Site requests"). That way other experts can help. –Krinkletalk 16:40, 27 September 2011 (UTC)
Thanks for the tips. mickit 17:38, 27 September 2011 (UTC)


Hello Krinkle. Sorry, but I had to undo this change you made on the SBHandler gadget, as it was not working anymore. Could you please fix it ? Thanks, and have a nice evening ! -- Quentinv57 (talk) 19:23, 28 September 2011 (UTC)


Hi. Sorry for bothering you again. Maybe you know something about this. Thanks in advance. mickit 13:08, 12 November 2011 (UTC)

No problem :) I've replied there. –Krinkletalk 17:31, 12 November 2011 (UTC)


Hello. Why does your Toolserver-Tool OrphanTalk2 list the talk page de:Diskussion:Katharsis (Band) as being orphaned ([2])? That's obviously wrong. SteMicha 17:55, 12 November 2011 (UTC)

Not so obvious at all. Look at the log of "Katharsis (Band)". It was deleted october 22. The Toolserver may have missed certain updates, they're working on re-synchronizing their database with Wikipedia's database. Sorry for the inconvenience, nothing I can do about. –Krinkletalk 18:38, 12 November 2011 (UTC)
Hm.. sorry, it was deleted in 2010, not 2011. Either way, it's still something in the database corruption I think. I'll investigate, but I expect it to be automatically fixed as soon as the Toolserver is done re-synchronizing their database, this may take a few days. –Krinkletalk 18:40, 12 November 2011 (UTC)
Indeed, the problem is in the Toolserver database:
$ sql dewiki_p
mysql> SELECT page_id FROM page WHERE page_namespace=0 AND page_title='Katharsis_(Band)';
Empty set (0.00 sec)

mysql> SELECT page_id FROM page WHERE page_namespace=1 AND page_title='Katharsis_(Band)';
| page_id |
| 5743626 |
1 row in set (0.01 sec)
The article page does not exist in the toolserver database, there for it indicates the talk page as orphaned. –Krinkletalk 18:44, 12 November 2011 (UTC)


Can you suggest me some of the extenshan that we can propose at the start of Marathi wiki source.

Thanks Rahul Deshmukh


Some bugs/comments on Global SUL

The following wikis gave me these issues (and well, all wikimedia chapter wikis and a few more don't have automatic creations etc): -> and no centralauth -> wiki moved to and not centralauth, member-only -> listed twice

Snowolf How can I help? 06:21, 13 February 2012 (UTC)

Hi Snowolf,
Wikis on * (including chapter wikis) do support auto-creation actually. However the SUL login does not set a wildcard cookie for all domains for security reasons. It does set a wildcard cookie for *, * etc.
If you manually go to a chapter wiki and login, it will auto-create and connect a SUL account.
My tool is unable to do so automatically because it cannot auto-login, thus the auto-create is not accessible.
Regarding and be.wikimedia: These defects are an upstream issue in the API. should have some property that I can filter by to skip it, and be.wikimedia should indeed not be listed twice.
I've filed bugzilla:34369 and bugzilla:34370 for this. Thanks!, –Krinkletalk 14:29, 13 February 2012 (UTC)
These bugs are now both fixed :) –Krinkletalk 03:57, 28 February 2012 (UTC)

Global rollback

Promoted. Good luck with it! Trijnstel (talk) 10:07, 28 February 2012 (UTC)

Next step is GS so we get even more useful scripts :P :P :P Snowolf How can I help? 11:23, 28 February 2012 (UTC)
Thanks! –Krinkletalk 18:09, 28 February 2012 (UTC)
I agree with Snowolf - and congratulations! :) The Helpful One 18:18, 28 February 2012 (UTC)

Congrats and a help request

Nice to see that you are going to be out there bashing things. Congrats.

Can you point me to a portlet or something that allows me to create links in the left hand side panel where I wish to stick links to various tools on this server. Thanks. billinghurst sDrewth 12:55, 29 February 2012 (UTC)


is buggin' me! --Locos epraix 06:31, 3 March 2012 (UTC)

Thanks. Fixed now. Replied there. –Krinkletalk 01:44, 4 March 2012 (UTC)

Intuition bug?

Opening gives the output

Warning: require_once(/home/krinkle/TsIntuition/ToolStart.php): failed to open stream: No such file or directory in /home/project/e/r/f/erfgoed/public_html/api/index.php on line 7 Fatal error: require_once(): Failed opening required '/home/krinkle/TsIntuition/ToolStart.php' (include_path='.:/opt/ts/php/5.3/lib/php') in /home/project/e/r/f/erfgoed/public_html/api/index.php on line 7

Since this contains Intuition (and I don't know whose this is), I thought I should let you know. Regards--Siddhartha Ghai (talk) 02:01, 9 March 2012 (UTC)

Actually people are not supposed to embed TsIntuition from my account ( but from the central Intuition account ( The one on my account I used for debugging and testing, I had re-installed it the other day to test something else and put it in a different directory (not knowing someone was linking to it). I've restored the link for now :) –Krinkletalk 02:07, 9 March 2012 (UTC)


I saw your changes for the 0.3.0 version of the tool. I like the queue implementation but I'm not really sure if that's the place for that. Do you intend to push that to wikiEditor extension? --Locos epraix 03:51, 12 March 2012 (UTC)

Thanks for your interest! There is an open feature request for the WikiEditor extension to implement this. However due to the way the WikiEditor is bound to an element, it is fairly complicated to incorporate a queue system that works both before the element exists and before the actual plugin is available. For my gadget it is easy because I know which textarea is to be used ahead of time. It's also a method of experimentation (the queue system I implemented might not work in all circumstances. A fairly small scale test through my gadget is a good way of getting feedback if there is an issue). –Krinkletalk 04:20, 12 March 2012 (UTC)

Nested collapsible tables don't work

Hey, I got a problem with nested collapsible tables. Any suggestions how to fix that? Or is that an official bug? --EoD (talk) 22:47, 11 May 2012 (UTC)

Yep, you found one. mw:Bugzilla. –Krinkletalk 03:15, 12 May 2012 (UTC)
Thanks, I found it: bugzilla:35257 --EoD (talk) 03:22, 12 May 2012 (UTC)

Help with changes I requested to popups

Krinkle, the changes I requested to fix popups for special:contributions links in non-english projects have been reverted because "it causes problems for some users". It seems to me that this is due to bugs in user scripts, as was the case with the afc-helper script. What should I do in this case?

Thanks for the help. Chico (talk) 00:08, 22 May 2012 (UTC)

WMIN portals

Hi Krinkle, I need a small help. Just saw you updating the Wikimedia portal. Wikimedia India has come with static portals for Indic Wikimedia projects. Can you please help to make it dynamically updating the stats -- naveenpf (talk) 15:01, 28 May 2012 (UTC)


Hi. I saw that you moved the www portal preview script to a gadget. I enabled the gadget, but now when I click "preview portal," I get the following error in my JavaScript error console:

Uncaught ReferenceError: portalPreview is not defined

This is running Google Chrome/19.0.1084.52/Mac OS X. Can you take a look? --MZMcBride (talk) 18:15, 31 May 2012 (UTC)

P.S. Do you think the gadget should be enabled by default?

I'm looking into it, and Yes it should be enabled by default as soon as it works :) –Krinkletalk 21:24, 31 May 2012 (UTC)
@MZMcBride: Just for the record, that error has been fixed the same day and the gadget has been enabled by default (just like Sparkla's user script was also loaded by default from Common.js, except that Gadgets load faster and can be opted-out from the preferences). –Krinkletalk 15:36, 17 July 2012 (UTC)

Is there any reason to allow the JS to be disabled but not to do the same with the CSS? I.e.. isn't better to make both hidden or both visible? Helder 12:46, 1 June 2012 (UTC)

Can you clarify what you're asking here? I have no idea what you're asking. As far as I know there is no different handling for CSS then JS in those gadgets. –Krinkletalk 15:36, 17 July 2012 (UTC)
BTW: is it possible to disable minification on I tried
but I still get a minified version of the source code. Helder 13:04, 1 June 2012 (UTC)
This is not possible because the Project portals are loaded (with cache) raw from the wiki page. There is no way to pass a query parameter from there into to the wiki page, because it's just static html (e.g. one can't do something like <?php echo $_GET['debug'] === 'true' ? '&debug=true' : '';). This is not possible, just like it is not possible to have a foo.html file that you can pass a query parameter to and have the response be different, it's still the same file. –Krinkletalk 15:36, 17 July 2012 (UTC)

WMA cleanup

Hey Krinkle, thanks for the code cleanup! One question, you changed use <tag> for creation, and full <tag></tag> in parsing. I remember vaguely that a year or so ago I switched to the <tag></tag> syntax as that fixed a crash bug in IE. I never followed up on that on the upstream side (jquery), but remember that that exact change made my script not crash the script anymore. --Dschwen (talk) 03:42, 17 July 2012 (UTC)

I'm going to change this back for now. I checked the jquery docs and it says jQuery( html, props ) html A string defining a single, standalone, HTML element (e.g. <div/> or <div></div>). I'll watch the talk page. Let me know if I missed/misunderstood something here. Cheers --Dschwen (talk) 04:09, 17 July 2012 (UTC)
Hi, you're welcome :)
Regarding the close tag of empty elements, I am positive that no close tag or self-closing symbol have to be inserted. Although the docs could be improved (I'll ping someone about it), I'll cite these two sentences from

To ensure cross-platform compatibility, the snippet must be well-formed. Tags that can contain other elements should be paired with a closing tag:

This means one must not use shortcuts like the following: jQuery('<div id="x"><ul/></div>');, because <ul> is not an element of type "empty", and as such should have a closing tag. The sample here may cause issues in IE indeed, because its HTML parser will not tolerate it (which makes sense, in a way). The case at hand in WMA, however, is different. We're not using jQuery to parse a "snippet", but, to create a (single) clean new element.

When the parameter has a single tag, such as[..] Tags that cannot contain elements may be quick-closed or not:[..]

This means we can create a (single) brand new element with the plain simple syntax jQuery('<div>'); jQuery('<li>'); jQuery('<br>'); .. without having to worry about close tags, because it is not considered an HTML snippet, but element creation. And in that case jQuery takes care of everything. FYI, jQuery also uses this internally the same way jQuery.ajax src: jQuery("<div>"). –Krinkletalk 15:28, 17 July 2012 (UTC)


Hello Krinkle. The script linked above gives us direct links in the Special:Log/rights and Special:Log/globalauth. Is it possible to fix the script so it's protocol-relative? Entries at Special:Log/rights are still non protocol-relative in spite of a fix by Billinghurst. See talk and page history for details. Regards, — MA (audiencia) 13:52, 28 July 2012 (UTC)

Thanks, should be fixed now. –Krinkletalk 18:23, 28 July 2012 (UTC)
Thank you very much! Regards, — MA (audiencia) 09:57, 29 July 2012 (UTC)
Hi again. Could you please when you have time add support for wikidata in the script. The links in points to a bad site. Thank you in advance. Best regards. -- MarcoAurelio (talk) 20:02, 16 November 2012 (UTC)
Yes check.svg Done, diff. It will be visible in a few minutes. –Krinkletalk 19:17, 20 November 2012 (UTC)


Hi, I see you changed my additions again. I deliberately removed getLang() because that function checks for a cookie, which shouldn't be used in the searchwiki inputbox. (getLang was used earlier, I only noticed the cookie for the second patch, so that should have made it clear that I removed it deliberately, but in any case I should have written a note as documentation.) So, could you please change it back? Regards, SPQRobin (talk) 16:00, 29 July 2012 (UTC)

Why not? I think it makes perfect sense to remember and use the user's choice instead of solely using the user agent language. By default there is no cookie and getLang() will simply fallback to the user agent language. But if the user has explicitly chosen a different language in the past, it makes perfect sense to me to use that instead. Especially since many people don't use a browser in their primary language (either because they can't or don't know how to change it on the computer they're using). –Krinkletalk 21:43, 30 July 2012 (UTC)
Because the language selector is next to the article search box, not the wiki search box, so it is confusing that your selection has impact on the wiki search box as well (I at least didn't understand why it was using a different language). Someone can also search for an article in a different language than their main language, i.e. someone doesn't necessarily select their main language. SPQRobin (talk) 23:15, 31 July 2012 (UTC)
Hm.. okay. That does mean however that the user has no way to control the user language, nor is it which language it is going to use (the field is hidden). Perhaps another drop down menu? Anyway, fixedKrinkletalk 06:07, 1 August 2012 (UTC)
Yeah, I understand. Another drop down would clutter up the page however, I think. But the searchwiki feature can always be improved in the future. Anyway thanks for changing. SPQRobin (talk) 12:43, 2 August 2012 (UTC)

Most missed articles

Hi! I have just found this list on pl.wiktionary, where I am an admin. Can it be revived by simply inserting the code in Common.js or is the script dead? Best wishes / Alkamid (talk) 08:25, 22 August 2012 (UTC)

User:Krinkle/Tools/Real-Time Recent Changes

Hi, I'm Raoli, an user mostly active on it.Wikiquote. I'm interesting about you RTRC and I would like install and use this tool on it.wikiquote. I tried to get it to work importing the script, but I can't make it work. Please, could you help me as soon as possible as soon as you can? Thank you very much for the tool?  Raoli  23:18, 22 August 2012 (UTC)

Good summer :)  Raoli  18:32, 24 August 2012 (UTC)
Where have you gone? :)  Raoli  20:36, 10 September 2012 (UTC)
What have you tried so far? The instructions are on the documentation page. It doesn't have to be "installed". Just copy the 2 lines of script and enable it. I use it daily and works fine for me on every wiki (including it.Wikiquote). –Krinkletalk 23:57, 10 September 2012 (UTC)
The problem is that there are difficulties that prevent us from using it on it.wikiquote because the page where we should go does not exist. If the page existed there would not be problems. In addition, many of users don't know English so I offered to translate it into Italian. If you created the page on it.wikiquote "User: Krinkle / RTRC" the problem would be resolved. Thank you very much and sorry for the inconvenience.  Raoli  09:59, 11 September 2012 (UTC)
Excuse me, have you even tried? That page need not exist, it is trigged by page name. –Krinkletalk 16:21, 11 September 2012 (UTC)
I tried it and it runs very well. The problem is solved, thank you! How do I make the translation into italian language?  Raoli  23:37, 11 September 2012 (UTC)
You're welcome :). For localization, see this tool: Changes can only be made by me, e-mail me the messages you'd like to translate (this also includes messages from other scripts I create). You don't have to translate everything at once, just a few is good, too. If a message is missing it just defaults to English. Let me know if you have any questions (I don't have message documentation, so its best to use the tool and see where the message is used). Thanks in advance for your translation contribution, much appreciated! –Krinkletalk 10:20, 12 September 2012 (UTC)
Thank you very much. At first sight doesn't seem too much text to translate. If I don't understand something about abbreviations, I'll ask you. Now I proceed, and as soon I finished, I'll email you all. Because I live in Rome, I can't answer you immediately.  Raoli  15:41, 12 September 2012 (UTC)
I've done it.  Raoli  17:54, 12 September 2012 (UTC)
Hey krinkle, is good the translation?  Raoli  11:28, 15 September 2012 (UTC)
I created the explanation in your page User:Krinkle/RTRC (on it.wikiquote) so that those who do not have your tool realize where they should go to use it. I hope I did not screw writing it in Italian. Let me know as soon as it is in Italian on my talk page on it.wikiquote. Hello  Raoli  07:51, 17 September 2012 (UTC)
I've imported your translation, thanks!
RTRC in Italian
Krinkletalk 23:00, 17 September 2012 (UTC)
Thank you very much.  Raoli  09:52, 18 September 2012 (UTC)
The function "autodiff_masspatrolneeds" and others were not translated into italian. If you have not received the translations of those functions I will return everything. :)  Raoli  09:58, 18 September 2012 (UTC)

portal updates

Hi. I just tracked these down. fyi, I did much of the original css in there as User:Jack Merridew (including adding <meta name="MSSmartTagsPreventParsing" content="true" />, which was not just in IE6-betas).

I took the furthest, but you'll see me in the 2009 history of most of the portals. The nicest bit in the one for en:wp is the display: block on the orbiting anchors. It won't work quite the same on sites like wikinews because they've got another link in the block. Something probably could be done, though. Glad to see this propagating further. Mostly I'm on en:wp, if you'd like to talk. Cheers, Br'er Rabbit (talk) 18:02, 27 August 2012 (UTC)

Translation of Real Time Recent Changes

Hi, Krinkle. I'm translating the script Real Time Recent Changes into Spanish, but there are some items I can't find anywhere:

  • globalwatched - Global watched
  • go - Go
  • imagelink - image link
  • leaves - leaves
  • linksearch - LinkSearch
  • namespace - Namespace
  • noreasonfound - No reason found
  • pagefilter-opt - Pagefilter
  • reason - Reason
  • transclusion - transclusion
  • unknown - Unknown
  • whatleaveshere - What leaves here
  • whatleaveshere-fromtext - The following pages link from $1
  • whatleaveshere-fromtitle - Links that leave from $1
  • whatleaveshere-linktext - What leaves here?
  • whatleaveshere-noresults - Nothing links from $1
  • whatleaveshere-tooltip - List of everything that links from here

Also, is whatleaveshere a part of RTRC, or is it an independent tool? I already have got a tool with that name at the toolbar by default, without any additional script.

And one more thing: I found that the following items appear in your script but they aren't in the translation template:

  • Real-Time Recent Changes (v0.8.8.beta as of 2012-02-23)
  • [help]
  • MassPatrol
  • AutoDiff
  • Pause
  • On
  • Off
  • Open in Wiki
  • Downloading recent changes failed
  • Please untick the "Unpatrolled only"-checkbox or request the Patroller-right on //
  • Recentchanges-label-legend
  • Recentchanges-legend-newpage
  • Recentchanges-legend-unpatrolled
  • Colors
  • Edit with an Automatic Edit Summary
  • Abbreviations

Does that mean that it's not possible to translate them? Best regards. --Dalton2 (talk) 18:35, 6 November 2012 (UTC) is a general place for translation of messages I use in my gadgets. Unfortunately some of them are not prefixed so their mixed up a bit. Most unprefixed ones are from RTRC. The ones you listed in the first table are all from other tools and gadgets.
As for "Whatleaveshere" I think you're confused with "WhatLinksHere" (the opposite). See also User:Krinkle/Tools/WhatLeavesHere.
Some messages are not yet translatable, that is correct. Although some messages are intentionally not translatable (such as the title of the tools and features and the title of other tools/features referenced (RTRC, CVN, IRC, MassPatrol, ...). –Krinkletalk 21:58, 6 November 2012 (UTC)
Thanks for the explanation. Here is the complete Spanish translation of the template:
adder				Autor
anononly			Solo anónimos
apply				Aplicar
asc				Asc
autodiff_masspatrolneeds	Estás deshabilitando AutoDiff; MassPatrol está aún activo y requiere Autodiff para estar habilitado. ¿Seguro que quiere deshabilitar AutoDiff? (MassPatrol se deshabilitará).
clear				borrar
clickforinfo			Hacer clic aquí para más información
currentedit			Edición actualmente seleccionada
desc				Desc
documentation			Documentación
edits				Cambios
expiry				Caducidad
filter				Filtro
from				Desde
globalwatched			Vigiladas globalmente (if it is about pages, or Vigilados globalmente if it is about items)
go				Ir
imagelink			enlace de imagen
lastupdate			Última actualización
leaves				provenientes
limit				Límite
linksearch			Búsqueda de enlaces
loadfromtop			Desde arriba
masspatrol-showdiff		Mostrar diff
masspatrol_autodiffneeded	Está habilitando MassPatrol, que requiere AutoDiff. ¿Quiere habilitar AutoDiff? (Si no, MassPatrol permanecerá deshabilitado).
masspatrol_userfilterconfirm	Está borrando el filtro de usuario; MassPatrol está aún activo, pero requiere al menos un filtro para estar habilitado. ¿Seguro que quiere borrar el filtro de usuario? (MassPatrol se deshabilitará).
months				enero, febrero, marzo, abril, mayo, junio, julio, agosto, septiembre, octubre, noviembre, diciembre
mypatrollog			mi registro de patrullaje
namespace			Espacio de nombres
newpages			Páginas nuevas
nomatches			Ningún resultado coincide con sus ajustes
noreasonfound			No se ha encontrado ningún motivo
order				Orden
page				Página
pagefilter-opt			Filtro de página
permalinktext			Enlace permanente a los ajustes actuales
reason				Motivo
skippededit			Edición saltada
timeframe-opt			Plazo
transclusion			inclusión
type				Tipo
unknown				Desconocido
unpatrolledonly			Solo no patrullados
untill				Hasta
userfilter-opt			Filtro de usuario
whatleaveshere			Lo que enlaza desde aquí
whatleaveshere-fromtext		Las siguientes páginas enlazan desde $1
whatleaveshere-fromtitle	Enlaces desde $1
whatleaveshere-linktext		¿Qué enlaza desde aquí?
whatleaveshere-noresults	Nada enlaza desde $1
whatleaveshere-tooltip		Lista de todo lo que enlaza desde aquí
whatsnew			Novedades
Regards. --Dalton2 (talk) 16:20, 7 November 2012 (UTC)

Help:Magic words

Hello, I keep ending up on this page via links from other pages only to discover that what I need was removed by you (today is the second time this month). I thought you had checked the content before removing it, so I didn't check it all myself: what have you checked exactly, and what is left to check? Should I check every section and paragraph myself (or maybe just restore everything)? Thanks, Nemo 15:24, 21 November 2012 (UTC)

What do you mean by "checked"? Checked that it has been migrated or is outdated, or something else? Have you checked mw:Help:Magic words ? –Krinkletalk 16:04, 21 November 2012 (UTC)
Yes, that it has been migrated or is no longer true. I know mw:Help:Magic words very well but I've not read the Meta version word by word comparing the two, and I'd like to avoid to do so if not needed. Thanks, Nemo 18:07, 22 November 2012 (UTC)
To my knowledge, I've compared them by the paragraph and removed sections when they were already or not longer useful. I've kept the rest (the page on Meta isn't empty). –Krinkletalk 18:33, 22 November 2012 (UTC)
In fact, you failed to do so and removed at least two sections which were almost completely missing anywhere else (two out of two sections that I looked for on this page in the last month). Surely it's a thankless task, I'm not accusing. :-) I'll try to check those sections better or maybe I'll add the text to the talk page for additional checks in case I don't manage to do it soon. Thanks, Nemo 18:59, 22 November 2012 (UTC)

Gadget:HotCat on

Hi, you updated the Gadget:HotCat on with the import from commons, but the problem is that it is not localised. We had localised the gadget on Would you mind if I revert your changes?--DhavalTalk 00:32, 19 December 2012 (UTC)

Sure, go ahead. However please participate on Commons to get translations from your wiki into Commons. That way people from will also get that translation when using other wikis :) –Krinkletalk 00:52, 19 December 2012 (UTC)


I asked Barras this and he suggested I ask you instead. I know there have been problems with the server hosting wbbot (cvn bot that monitors en.wikibooks in #cvn-wb-en) and whenever I am in the channel it isn't running. On occasion I ask for a restart, but I've been thinking it probably isn't worth having a separate channel for en.wikibooks as I am the only one who is ever there.

My thought was that as en.wikibooks is a Global Sysop wiki (it only has nine local admins of which only 2 or 3 are active) it might be more effective to have the RC feed from en.wikibooks going into the #cvn-sw channel instead. I'm not sure if this helps with the "old broken down server" problem, but it would help get more eyes on vandalism for what is a small project. What do you think? QU TalkQu 16:28, 17 January 2013 (UTC)

Sounds good. Done! Added it to RyuBot-sw3 / CVNBot8. –Krinkletalk 19:36, 19 January 2013 (UTC)
Thanks QU TalkQu 20:20, 19 January 2013 (UTC)

Bots project on wikilabs

Hi! I would like to move some of my code to wikilabs. How can I join the Bots project which is intended for such purposes, I guess? --DixonD (talk) 15:07, 8 March 2013 (UTC)

Ask User:MPelletier (WMF) (User:Coren) instead, he is the administrator of the Bots project and can help you migrate your bots. –Krinkletalk 23:59, 10 March 2013 (UTC)


Can you answer my question at Talk:Project portals/links? Thx :-) --Rogerhc (talk) 03:11, 19 March 2013 (UTC) template

Re: this edit and subsequent edits: that page is no longer protected. As I understand it, is dead. If this wiki page is still being read and output directly somewhere, it really should be re-protected. --MZMcBride (talk) 15:19, 19 March 2013 (UTC)

Fundraising translation feedback

Hey Krinkle,

I wanted to ask for your help. As you may be aware we have been running banners on many language wikis. We have a lot of new content this year and I really want to conduct a thorough review of our translations. This is a combination of feedback from the community, readers, donors as well as those with professional translator experience. This will help us ensure the highest quality of translations used in our messaging.

To help us out with this I wonder if you would be willing to give us feedback for Dutch using This Link

Simply follow the simple instructions on that page and if you have any questions feel free to contact me on my talk page.

Many Thanks

Jseddon (WMF) (talk) 18:45, 1 April 2013 (UTC)

Adapting Teahouse Question Button for The Wikipedia Adventure

Hey Krinkle! I looked for you at the Amsterdam Hackathon but didn't get a chance to meet you. I heard you were the guy to ask for Javascript insight... I would love a little help with something I'm working on.

I'm trying to adapt the Teahouse Question Gadget, which takes input from a question form and automatically edits that content onto the Teahouse Questions Page. It bypasses the edit screen and the need to click Save by using the API. The Gadget is defined here: EN:MediaWiki:Gadget-teahouse/content.js

I'd like to create a very similar functionality for The Wikipedia Adventure. I want to make a button (or url) that automatically edits the game player's talkspace with a preloaded template, also using the API. It's supposed to feel like they received a message from another user, when in fact they are just sending the message to themselves, and it will simply add preloaded content simulating an interaction; the need to use the API is so it maintains that appearance of actually receiving a message from someone else.

I would love a little guidance about how to adapt the Teahouse Gadget to this task. I'm curious what you think the best way to approach this is.

Cheers, Jake Ocaasi (talk) 19:54, 15 June 2013 (UTC)

User talk:Krinkle/Tools

Several suggestions and bug reports are still pending on that page. --Ricordisamoa 01:38, 2 July 2013 (UTC)

Any updates? --Ricordisamoa 21:59, 29 August 2013 (UTC)

Google Chrome - onveilig script

Google Chrome waarschuwde op voor een "onveilig script" dat dan maar niet geladen werd. Ik weet niet of je de melding van onveilig script kan wegwerken door kleine aanpassingen aan CVNSimpleOverlay?

[blocked] The page at ran insecure content from

Groeten, Smile4ever (talk) 13:54, 30 October 2013 (UTC)

Update nl:Gebruiker:Smile4ever/vector.js naar de laatste versie van de installatie (welke HTTPS-vriendelijk is). Zie User:Krinkle/Scripts/CVNSimpleOverlay. Om precies te zijn, importeer het van "//" in plaats van "". Ik heb dit zojuist voor je gedaan. –Krinkletalk 13:59, 30 October 2013 (UTC)

Possible gibberish?

I asked PiRSquared17 here about the SWMT IRC channel listing edits to wikis in scripts other than Latin (Greek, Devanagari, etc.) as "possible gibberish". PiRSquared told me I should contact you. Is there anything you can do to fix this? --AmaryllisGardener (talk) 14:41, 15 November 2013 (UTC)

Yes. The SWMT IRC bots use the CVNBot software (git repository). Please file an issue there. I might not be able to fix it myself, but I'll do my best to review proposed code changes. The source code is publicly available at I can assist in identifying the relevant code section. Someone familiar with programming could then submit a code change. –Krinkletalk 23:04, 15 November 2013 (UTC)

Your global editinterface rights

Hello, Krinkle. According to our records, you were last granted the global interface editor permission on 14 February 2011. We require all interface editors not using the right for WMF staff purposes to be reconfirmed to hold the right each year. Therefore, you will need to file a request to retain your rights at m:SRGP, or your right will be removed within one week. If this is in error, please let us know. Thanks, Rschen7754 22:19, 8 March 2014 (UTC)

That seems like useless bureaucracy. Legoktm (talk) 06:59, 10 March 2014 (UTC)
In response to this, we have had recent incidents where having such a reconfirmation has been useful (one incident where someone was not reconfirmed, and one where the right was removed for being long expired, but where there was controversy over whether they should continue to hold it due to other misconduct). Global interface edit allows you to edit anything, on big wikis, on closed wikis, etc. and thus it's particularly sensitive. Though I don't expect any problems for Krinkle. Face-smile.svg --Rschen7754 15:59, 10 March 2014 (UTC)