Page MenuHomePhabricator

Parse/Render messages in mediawiki
Closed, DeclinedPublic

Description

We will parse messages PHP-side, before replacing parameters, and add the result (HTML potentially containing $1, etc.) to the parser output – most likely in mw.config under a name like dataBridgeMessages (analogous to dataBridgeConfig, but not a part of that). The JS-side code will then substitute the parameters without any further processing (but HTML-escaping them where necessary, of course)

Event Timeline

Change 553035 had a related patch set uploaded (by Matthias Geisler; owner: Matthias Geisler):
[mediawiki/extensions/Wikibase@master] bridge: add preparsed messages

https://gerrit.wikimedia.org/r/553035

Change 553035 abandoned by Matthias Geisler:
bridge: add preparsed messages

Reason:
For different approach

https://gerrit.wikimedia.org/r/553035

We decided to implement this differently (see T235154#5694141).