Page MenuHomePhabricator

Add nowiki support to jqueryMsg
Closed, ResolvedPublic

Description

Add <nowiki> support to jqueryMsg. It should have the same behavior for each of the four supported formats (plain/text/escaped/parse) as the server.


Version: 1.21.x
Severity: normal

Details

Reference
bz45173
Related Gerrit Patches:

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:39 AM
bzimport added a project: MediaWiki-JavaScript.
bzimport set Reference to bz45173.

Change 288330 had a related patch set uploaded (by Bartosz Dziewoński):
mediawiki.jqueryMsg: Implement <nowiki> support

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

Is it really wise to implement all of the strange wiki-syntax in mediawiki.jqueryMsg? Wouldn't it be better to pre-parse the messages on server-site and transfer the pre-parsed messages to mediawiki.jqueryMsg which only contain simple mark-up.

No, I am definitely not going to implement all of the strange syntax, especially when there are workarounds (for example, the '' and ''' syntax is something I am definitely not going to work on, when you can just use <i> and <b>). But I think it is worthwhile to have some kind of escaping in jqueryMsg. My use case is T134049; that one could also be solved by allowing HTML entities, but <nowiki> seemed easier to implement.

Parsing messages server-side would be great, but it's not a small project, and it would still require client-side code for messages that have parameters (a plain $1 in text would be easy, but syntax like {{PLURAL:$1}} is something I don't see an obvious solution for). But see T27349 about that (it even had some recent comments).

Change 288330 merged by jenkins-bot:
mediawiki.jqueryMsg: Implement <nowiki> support

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

kaldari closed this task as Resolved.May 16 2016, 7:42 PM