So, a disambiguation page still a article? Or not?
Chinese wikipedia: http://zh.wikipedia.org/
My blog: http://shizhao.org
twitter: https://twitter.com/shizhao

[[zh:User:Shizhao]]


2013/7/10 Nicolas Vervelle <[email protected]>:
> Good,
>
> Thanks to Eran answer, I know how to determine for all links in a page
> which one are to a disambiguation page.
> For WPCleaner, I also need to be able to retrieve the complete list of
> disambiguation pages through the API.
> I looked at the allpages request [1], but I didn't see a way to get only
> pages with this property set.
> Is there an other way ?
>
> Nico
>
> [1] http://www.mediawiki.org/wiki/API:Allpages
>
>
>
> On Wed, Jul 10, 2013 at 9:30 AM, Nicolas Vervelle <[email protected]>wrote:
>
>> 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

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to