Hi, is there any way to get the interwiki links from a page. It seems, neither prop=extlinks nor prop=links are able to find these.
I think it would be nice for instance to have links from Wikisource texts to Wikipedia articles and hence search for story locations etc in a book.
Regards Alex
2010/3/28 Alexrk alexrk2@yahoo.de:
Hi, is there any way to get the interwiki links from a page. It seems, neither prop=extlinks nor prop=links are able to find these.
There's prop=langlinks, but that only lists interlanguage links. Interwiki links can't be listed by the API because they're not tracked in the database.
Roan Kattouw (Catrope)
You may also define new languages using the $wgExtraLanguageNames variable in LocalSettings.php. Language names may be more than 3 characters. If you define a new language name for each interwiki prefix, your interwiki links shall be considered like language links. On the other hand, this means they will appear in the "other languages" box. Up to you.
You may also use some kind of extension to fetch raw wiki text from the distant wiki and extract interwiki links from it.
M.B.
-----Message d'origine----- De : mediawiki-api-bounces@lists.wikimedia.org [mailto:mediawiki-api-bounces@lists.wikimedia.org] De la part de Roan Kattouw Envoyé : dimanche 28 mars 2010 15:00 À : MediaWiki API announcements & discussion Objet : [english 100%] Re: [Mediawiki-api] Get interwiki links from page
2010/3/28 Alexrk alexrk2@yahoo.de:
Hi, is there any way to get the interwiki links from a page. It seems, neither prop=extlinks nor prop=links are able to find these.
There's prop=langlinks, but that only lists interlanguage links. Interwiki links can't be listed by the API because they're not tracked in the database.
Roan Kattouw (Catrope)
_______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org