Last modified: 2014-08-18 15:27:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T71575, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69575 - Provide all URL/path in meta=siteinfo&siprop=interwikimap
Provide all URL/path in meta=siteinfo&siprop=interwikimap
Status: NEW
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-14 21:31 UTC by Dr Brains
Modified: 2014-08-18 15:27 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dr Brains 2014-08-14 21:31:00 UTC
For now, the module <code>meta=siteinfo&siprop=interwikimap</code> give this :

<iw prefix="XX" local="" language="YYYY" url="https://XX.wikipedia.org/wiki/$1" protorel="" />

Could it be possible to give the other paths (available for example in Special:Version) ?

1.) Complete URLs :
* indexurl="https://XX.wikipedia.org/w/index.php"
* apiurl="https://XX.wikipedia.org/w/api.php"
* loadurl="//bits.wikimedia.org/XX.wikipedia.org/load.php"

2.) Or like <code>meta=wikibase</code> does :
* base="//XX.wikipedia.org" 
* scriptpath="/w" 
* articlepath="/wiki/$1"
+
* loadurl="//bits.wikimedia.org/XX.wikipedia.org/load.php"

Thank you.
Comment 1 Brad Jorsch 2014-08-15 11:54:54 UTC
The problem with both of those suggestions is that fetching that information even for other local sites isn't very easy, and not all sites in the interwiki map are local. That additional data may not even make sense with some entries in the interwiki map, as not all of them are even running MediaWiki.

The interwiki map does have a field "iw_api" which the API will output when populated, but it seems it's generally not populated.
Comment 2 Dr Brains 2014-08-16 19:30:02 UTC
Yes, I saw bug 28558 talking about this "iw_api" field, but this seems to have changed nothing.

The purpose is to have a list of all iw sites with allowed API acces with a centralauthtoken, and what would be needed is :
1) the API url, or at least the scriptpath ( "/w" )
2) witch sites are mediawiki powered and readable

N°1 is the major need.
For N°2, if the site is not mediawiki powered or not readable, the Ajax request just won't work, no big deal.

Am I wrong or in fact this interwikimap feature comes from Interwiki extension (even if I didn't see any API feature in the extension code) ?
Comment 3 Brad Jorsch 2014-08-18 15:27:39 UTC
(In reply to Dr Brains from comment #2)
> The purpose is to have a list of all iw sites with allowed API acces with a
> centralauthtoken, and what would be needed is :
> 1) the API url, or at least the scriptpath ( "/w" )
> 2) witch sites are mediawiki powered and readable

3) Which of these sites are actually in the same CentralAuth "group" as the current wiki.

> Am I wrong or in fact this interwikimap feature comes from Interwiki
> extension (even if I didn't see any API feature in the extension code) ?

You're wrong. meta=siteinfo&siprop=interwikimap is in core, basically dumping the contents of the 'interwiki' database table. The Interwiki extension appears to merely add a special page for interacting with this same database table.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links