https://bugzilla.wikimedia.org/show_bug.cgi?id=51388

       Web browser: ---
            Bug ID: 51388
           Summary: mediawiki.jqueryMsg parse errors on [[User:$1|$1]]
           Product: MediaWiki
           Version: 1.21.0
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: JavaScript
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: krinklem...@gmail.com
                CC: krinklem...@gmail.com, matma....@gmail.com,
                    tpars...@wikimedia.org
    Classification: Unclassified
   Mobile Platform: ---

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]]."

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to