Hello,
I'm trying to use Wikipedia as a translation web service by using the language links from an article. I searched the documentation, but I only found a way to retrieve all language links from an article[1]. Is there any additional parameter to specify a single language and only get the title for that language? Or is there another simple solution?
[1] http://www.mediawiki.org/wiki/API:Query_-_Properties#langlinks_.2F_ll
I'm afraid there's no such parameter. You shall have to write an extension for this, using the XML parser.
-----Message d'origine----- De : mediawiki-api-bounces@lists.wikimedia.org [mailto:mediawiki-api-bounces@lists.wikimedia.org] De la part de Klaus Purer Envoyé : vendredi 19 mars 2010 14:33 À : mediawiki-api@lists.wikimedia.org Objet : [english 100%] [Mediawiki-api] Query single langlinks
Hello,
I'm trying to use Wikipedia as a translation web service by using the language links from an article. I searched the documentation, but I only found a way to retrieve all language links from an article[1]. Is there any additional parameter to specify a single language and only get the title for that language? Or is there another simple solution?
[1] http://www.mediawiki.org/wiki/API:Query_-_Properties#langlinks_.2F_ll
-- Klaus Purer This E-Mail contains a digital signature and can be verified with this PGP|GPG Public Key: http://web.student.tuwien.ac.at/~e0426223/key/kp.asc
2010/3/19 Marin Bernard marin@olivarim.com:
I'm afraid there's no such parameter. You shall have to write an extension for this, using the XML parser.
You can also just request the entire list and search it for the language you're interested in.
Roan Kattouw (Catrope)
mediawiki-api@lists.wikimedia.org