https://bugzilla.wikimedia.org/show_bug.cgi?id=31260
Web browser: ---
Bug #: 31260
Summary: Add support for rawParams to mw.message
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Javascript
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Just like wfMessage('foo')->rawParams($x)->escaped() works, we also need this
in javascript.
For example when wanting to replace $1 with a hyperlink, we currently have to
do something like this:
mw.message( msgkey )
.escaped()
.replace( /\$1/,
mw.html.element( 'a', { id: 'foo' }, mw.msg( 'bar' ) )
);
Which should become:
mw.message( msgkey )
.rawParams(
mw.html.element( 'a', { id: 'foo' }, mw.msg( 'bar' ) )
);
.escaped();
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l