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&gplli... 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. 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&gplli... not show the link to: 1 E-10 m http://en.wikipedia.org/wiki/1_E-10_m
Thanks, Yishai http://en.wikipedia.org/wiki/1_E-10_m
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&gplli... 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_(Uni... 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&gplli... 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
Platonides schreef:
Seems to be missing from pagelinks. See http://en.wikipedia.org/w/index.php?title=Special:WhatLinksHere/Militia_(Uni... doesn't list 105th_Airlift_Wing
In that case, it's not an API bug.
Roan Kattouw (Catrope)
mediawiki-api@lists.wikimedia.org