I am not sure if the API supports querying for more than one category at a time.
One option you might want to consider is to add the Semantic extensions to your wiki. Then getting a list of articles that share two (or more) category is as simple as:
{{#ask: [[Category:X]][[Category:Y]]}}
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of ???????? ?????? Sadik Khalid Sent: Tuesday, October 19, 2010 12:24 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Category search
http://www.mediawiki.org/wiki/Apito find all pages which are in category X
use: http://www.mediawiki.org/w/api.php
example: http://en.wikipedia.org/w/api.php?action=query&list=categorymembers&...
for more info: http://www.mediawiki.org/wiki/API
On Tue, Oct 19, 2010 at 6:24 PM, Rudolf Henze rudo.henze@googlemail.comwrote:
I like to find all pages which are in category X and category Y. I need this often, so I dont like to do this manually. Do I need a extension for this? And if so, which one?
Best regards Rudolf
-- http://rettedeinefreiheit.de/ Gegen Freiheitsberaubung in Deutschland
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l