Last modified: 2013-08-26 15:59:24 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 T53388, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51388 - mediawiki.jqueryMsg parse errors on [[User:$1|$1]]
mediawiki.jqueryMsg parse errors on [[User:$1|$1]]
Status: RESOLVED DUPLICATE of bug 47395
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.21.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-15 19:39 UTC by Krinkle
Modified: 2013-08-26 15:59 UTC (History)
5 users (show)

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


Attachments

Description Krinkle 2013-07-15 19:39:42 UTC
mw.messages.set('foo', 'Hello [[world]]');
mw.message('foo').parse();
> "Hello <a title="world" href="/wiki/world">world</a>"
 
mw.messages.set('bar', 'Hello [[world|World!]]');
mw.message('bar').parse();
> "Hello <a title="world" href="/wiki/world">World!</a>"
 
mw.messages.set('quux', 'Hello [[User:World|World]]');
mw.message('quux').parse();
> "Hello <a title="User:World" href="/wiki/User:World">World</a>"
 
mw.messages.set('foobar', 'You are now logged in as [[User:$1|$1]].');
mw.message('foobar').parse();
> "foobar: Parse error at position 25 in input: You are now logged in as [[User:$1|$1]]."
 
mw.message('foobar', 'X').parse();
> "foobar: Parse error at position 25 in input: You are now logged in as [[User:$1|$1]]."
Comment 1 Michael M. 2013-07-16 07:30:03 UTC
Works with mw.msg instead of .parse:

mw.messages.set('foobar', 'You are now logged in as [[User:$1|$1]].');
mw.msg('foobar', 'X');
> You are now logged in as [[User:X|X]].
Comment 2 Bartosz Dziewoński 2013-07-25 17:38:50 UTC

*** This bug has been marked as a duplicate of bug 47395 ***
Comment 3 Rainer Rillke @commons.wikimedia 2013-08-26 15:59:24 UTC
(In reply to comment #1)
>> You are now logged in as [[User:X|X]].
The expected result of .parse() is HTML not wikimarkup.

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


Navigation
Links