[Mediawiki-api] categorymembers as both generator and list

Magnus Manske magnusmanske at googlemail.com
Mon Jul 16 09:18:43 UTC 2007


Hi,

I want use the api to list all pages that are in any of the categories
which are in Category:Category_redirects on commons. So I tried

http://commons.wikimedia.org/w/api.php?action=query&generator=categorymembers&gcmcategory=Category_redirects&list=categorymembers&gcmnamespace=14

but apparently it's not that easy...

IMHO "list=categorymembers" should not insist on "cmcategory", but
rather try to fall back to the generator list.

Additionally, the 500 limit could be imposed on the actual output; as
the generator is internal, it could have 5000 or unlimited (depending
on context).

Cheers,
Magnus



More information about the Mediawiki-api mailing list