Hello Jiang,

the API returns valid results it just has a default limit of 10 results
(you can see that by the fact a query-continue block is shown which
indicates how you can fetch further results). To get more than 10
results with action=query&prop=langlinks just append &lllimit=123 to
your query.
Eg. https://en.wikipedia.org/w/api.php?action=query&titles=Albert%
20Einstein&prop=langlinks&lllimit=500 shows all langlinks for the Albert
Einstein article.

Cheers,

Marius Hoch (hoo)


On Fri, 2013-02-22 at 10:25 -0800, Jiang BIAN wrote:
> Hi MediaWiki developers,
> 
> 
> I noticed that on en.wikipedia.org, interlanguage wikilinks are gone,
> possibly due to this change:
> http://blog.wikimedia.de/2013/02/13/wikidata-live-on-the-english-wikipedia/.
> 
> 
> Our project is still working with old interlanguage link (parsing
> "[[en:Proxy server]]"). Is there other way to get the interlanguage
> link besides talking with www.wikidata.org? 
> The example in API doc seems return a wrong
> result: https://en.wikipedia.org/w/api.php?action=query&titles=Albert%
> 20Einstein&prop=langlinks (Albert Einstein contains so many
> interlanguage link).
> 
> 
> 
> 
> Thanks
> 
> 
> 
> -- 
> Jiang BIAN
> 
> This email may be confidential or privileged.  If you received this
> communication by mistake, please don't forward it to anyone else,
> please erase all copies and attachments, and please let me know that
> it went to the wrong person.  Thanks.
> _______________________________________________
> Mediawiki-api mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api



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

Reply via email to