User talk:Krinkle
User:Krinkle/XTemplate:User languageTemplate:User languageTemplate:User language
"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)
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)
- You're welcome. The Karachay-Balkar Wikipedia was created in March. —Pathoschild 12:49:34, 25 June 2010 (UTC)
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)
- 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
TUSC token d91ffdb0844a98a5c75a437a55002df2
I am now proud owner of a TUSC account!
Hi! =D
What about using jQuery(document).ready... instead of add addOnloadHook? Helder (talk)
- I am using that,
$j(function(){
is shorthand forjQuery(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
https://bugzilla.wikimedia.org/show_bug.cgi?id=25938 Kaldari 03:14, 17 November 2010 (UTC)
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)
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)
OrphanTalk2
Great work! Now we can delete those poor orphan pages faster again :) --Alhen 14:26, 2 February 2011 (UTC)
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)
- Ah, ok. Thanks for your quick answer. Have a nice Sunday! =D. Helder 15:26, 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)
Als je tijd over hebt....
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)
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)
$ 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)
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()
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 post –Krinkletalk 19:09, 5 March 2011 (UTC)
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)
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)