Thanks Eran and MZMcBride, I'm going to update WPCleaner to take advantage of this new possibility. It should result in less API requests and so a faster loading of pages for fixing disambiguation links. Great :)
Nico On Wed, Jul 10, 2013 at 8:33 AM, Eran Rosenthal <[email protected]> wrote: > Nice extension :) > > You may use generator to enjoy this new property. For example to check > whether there is a disambig link from SOME_TITLE > > en.wikipedia.org/w/api.php?action=query&generator=links&titles=SOME_TITLE&prop=pageprops&ppprop=disambiguation&gpllimit=500 > > (without this extension it was possible only with external tools such as > dablinks: http://toolserver.org/~dispenser/view/Dablinks) > > > > On Wed, Jul 10, 2013 at 9:00 AM, MZMcBride <[email protected]> wrote: > > > Nicolas Vervelle wrote: > > >Has the API been modified so that we can ask it if a page is a > > >disambiguation page ? > > > > Looks like it. > > > > Starting point: > > https://en.wikipedia.org/w/api.php > > > > List of available property names: > > > https://en.wikipedia.org/w/api.php?action=query&list=pagepropnames&ppnlimit > > =100 > > > > Look up properties of a particular title: > > > https://en.wikipedia.org/w/api.php?action=query&prop=pageprops&titles=Madon > > na > > <pageprops disambiguation="" wikibase_item="q1564372" /> > > > > https://en.wikipedia.org/wiki/Special:PagesWithProp can look up pages by > > property name. I'm not sure if there's an equivalent module for the Web > > API yet. > > > > The Web API has disambiguation-related query pages as well (including > > Special:DisambiguationPageLinks, which I'm only now learning exists). > > > > MZMcBride > > > > > > > > _______________________________________________ > > Wikitech-l mailing list > > [email protected] > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > > > _______________________________________________ > Wikitech-l mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
