Last modified: 2014-11-03 20:15:01 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 T74875, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72875 - Superfluous -{R| }- appears on https://zh.wikipedia.org/w/api.php around links
Superfluous -{R| }- appears on https://zh.wikipedia.org/w/api.php around links
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-02 08:01 UTC by Liangent
Modified: 2014-11-03 20:15 UTC (History)
13 users (show)

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


Attachments

Description Liangent 2014-11-02 08:01:20 UTC
For example:

MediaWiki API help
------------------

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: -{R|https://www.mediawiki.org/wiki/API}-
Comment 1 Andre Klapper 2014-11-02 12:46:43 UTC
Hi Liangent. Thanks for taking the time to report this!
This particular problem has already been reported into our bug tracking system, but please feel free to report any further issues you find.

*** This bug has been marked as a duplicate of bug 52661 ***
Comment 2 Brad Jorsch 2014-11-03 20:15:01 UTC
This doesn't look like a duplicate of that bug to me. Bug 52661 is about the parser interpreting bits of the variant stuff as unrelated wikitext, such as treating the pipe in "[[File:Foobar.jpg|-{R|caption}-]]" as separating image parameters. This is about variant markup making it through into the HTML output.

I note that the code paths involved here (mainly RequestContext::msg()) result in the Message object having the "interface" flag true. And if I add ->setInterfaceMessageFlag( false ) before ->parse(), it goes away. And if I add a bare external link to a message such as MediaWiki:Category-empty/zh and hit Category:DoesNotExist with uselang=zh, I see the same there.

So the root cause here seems to be that messages with 'interface' flag set aren't having the variant stuff properly processed via OutputPage. But I'm not sure whether the solution is "Those shouldn't have the 'interface' flag set since they aren't interface" or something else; I'm going to reassign this to the "Internationalization" component to get some feedback from people who know more about i18n in MediaWiki.

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


Navigation
Links