Differentiate between interwiki and interlang links in siprop=interwikimap
Closed, ResolvedPublic

Description

Author: herd

Description:
If possible, please add an indicator for interlanguage links (links that form a portlet link rather than an inline link, if not on a talk page) in the interwiki map, for example

<iw prefix="aa" lang="" local="" url="http://aa.wikipedia.org/wiki/$1" />

I am told this happens auto-magically from the list of valid languages in /languages/Names.php (also depending on some settings), so possibly might need to compare the interwiki map entries to $wgLanguageNames and $wgExtraLanguageNames

Reason: It is not possible to *completely* predict, from siprop=interwikimap, whether a given interwiki prefix will become an inline link or language link, as some wikis may have older/newer versions of Names.php, or custom language names.


Version: 1.13.x
Severity: enhancement
URL: http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=interwikimap

bzimport added a project: MediaWiki-API.Via ConduitNov 21 2014, 10:10 PM
bzimport set Reference to bz14028.
bzimport created this task.Via LegacyMay 7 2008, 9:28 PM
Catrope added a comment.Via ConduitMay 9 2008, 9:42 AM

Fixed in r34499. The output looks like:

<iw prefix="de" local="" language="Deutsch" url="http://de.wikipedia.org/wiki/$1" />

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.