Not finding all links with generator=links

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Not finding all links with generator=links

yishai goldstein
Hi,
generator=links doesn't seem to find all the links on the page.
For example: http://en.wikipedia.org/w/api.php?action=query&generator=links&gpllimit=500&titles=105th_Airlift_Wing doesn't return the link to: Militia (United States)

I don't know what is special about this link that it isn't returned. But I also found that links to redirects to the page itself are not shown.
For Example: http://en.wikipedia.org/w/api.php?action=query&generator=links&gpllimit=500&titles=100%20picometres does not show the link to: 1 E-10 m

Thanks,
Yishai

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: Not finding all links with generator=links

Platonides
yishai goldstein wrote:
> Hi,
> generator=links doesn't seem to find all the links on the page.
> For example:
> http://en.wikipedia.org/w/api.php?action=query&generator=links&gpllimit=500&titles=105th_Airlift_Wing 
> <http://en.wikipedia.org/w/api.php?action=query&generator=links&gpllimit=500&titles=105th_Airlift_Wing>
> doesn't return the link to: Militia (United States)
> <http://en.wikipedia.org/wiki/Militia_%28United_States%29>
> I don't know what is special about this link that it isn't returned.

For reference, that link is on the "National Guards" title after
expanding first infobox. Maybe it was treated a bit different for being
on the template. Seems to be missing from pagelinks.
See
http://en.wikipedia.org/w/index.php?title=Special:WhatLinksHere/Militia_(United_States)&limit=500 
doesn't list 105th_Airlift_Wing


> But I also found that links to redirects to the page itself are not shown.
> For Example:
> http://en.wikipedia.org/w/api.php?action=query&generator=links&gpllimit=500&titles=100%20picometres 
> <http://en.wikipedia.org/w/api.php?action=query&generator=links&gpllimit=500&titles=100%20picometres>
> does not show the link to: 1 E-10 m <http://en.wikipedia.org/wiki/1_E-10_m>

That may be intentional

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: Not finding all links with generator=links

Roan Kattouw
Platonides schreef:
> Seems to be missing from pagelinks.
> See
> http://en.wikipedia.org/w/index.php?title=Special:WhatLinksHere/Militia_(United_States)&limit=500 
> doesn't list 105th_Airlift_Wing
>
>  
In that case, it's not an API bug.

Roan Kattouw (Catrope)

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api