I know that I can find what categories a page is in using api.php? action=query&titles=Pagename&prop=categories but how do I get all the pages that have are members of a particular category? I'm guessing the format would be something like api.php?action=query&titles=Category:Foo&property=SOMEPROPERTY, assuming it's implemented.
Thanks,
Timothy
Timothy Hunt schreef:
I know that I can find what categories a page is in using api.php? action=query&titles=Pagename&prop=categories but how do I get all the pages that have are members of a particular category? I'm guessing the format would be something like api.php?action=query&titles=Category:Foo&property=SOMEPROPERTY, assuming it's implemented.
Thanks,
Timothy
api.php?action=query&list=categorymembers&cmcategory=Foo
In the future, please look at api.php?action=help first.
Roan Kattouw
On Oct 30, 2007, at 9:36 AM, Roan Kattouw wrote:
api.php?action=query&list=categorymembers&cmcategory=Foo
In the future, please look at api.php?action=help first.
Roan Kattouw
Thanks, I had looked at that, and having found the prop=categories, I was looking there, and missed that it was a list category.
Timothy
I should have also commented, this is not for any of the project's wikis, but our own internal wiki - using MediaWiki 1.11.0
Timothy On Oct 30, 2007, at 9:38 AM, Timothy Hunt wrote:
I know that I can find what categories a page is in using api.php? action=query&titles=Pagename&prop=categories but how do I get all the pages that have are members of a particular category? I'm guessing the format would be something like api.php?action=query&titles=Category:Foo&property=SOMEPROPERTY, assuming it's implemented.
Thanks,
Timothy
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
If I recall correctly it is action=query&list=categorymembers&cmtitle=category_name. See the help on http://www.mediawiki.org/wiki/Manual:API under the list section. Note that some lists had there arguments changed from titles -> <xy>title somewhere around the release of 1.11. I'm not sure whether that was actually before or after the release, but it may be that the parameters for 1.12 are nto the same as for 1.11
Bryan
On Oct 30, 2007 3:42 PM, Timothy Hunt timothy.hunt@intraisp.com wrote:
I should have also commented, this is not for any of the project's wikis, but our own internal wiki - using MediaWiki 1.11.0
Timothy
On Oct 30, 2007, at 9:38 AM, Timothy Hunt wrote:
I know that I can find what categories a page is in using api.php? action=query&titles=Pagename&prop=categories but how do I get all the pages that have are members of a particular category? I'm guessing the format would be something like api.php?action=query&titles=Category:Foo&property=SOMEPROPERTY, assuming it's implemented.
Thanks,
Timothy
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Bryan Tong Minh schreef:
If I recall correctly it is action=query&list=categorymembers&cmtitle=category_name.
It's not, it's cmcategory. Look at api.php?action=help , which is always right.
See the help on http://www.mediawiki.org/wiki/Manual:API under the list section. Note that some lists had there arguments changed from titles ->
The docs are incorrect then, I'll update them.
<xy>title somewhere around the release of 1.11. I'm not sure whether that was actually before or after the release, but it may be that the parameters for 1.12 are nto the same as for 1.11
I've checked, and it was cmcategory even when 1.11 was released.
Roan Kattouw
Ahh, knowing it is a list query helped me find the right part of the docs action=query&list=categorymembers&cmcategory=category_name is the format
Thanks,
Timothy On Oct 30, 2007, at 9:46 AM, Bryan Tong Minh wrote:
If I recall correctly it is action=query&list=categorymembers&cmtitle=category_name. See the help on http://www.mediawiki.org/wiki/Manual:API under the list section. Note that some lists had there arguments changed from titles -> <xy>title somewhere around the release of 1.11. I'm not sure whether that was actually before or after the release, but it may be that the parameters for 1.12 are nto the same as for 1.11
Bryan
On Oct 30, 2007 3:42 PM, Timothy Hunt timothy.hunt@intraisp.com wrote:
I should have also commented, this is not for any of the project's wikis, but our own internal wiki - using MediaWiki 1.11.0
Timothy
On Oct 30, 2007, at 9:38 AM, Timothy Hunt wrote:
I know that I can find what categories a page is in using api.php? action=query&titles=Pagename&prop=categories but how do I get all the pages that have are members of a particular category? I'm guessing the format would be something like api.php?action=query&titles=Category:Foo&property=SOMEPROPERTY, assuming it's implemented.
Thanks,
Timothy
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org