[Mediawiki-l] Category search

Edward Swing deswing at vsticorp.com
Tue Oct 19 16:29:17 UTC 2010


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 at lists.wikimedia.org [mailto:mediawiki-l-bounces at 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/Api>to 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&cmtitle=Category:Physics&cmnamespace=0

for more info: http://www.mediawiki.org/wiki/API



On Tue, Oct 19, 2010 at 6:24 PM, Rudolf Henze <rudo.henze at googlemail.com>wrote:

> 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 at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>



-- 
സ്‌നേഹാന്വേഷണങ്ങളോടെ,
സാദിക്ക് ഖാലിദ്
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

This e-mail and any attachments are for the intended recipient(s) only and may contain proprietary, confidential material. If you are not the intended recipient, (even if the email address above is yours) do not use, retain, copy or disclose any part of this communication or any attachment as it is strictly prohibited and may be unlawful. If you believe that you have received this e-mail in error, please notify the sender immediately and permanently delete. This email may be a personal communication from the sender and as such does not represent the views of the company.


More information about the MediaWiki-l mailing list