User talk:Kaldari

Jump to: navigation, search

Blank pages by SpecialBannerController ?[edit | edit source]

Hi Kaldari, Since the Fundraising has started I get quite a few blank pages here and there. The following I have gathered so far:

  • Mostly (if not only) occurs on wikis where I have not close-hidden the banner (I do a lot of cross-wiki stuff, there's a lot of wikis I visit I haven't visited before in the cache)
  • Mostly (if not only) occurs when the page is not cached
  • Special:BannerController&cache=/cn.js contains:
    document.writeln("\x3cstyle type=\"text/css\"\x3e\n#centralNotice .siteNoticeSmall {display:none;}\n#centralNotice.collapsed .siteNoticeBig {display:none;}\n#centralNotice.collapsed .siteNoticeSmall {display:block;}\n\x3c/style\x3e"); which is a use of document.write() that is not in an inline <script>-tag. (added in r72932)
  • I use Safari 5

Krinkle 18:46, 15 November 2010 (UTC)

Thanks. Bug filed: bug 25938. Kaldari 20:06, 15 November 2010 (UTC)
Fixed. Kaldari 03:13, 17 November 2010 (UTC)

Updated CentralNotice documentation[edit | edit source]


I am still "diving in" to find out how those things work, so I have have updated some documentation. I would be grateful if you could review that since I might have misunderstood something. I am particularly concerned about my changes to brion's initial design notes. Thanks!  « Saper // talk »  13:01, 12 March 2011 (UTC)

WikiLove To ar.wikipedia[edit | edit source]

Hello Kaldari. I noticed the new feature in English Wikipedia - Wikilove, I liked it. I also noticed that you're a member of the team of designers. Is it possible to transfer the WikiLove feature button to Arabic Wikipedia, and how? Thanks in advance. --Zack 22:00, 21 July 2011 (UTC)

Thanks, it does. --Zack 00:17, 23 July 2011 (UTC)

Hey Kaldari, WikiLove went Arabic finally, still one more thing: the Make Your Own tab (ar: آخر "Other") is not functioning, do you have any idea where does that come from? (see wikipedia:ar:user:Kaldari for instance, and wikipedia:ar:mediawiki:WikiLove.js for the script) --Zack 18:39, 29 July 2011 (UTC) When any of the four tabs is hovered, a small segment of the left side appears in the right side, is there something we can do about it? --Zack 19:10, 29 July 2011 (UTC)

Yeah, it has to do with the right-to-left handling. I'll see if I can fix it. Kaldari 21:46, 29 July 2011 (UTC)

Signature in defaultOptions.js[edit | edit source]

> It is recommended to simply copy this file to your MediaWiki:WikiLove.js and change it to your wishes.

When I did this, the four tildes got expanded into my user name, and hence all the barnstars have my name as the sender. What's the right way to paste defaultOptions.js into this page?

Ribbons[edit | edit source]

How about adding Ribbons to wikilove?

Problems on Commons[edit | edit source]

Hi, please see extension talk:WikiLove/Problems on Commons, thank you.  ■ MMXX  talk 12:24, 30 August 2011 (UTC)

Extension:WikiLove[edit | edit source]

It would be useful to be able to translate WikiLove for different language wikis or multilingual ones. It could be at translatewiki:. Ebe123 09:47, 27 September 2011 (UTC)

Sorry, my mistake. Ebe123 09:49, 27 September 2011 (UTC)

Possible problem regarding reusing the js file of WikiLove[edit | edit source]

I was not sure if its license was compatible with CC-BY-SA. Please take a look at Thread:Extension_talk:WikiLove/Reusing_the_default_WikiLove.js. --Whym 22:02, 11 October 2011 (UTC)

Good point, I'll see about changing the licensing. Kaldari 01:21, 12 October 2011 (UTC)

A kitten for you![edit | edit source]

Cute grey kitten.jpg

{{{2}}}Za stworzenie WikiLove

Gp8 18:39, 6 November 2011 (UTC)

A cookie for you![edit | edit source]

Choco chip cookie.png Here you are බිඟුවා 07:16, 26 November 2011 (UTC)

Soc 2012[edit | edit source]

Hi Ryan,

Jeroen suggested you're possibly the person to speak to regarding my 'begging' for some work to improve Wikinews' toolset via Summer of Code 2012. Since I, personally, have zero confidence I could get up-to-speed and implement something robust enough, I'm going cap-in-hand for any and all input/advice/suggestions I can get.

If you check the jottings linked-to from my userpage, you'll see Wikinews is trying rather hard to use FlaggedRevs as a 'quite formal' CMS review mechanism.

How I would put the current situation is to say that, "everyone on Wikinews is too close to the problems to see a goood, reusable, solution." However, the small userbase we have are all quite smart people, able to give quality feedback on suggestions and proposals, and not afraid to try new things. Wikinews was first to put Vector live as a default, and we would've taken FlaggedRevs before deWP, had the chance been given to us.

I'm pushing, if not outright begging, around the MediaWiki wiki for people to look at Wikinews as a testbed for bleeding edge stuff. Visual editor? We want it last week. More sophisticated forms-type stuff? Yes please!

Any help, or constructive criticism, you can provide is most welcome. --Brian McNeil (talk) 18:01, 9 March 2012 (UTC)

Hey Brian, I'm out of the country on vacation right now, but feel free to ping me sometime next week. Kaldari (talk) 17:32, 16 March 2012 (UTC)

Flickr Integration[edit | edit source]

I would like to work on Flickr integration with UploadWizard project and also on the automatic taxobox project as part of GSOC 2012, if possible. I am a first year undergraduate studying in India. I am experienced in PHP, MySQL and javascript. Please add me as a contact on gtalk.My ID is mssurajkaiga. Please excuse me if I have posted this on the wrong page as there was an error in your contact page.

Cool. I'm out of the country on vacation right now, but I'll try to get in touch with you next week. Kaldari (talk) 17:33, 16 March 2012 (UTC)

Application for GSoC[edit | edit source]

Hi Ryan,

I had mailed my proposal for ideas a couple of weeks back on the Wikitech-I mailing list, & based on a lot of suggestions & discussions, I created my User page for GSoC Ideas ([1]).

After reviewing the MediaWiki GSoC page ([2]), I reckon that any Gadget (javascript/jQuery) related projects would be mentored by you.

So, kindly let me know your suggestions on the list of ideas that I have in mind & their feasibility.

Also, could you please give me your email address?

Re: GSoC 2012[edit | edit source]


I am Vivek Kumar Bagaria from IITM, India. I am applying for GSoC 2012 for MediaWiki, as your interest include extension and gadget development, it would be awesome if you could comment on my Gsoc_Proposal which is an extension for multiple watchlists - Extension:WatchGroup.

Thank You.

GSoC Integrate "Upload from Flickr"[edit | edit source]

Hi Ryan,

I know you may have a runner for this idea but I'll keep doing my best to submit a good proposal. if possible I would like to receive some feedback from you. What I'm planning to do till tomorrow before deadline is: update some code I have on Google Code and try to fix a bug I entered yesterday [Bug 35702] (a bug I found in UploadWizard).

Thank you in advance!

WikiLove messages[edit | edit source]

Hi. Sumana suggested I ask you about a problem I noticed involving WikiLove and it's messages: On the 6th March I customised's WikiLove barnstar messages so that they weren't enwiki-specific (e.g. Wikilove-barnstar-tireless-desc). But looking at the UI for WikiLove now, the default messages are still there. Any idea what's going on here? Should a bug be put in bugzilla? --Krenair (talkcontribs) 19:53, 16 June 2012 (UTC)

See You have to configure the messages at MediaWiki:WikiLove.js on a per-wiki basis. Kaldari (talk) 17:13, 18 June 2012 (UTC)

WikiLove on it.Wikiquote[edit | edit source]

Hi. The Extension of Wikilove doesn't work on Italian Wikiquote. Why? Is there a reason for it? Thank you Raoli (talk) 01:41, 22 September 2012 (UTC)

Awesome![edit | edit source]

Echo on mediawiki looks great! Howief (talk) 04:07, 19 December 2012 (UTC)

Identifying disambiguation pages[edit | edit source]

I noticed your post at wikitech-l: Disambiguation features: Do they belong in core or in an extension?.

Nico rightly pointed out that core code already handles disambiguation pages specially in some ways (Special:Disambiguations, MediaWiki:Disambiguationspage). But that is a bit of a hack.

It occurs to me that a fundamentally more robust and flexible way to handle disambiguation pages would be to move them all into their own namespace.

For example, on this wiki, Administrators could redirect to Disambiguation:Administrators. Or, on enwiki, Bow and Bow (disambiguation) could both redirect to Disambiguation:Bow

This would make it much more consistent with the ordinary wikipage functions and internationalization, as well as making it easy to programmatically identify disambiguation pages without affecting the database schema.

Richardguk (talk) 14:45, 16 January 2013 (UTC)

That's a good idea. You should suggest it on wikitech-l and see what people think. Kaldari (talk) 15:57, 16 January 2013 (UTC)
Thanks. I've posted a proposal to wikitech-l. Can't stand the 1980s-style list interfaces, but I made an effort at your instigation! — Richardguk (talk) 17:27, 16 January 2013 (UTC)

A kitten for you![edit | edit source]

Cucciolo gatto Bibo.jpg

It just works, congratulations :-]

Antoine "hashar" Musso (talk) 19:16, 5 March 2013 (UTC)

tryt[edit | edit source]

User:Johnny Demo is rad! Kaldari (talk) 18:17, 4 April 2013 (UTC)

Echo test[edit | edit source]

testing! Newbie89 (talk) 18:26, 14 May 2013 (UTC)

Another test. Newbie89 (talk) 20:51, 14 May 2013 (UTC)

serious issue with Extension:Thanks[edit | edit source]


in the js file, ext.thanks.thank.js, line #53, you define an object member named "class".

this is a reserved word in IE, and cause the module to break (not runtime - this breaks at loadtime. you need to enclose the filed name in quotes, i.e., instead of class: 'something', you need to have 'class': 'something'. in order to test it, load the module using IE (e.g. on enwiki, or some other test wiki where it's enabled), and activate "compatibility mode". you should see the breakage as soon as you open a history page. peace - קיפודנחש (talk) 14:54, 13 June 2013 (UTC)

Thanks, should be fixed soon! 16:38, 13 June 2013 (UTC)

Plans for Extension:Disambiguator[edit | edit source]

Gday Kaldari. Would you please be able to either tell me, or point me towards the broader plans for the extension. I see that the latest tech news says that it has been deployed at enWP, but where else are the plans, and if there are bigger plans, what is the timetable? Thanks. — billinghurst sDrewth 13:36, 24 June 2013 (UTC)

Howdy billinghurst. The plan right now is to deploy Extension:Disambiguator to all the WMF wikis and then remove the old core code (probably in the next week or so). There is a bigger plan involving building a mobile app for fixing disambiguation links, but I don't know the details on that and can't find any documentation for it yet. I think Jared Zimmerman is the person to ask about it. Kaldari (talk) 20:38, 28 June 2013 (UTC)

About Extension:Disambiguator[edit | edit source]

Hello, I'm wikipedian from Indonesia. Why id:Special:DisambiguationPages is still empty?  Ę-oиė  >>>  ™ 06:48, 18 July 2013 (UTC)

I added the magic word to the template, but it is pending approval: Once that is approved it may take up to 3 days for the page to start populating. Kaldari (talk) 08:09, 18 July 2013 (UTC)
Oh, okay. :) It's approve now. Can't wait till it's populate. Thanks.  Ę-oиė  >>>  ™ 12:26, 18 July 2013 (UTC)

Anyway... why this two links have different content?

  1. w:Special:Disambiguations
  2. w:Special:DisambiguationPageLinks

On wp.en only the second link appear on Special page, but on the rest of wiki, both of that link appears like on but have same contens.

  1. id:Istimewa:Disambiguasi
  2. id:Istimewa:DisambiguationPageLinks

Can you fix it? Thanks in advance,  Ę-oиė  >>>  ™ 09:57, 20 July 2013 (UTC)

UploadWizard extension snapshot links[edit | edit source]

Hello, When trying to download the most recent build of UploadWizard from I can't seem to download anything other that the 1.20 release. I'm using the link labeled "download snapshot". I think something is misconfigured, but am I'm not sure how to point it to the right release. Just a head's up.

A barnstar for you![edit | edit source]

Rosetta Barnstar Hires.png The Rosetta Barnstar
Thanks for fixing up Manual:RevisionDelete! :-) MZMcBride (talk) 02:12, 9 October 2013 (UTC)
Thanks! Kaldari (talk) 02:16, 9 October 2013 (UTC)

Substitute for getRawText()[edit | edit source]

Hi, I am working on making Extension:InterwikiMap (specifically, InterwikiMap.classes.php) work properly for MW v1.21 and after. Now that Revision's getRawText() has been deprecated, what is the best substitute for $contents = $page->getRevision()->getRawText();

$contents = $page->getRevision()->getContent( Revision::RAW ); returns a Content object. How do I get the current revision text from that object? Thanks, Leucosticte (talk) 09:34, 17 October 2013 (UTC)

Leucosticte: It's a bit complicated now since a revision can consist of data other than WikiText (see WikiData). If your extension is only working with WikiText revisions, you can do the following... First, in any case you have to get both the Content and a ContentHandler from the Revision. ($revision->getContent( Revision::RAW ); $revision->getContentHandler();) Then you can use the ContentHandler::getContentText() convenience function on the Content object. Note that that function only works for WikiText. Anything else will just become serialized or throw an error. But if you know that you're only dealing with WikiText, it will work fine. Kaldari (talk) 17:52, 17 October 2013 (UTC)

Another suggestion I received is:

[12:27] <legoktm> leucosticte: $content->getNativeData()
[12:27] <legoktm> you should also probably do check that $content instanceof TextContent

getContentContext() has this code in it:

if ( $content instanceof TextContent ) {
	return $content->getNativeData();

So basically he's suggesting the long way of doing what you suggested. I also notice that it says at the Revision::getRawText() documentation, "use Revision::getContent( Revision::RAW ) or Revision::getSerializedData() as appropriate." I guess Revision::getSerializedData() (which uses Revision::loadText(), which in turn uses Revision::getRevisionText() on a database row from the text table) is pretty much the same as ContentHandler::getContentText()?

I'm not sure what the best way to explain all that would be in the code docs, but it seems to me there is room for improvement in making it so that devs can easily figure out what functions are best to use when. I've attempted to sum it up at Manual:WikiPage.php#Methods, although I may have oversimplified matters. Manual:Content.php and Manual:ContentHandler.php can probably use additional work too. Anyway, thanks for your help. Leucosticte (talk) 18:25, 17 October 2013 (UTC)

ContentHandler::getContentText() does some of that for you. If the content is TextContent, it does $content->getNativeData(). Otherwise, it tries to serialize it. And actually, I didn't even notice that it's a static function, so you don't even have to instantiate a ContentHandler (like I was suggesting). All you have to do is:
    $content = $page->getRevision()->getContent( Revision::RAW );
    $text = ContentHandler::getContentText( $content );
There might be a more "correct" way to do this, but if you just need to migrate your old code to work, that's the easiest way to do it. Kaldari (talk) 18:41, 17 October 2013 (UTC)

Wikivoyage feature development[edit | edit source]

Hi Ryan. I'm an admin over at Wikivoyage, and have been trying to organise the various features ideas that have been floating around. One of them was for a button that would be added to the article menu, which would allow users to designate that they've visited certain destinations. Those destinations would then be added to a list/map. More about the idea is here. I saw you developed the WikiLove extension, which has its own button in the menu, so was curious as to how this was done. Of course, if you're looking for a new project, we'd love to have your technical assistance, but I know you already do a lot across the WMF sites! Either way, let me know how you think best for us to proceed. Thanks, JamesA (talk) 13:26, 9 November 2013 (UTC)

@JamesA: I'm about to leave for India for a week. Let's discuss after I get back (Nov. 25 or after). Kaldari (talk) 18:36, 12 November 2013 (UTC)
No problem. Enjoy your trip. JamesA (talk) 09:54, 14 November 2013 (UTC)

Economist mention[edit | edit source]

Quick little nod - Did you know Extension: Thanks was all but explicitly mentioned in The Economist? 05:55, 3 March 2014 (UTC)

Re: Humanizing Wikipedia[edit | edit source]

Wanted page. :) (From mailarchive:wikitech-l/2015-February/080797.html.) The only mention of it is Wikimedia_Engineering/Report/2014/April#Mobile which doesn't make it sound like a "project". The only "project" we know about on the matter is Timestamp position modification: you may want to create a redirect and add MobileFrontend stuff there, or something. --Nemo 09:12, 15 February 2015 (UTC)

@Nemo_bis: I've brought up the lack of documentation around the "Humanizing Wikipedia" experiments with the mobile team. Hopefully, our documentation practices will be better going forward. The experiments we are working on currently are Gather and WikiGrok, which we've (hopefully) done a slightly better job of documenting. Kaldari (talk) 20:03, 27 February 2015 (UTC)

"Now with mustache"[edit | edit source]

May I politely ask what the fuck is this supposed to mean and why is it here? — Keφr 11:33, 27 February 2015 (UTC)

This should be undone. We already had several questions related to that strange image in IRC. Opinions ranged from people didn't like it to they feared got hacked. In fact, I myself belonged to the second group. -- 14:16, 27 February 2015 (UTC)
@Kephir: Just having some fun with the logo to celebrate the long-awaited addition of HTML templating to MediaWiki core. I've reverted the change, but probably still deserve a 24-hour block for the vandalism ;) Kaldari (talk) 18:54, 27 February 2015 (UTC)
Do not do this again. You should also remove your sysop flag anyway, which you granted yourself (as a staff action!) to delete a single page in November 2013. --Krenair (talkcontribs) 19:27, 27 February 2015 (UTC)
Blocked for 31 hours. You know better Kaldari. ^demon[omg plz] 19:31, 27 February 2015 (UTC)