User talk:Yurik/Query API/Completed Requests: Difference between revisions

Content deleted Content added
mNo edit summary
m moved from parent
Line 64:
Another, much lower priority request, would be the ability to set "blfilter" for the "backlinks" query to redirects only. Also, if there would be a way to implement namespace filtering for backlinks, I would love you to death :). [[User:AmiDaniel|AmiDaniel]] ([[User talk:AmiDaniel|talk]]) 08:46, 20 June 2006 (UTC)
: Done. Start loving on both counts. --[[User:Yurik|Yurik]] 20:49, 24 June 2006 (UTC)
 
== imageinfo for commons images ==
 
Could imageinfo be made to work for commons images? It'd also be nice if there was a flag in the output indicating whether an image was a commons image (and perhaps even if there is a commons image available with the same name, if not). I have a feeling that this is a duplicate feature request, so apologies if this is the case. [[User:Lupin|'''Lupin''']]|[[User_talk:Lupin|talk]]|[[Wikipedia:Tools/Navigation popups|popups]] 19:39, 3 July 2006 (UTC)
: Done in a slightly different way - you may add '''iishared''' parameter which will tell you if images with the same names exist in the shared repository (commons), together with history. If both local and shared image info is present, local will always take precedence in wiki, but information about both will be returned. --[[User:Yurik|Yurik]] 05:24, 25 July 2006 (UTC)
::Thanks, this is very nice! Unfortunately, it seems to fail if the image only exists on the commons, such as [[:Image:Green-eyed cat.jpg]] which gives [http://en.wikipedia.org/w/query.php?what=imageinfo&titles=Image:Green-eyed%20cat.jpg&iishared]. I'd like to still get the shared image info in this case. [[User:Lupin|'''Lupin''']]|[[User_talk:Lupin|talk]]|[[Wikipedia:Tools/Navigation popups|popups]] 14:32, 25 July 2006 (UTC)
: Weird bug - [http://en.wikipedia.org/w/query.php?what=imageinfo&titles=Image:Green-eyed%20cat.jpg|Image:Alphafstconvent.jpg&iishared] returns the info you need, simply because there is another page that exists in local. Will fix it soon. --[[User:Yurik|Yurik]] 15:03, 25 July 2006 (UTC)
 
One other thing: is it possible to retrieve the page content for commons image pages? [[User:Lupin|'''Lupin''']]|[[User_talk:Lupin|talk]]|[[Wikipedia:Tools/Navigation popups|popups]] 14:33, 25 July 2006 (UTC)
: Yes, I can get any commons data, although i would be duplicating http://commons.wikimedia.org/w/query.php --[[User:Yurik|Yurik]] 15:03, 25 July 2006 (UTC)
::Indeed, but the problem is that javascript tools running on en.wikipedia.org can't access data on other hosts without arcane trickery. This is what lies behind the interwiki request, too. [[User:Lupin|'''Lupin''']]|[[User_talk:Lupin|talk]]|[[Wikipedia:Tools/Navigation popups|popups]] 16:20, 25 July 2006 (UTC)
 
::: Done. Use proxylang=xxx and/or proxysite=xxx to get alternative language and/or site. Commons is considered a language (figures...). The user always gets anon status on those. --[[User:Yurik|Yurik]] 06:08, 26 July 2006 (UTC)
 
==Subcategories==
Would it be possible to list only the subcategories or only the articles of a category? Now these seem to be mixed. --[[User:HartzR|HartzR]] 09:34, 5 July 2006 (UTC)
 
: Done. --[[User:Yurik|Yurik]] 00:15, 24 July 2006 (UTC)
 
 
== Category downloading ==
 
I have found this strange behaviour: in order to download a category, one uses the "category next" tag as the cpfrom field to get the next chunk of the category; I have found that, if spaces are replaced with underscores in this tag (instead of %20), one gets most of the category, but misses some elements: In particular, there is exactly one missing element for each chunk ([[User:Paolo Liberatore|Liberatore]], [[User talk:Paolo Liberatore|2006]]). 20:26, 13 July 2006 (UTC)
: cpfrom should be treated as an [[opaque]], without any modifications. Please do not modify it, as its value may change at any moment. --[[User:Yurik|Yurik]] 22:18, 13 July 2006 (UTC)
::Makes perfectly sense. Thanks! ([[User:Paolo Liberatore|Liberatore]], [[User talk:Paolo Liberatore|2006]]). 10:42, 14 July 2006 (UTC)
 
== Query user preferences ==
 
I'd like to be able to find out the logged in user's Date and time preferences. In particular, the time zone offset would be useful as it would let me generate a preview of history pages using local times. If possible, it'd be good to be able to query an arbitrary user preference value. [[User:Lupin|'''Lupin''']]|[[User_talk:Lupin|talk]]|[[Wikipedia:Tools/Navigation popups|popups]] 17:24, 16 July 2006 (UTC)
: I haven't looked at the user preferences yet, but should not be too hard. See the next response re apt. :) --[[User:Yurik|Yurik]] 14:37, 19 July 2006 (UTC)
:: Done. --[[User:Yurik|Yurik]] 05:30, 24 July 2006 (UTC)
 
== Category fields ==
 
Would it be possible to add cl_sortkey and cl_timestamp to the output of the category list? I think this would allow me to start up [[WP:PROD]] again on the toolserver (albeit with more caching, but it still might be valuable). --[[User:Interiot|Interiot]] 04:48, 19 July 2006 (UTC)
: Possible - the moment i get a few spare minutes. Finding an apartment in Manhattan is a full time job. --[[User:Yurik|Yurik]] 14:36, 19 July 2006 (UTC)
:: Done. --[[User:Yurik|Yurik]] 00:16, 24 July 2006 (UTC)
:::Wow, thanks! Does it take a little while for the change to go live? (and the change will appear under what=category, right?) --[[User:Interiot|Interiot]] 05:44, 24 July 2006 (UTC)
:::: Yep, should be available whenever shell people push it out. It is under category, correct. --[[User:Yurik|Yurik]] 06:03, 24 July 2006 (UTC)
 
== Possible normalization bug ==
http://cs.wikipedia.org/w/query.php?what=links&titles=Wikipedia:Disambiguation%20Templates should return the same result as http://cs.wikipedia.org/w/query.php?what=links&titles=Wikipedie:Disambiguation%20Templates . --[[User:Yurik|Yurik]] 08:06, 25 July 2006 (UTC)
: Resolved - It should have been http://cs.wikipedia.org/w/query.php?what=links&titles=Project:Disambiguation%20Templates --[[User:Yurik|Yurik]] 15:11, 25 July 2006 (UTC)
 
== Interwiki page content ==
 
I'd like to be able to retrieve page content for interwiki links. [[User:Lupin|'''Lupin''']]|[[User_talk:Lupin|talk]]|[[Wikipedia:Tools/Navigation popups|popups]] 14:35, 25 July 2006 (UTC)
: Plese explain. --[[User:Yurik|Yurik]] 15:09, 25 July 2006 (UTC)
::For example, I'd like something like this: http://en.wikipedia.org/w/query.php?what=content&titles=Main%20Page&dbname=fr_wiki to return the main page from the French wikipedia. [[User:Lupin|'''Lupin''']]|[[User_talk:Lupin|talk]]|[[Wikipedia:Tools/Navigation popups|popups]] 16:17, 25 July 2006 (UTC)
::Or better yet, http://en.wikipedia.org/w/query.php?what=content&titles=fr:Main%20Page [[User:Lupin|'''Lupin''']]|[[User_talk:Lupin|talk]]|[[Wikipedia:Tools/Navigation popups|popups]] 16:22, 25 July 2006 (UTC)
 
:::You can just use http://fr.wikipedia.org/w/query.php?what=content&titles=Main%20Page [[User:Bluemoose|Martin]] 16:25, 25 July 2006 (UTC)
::::True, but this is inaccessible to a javascript tool running on en.wikipedia.org because of [http://www.w3.org/TR/XMLHttpRequest/#security security restrictions]. [[User:Lupin|'''Lupin''']]|[[User_talk:Lupin|talk]]|[[Wikipedia:Tools/Navigation popups|popups]] 16:43, 25 July 2006 (UTC)
 
: Lupin, post this on the wiki email list - I am not sure we want to allow one site to communicate with another site. Even though commons resides on the same server, all sites are different, have different settings and language files. I cannot easily access that information, so I would have to make query api into a proxy to call another query api. I am not sure the servers allow outbound connections, or that one site waiting for another site would not kill the overall server performance. --[[User:Yurik|Yurik]] 20:25, 25 July 2006 (UTC)
 
:: Done. Use proxylang=xxx and/or proxysite=xxx to get alternative language and/or site. The user always gets anon status on those. --[[User:Yurik|Yurik]] 06:05, 26 July 2006 (UTC)