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)

Details

Related Gerrit Patches:
mediawiki/extensions/Wikibase : masterbridge: add preparsed messages

Event Timeline

Matthias_Geisler_WMDE created this task.
Matthias_Geisler_WMDE moved this task from To do to Doing on the Wikidata-Bridge-Sprint-10 board.

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

Lucas_Werkmeister_WMDE closed this task as Declined.Nov 27 2019, 11:16 AM

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