Thanks,

This function (pageswithprop) is not listed in https://www.mediawiki.org/wiki/API:Lists
that's why I didn't find it when I was looking.

Nico


On Wed, Jul 10, 2013 at 3:19 PM, Brad Jorsch (Anomie) <bjorsch@wikimedia.org> wrote:
On Wed, Jul 10, 2013 at 6:54 AM, Nicolas Vervelle <nvervelle@gmail.com> wrote:
>
> With the new extension, Disambiguator, I was wondering how to retrieve
> the list of all disambiguation pages in a wiki.
> Is there a way to retrieve the list of pages having the disambiguation
> property set ?

The disambiguation property is the same as any other page property, so
you can retrieve the list of pages with list=pageswithprop, e.g.
https://en.wikipedia.org/w/api.php?action=query&list=pageswithprop&pwppropname=disambiguation

Also, you can check if a page has the property using prop=pageprops,
optionally with &ppprop=disambiguation


--
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation

_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api