Hi all, using the mediawiki API, I can list the pages in a given category. For example:
http://en.wikipedia.org/w/api.php?action=query&list=categorymembers&...
returns:
<?xml version="1.0"?> <api> <query> <categorymembers> <cmpageid="22939"ns="0"title="Physics"/> <cmpageid="24489"ns="0"title="Outline of physics"/> <cmpageid="1653925"ns="100"title="Portal:Physics"/> <cmpageid="3445246"ns="0"title="Glossary of classical physics"/> <cmpageid="22950086"ns="0"title="Britney Spears' Guide to Semiconductor Physics"/> <cmpageid="2129107"ns="14"title="Category:Fundamental physics concepts"/> <cmpageid="4769321"ns="0"title="Timeline of fundamental physics discoveries"/> <cmpageid="694942"ns="14"title="Category:Physicists"/> <cmpageid="1198"ns="0"title="Acoustics"/> <cmpageid="1913676"ns="14"title="Category:Applied and interdisciplinary physics"/> </categorymembers> </query> <query-continue> <categorymemberscmcontinue="Atomic, molecular, and optical physics|"/> </query-continue> </api>
I now want to limit my query to only one MW namespace. I have tried to use the cmnamespace parameter. But
http://en.wikipedia.org/w/api.php?action=query&list=categorymembers&...
returns the same result. How should I use this namespace parameter ?
Pierre
.
On Sun, Jul 19, 2009 at 10:34:10AM +0000, Pierre LINDENBAUM wrote:
I now want to limit my query to only one MW namespace. I have tried to use the cmnamespace parameter. But
http://en.wikipedia.org/w/api.php?action=query&list=categorymembers&...
returns the same result. How should I use this namespace parameter ?
You should bug someone with appropriate access to sync r53304.[1] Domas broke cmnamespace in r53052[2] and synced that live immediately, but no one has yet synced the fix.
[1] http://www.mediawiki.org/wiki/Special:Code/MediaWiki/53304 [2] http://www.mediawiki.org/wiki/Special:Code/MediaWiki/53052
2009/7/19 Brad Jorsch b-jorsch@northwestern.edu:
You should bug someone with appropriate access to sync r53304.[1] Domas broke cmnamespace in r53052[2] and synced that live immediately, but no one has yet synced the fix.
To clarify this a little bit: the cmnamespace parameter has been disabled on Wikipedia for performance reasons. Currently it's simply being ignored.
Roan Kattouw (Catrope)
mediawiki-api@lists.wikimedia.org