Api gives full access to langlinks (interwiki) links - see http://www.mediawiki.org/wiki/API:Query_-_Page_Info#langlinks_.2F_ll_.28done...
On Dec 7, 2007 4:10 PM, Brion Vibber brion@wikimedia.org wrote:
Christensen, Courtney wrote:
Hi,
I'm trying to write an extension that will work basically like a "What Links Here?" between three wikis in a wiki-family. I saw something in the mailing list archives from Brion that got interwiki links stats by using this query: SELECT count(*) from cur where cur_text like "%[[la:%"; I'm guessing that is an old version and it would be looking at the revision or text tables now. Would I still need to basically parse the wikitext of a page to find the interwiki links?
In 1.7 and later, *interlanguage* links are stored in the 'langlinks' table. This will include interwiki links which are set up as local language links, but not those used for inline linking.
Some fiddling around between Parser.php and LinksUpdate.php could add records of those to another table, in theory.
Otherwise you'll have to stick to searching the source text, which I'm afraid is a bit hairier since 1.5, as text is stored in a separate table, potentially with compression etc.
-- brion vibber (brion @ wikimedia.org)
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l