Last modified: 2014-10-31 00:06:21 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 T74798, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72798 - link in API help for uselang "list of codes" doesn't show list of codes
link in API help for uselang "list of codes" doesn't show list of codes
Status: NEW
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-30 23:48 UTC by spage
Modified: 2014-10-31 00:06 UTC (History)
4 users (show)

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


Attachments

Description spage 2014-10-30 23:48:53 UTC
The new awesome HTML API output displays:

uselang   ... A list of codes may be fetched from action=query&meta=siteinfo&siprop=languages

The displayed query string is correct -- https://www.mediawiki.org/w/api.php?action=query&meta=siteinfo&siprop=languages would work. But the link in the HTML here is to <a href="/w/api.php?action=help&amp;modules=query%2Bsiteinfo">, which doesn't work, it instead generates help for meta=siteinfo.

Should be an easy fix to includes/api/ApiHelp.php , patch coming...
Comment 1 spage 2014-10-31 00:06:21 UTC
It's actually in includes/api/i18n/en.json:

apihelp-main-param-uselang": "Language to use for message translations. A list of codes may be fetched from [[Special:ApiHelp/query+siteinfo|action=query&meta=siteinfo&siprop=languages]]

so it's intentionally linking to more help (ApiHelp.php does a "Replace Special:ApiHelp links with links to api.php"), rather than executing the displayed API query as I expected. The latter seems more useful.

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


Navigation
Links