Page MenuHomePhabricator

Decide if a message accepts wikitext, etc. on definition, not on call
Closed, ResolvedPublic

Description

Author: ayg

Description:
We've gotten a lot of confusion recently about messages not accepting wikitext. It would
probably make more sense for the messages to decide whether they accept wikitext (or whether they
should be escaped, etc., etc.), as opposed to the caller. After all, it would be kind of
ridiculous for one call to allow wikitext and another not to.

This could then be leveraged during preview to show the message as it will actually appear, and
during edit to put a nice little message at the top of the screen. Also, maybe it would even
give us an excuse to start phasing out wfMsg and friends for something sensible: classed, with
coherent options, only one way to do one thing, parameters passed as arrays (maybe even keyed
parameters rather than just numbered?) and not with get_func_args().


Version: unspecified
Severity: enhancement

Details

Reference
bz8893

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:34 PM
bzimport set Reference to bz8893.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

*** This bug has been marked as a duplicate of bug 10507 ***