User talk:Krinkle

From Meta, a Wikimedia project coordination wiki
Jump to: navigation, search

Contents

[edit] "Recat"s

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)

[edit] 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 krc.wikipedia.org 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)

[edit] RTRC

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)

[edit] TUSC token d91ffdb0844a98a5c75a437a55002df2

I am now proud owner of a TUSC account!

[edit] User:Krinkle/insertVectorButtons.js

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)

[edit] Blank pages fixed

https://bugzilla.wikimedia.org/show_bug.cgi?id=25938 Kaldari 03:14, 17 November 2010 (UTC)

[edit] photocommons

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)

[edit] Global usage

Hello!

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)

[edit] OrphanTalk2

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

[edit] Collapsible templates

Hi!

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)
Hi!!
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)

[edit] 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 nl.wiki 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)

[edit] Prettytable

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)

[edit] $ is undefined

Hi!

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
http://bits.wikimedia.org/pt.wikibooks.org/load.php?debug=false&lang=pt&modules=site&only=scripts&skin=vector&version=20110217T111420Z
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)

[edit] User:Krinkle/insertVectorButtons.js

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)

[edit] val() x text()

Hi!

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
javascript:alert($('#wpTextbox1').text())

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

I noticed that

javascript:alert($('#wpTextbox1').val())

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)

[edit] Collapsible tables bugs?

Hi!

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)

Hi,
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)

[edit] 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)

[edit] OrphanTalk bug

Hi, there's a bug in OrphanTalk. Instead of pointing to the wikis, all links point to http://toolserver.org/?curid=xxx. 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: http://toolserver.org/~krinkle/OrphanTalk2_old.php . 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)

[edit] 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 TranslateWiki.net, 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)

[edit] Template:Closed

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)

[edit] 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)

[edit] m:Tech ping

http://meta.wikimedia.org/w/index.php?title=Tech&diff=2674481&oldid=2661718 :-) --MZMcBride 22:46, 19 June 2011 (UTC)

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

[edit] 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 sr.wiki? 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)

[edit] MediaWiki:Gadget-SBHandler.js

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)

[edit] Highlighting

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)

[edit] Orphan-Tool

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)

[edit] Help

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

Thanks Rahul Deshmukh

mr:user:rahuldeshmukh101

[edit] 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):

pt.wikimedia.org -> wikimedia.pt and no centralauth
wikimedia.ch -> wiki moved to http://www.members.wikimedia.ch and not centralauth, member-only
be.wikimedia.org -> listed twice

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

Hi Snowolf,
Wikis on *.wikimedia.org (including chapter wikis) do support auto-creation actually. However the SUL login does not set a wildcard cookie for all .wikimedia.org domains for security reasons. It does set a wildcard cookie for *.wikipedia.org, *.wiktionary.org 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 wikimedia.ch and be.wikimedia: These defects are an upstream issue in the API. wikimedia.ch 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)

[edit] 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)

[edit] 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)

[edit] This...

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

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

[edit] Intuition bug?

Opening http://toolserver.org/~erfgoed/api/ 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)

Thanks,
Actually people are not supposed to embed TsIntuition from my account (toolserver.org/~krinkle/TsIntuition) but from the central Intuition account (toolserver.org/~intuition). 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)

[edit] InsertWikiEditorButton

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)

[edit] 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)

[edit] 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)

Personal tools
Namespaces

Variants
Actions
Navigation
Community
Beyond the Web
Print/export
Toolbox