Page MenuHomePhabricator

message preview on Special:AbuseFilter does not handle $2
Closed, ResolvedPublic

Description

The message shown to the user to warn him or let him know that the action is not possible supports two parameters, but the preview of the message on Special:AbuseFilter/1 does not handle this.

At the moment a action=render is used and after that the $1 is replaced with the description, but this way is not the best for $2, because that can also be used in wikilinks and there will be red with $2, but stay red when the $2 is replaced by the number. Needs use of the api here (api.php?action=query&meta=allmessages&ammessages=abusefilter-warning&amargs=description|1&amenableparser=&amlang=userlanguage)
But that can also be handled as a seperate bug (Feel free to clone)

Details

Reference
bz66351

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 22 2014, 3:10 AM
bzimport added a project: AbuseFilter.
bzimport set Reference to bz66351.
bzimport added a subscriber: Unknown Object (MLST).

Change 329214 had a related patch set uploaded (by Matěj Suchánek; owner: Matěj Suchánek):
[mediawiki/extensions/AbuseFilter@master] Use mw.Api.parse() for previewing warnings

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

matej_suchanek updated the task description. (Show Details)
matej_suchanek removed a subscriber: wikibugs-l-list.

Change 329214 merged by jenkins-bot:
[mediawiki/extensions/AbuseFilter@master] Use mw.Api.parse() for previewing warnings

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

matmarex closed this task as Resolved.Jun 26 2017, 7:24 PM
matmarex removed a project: Patch-For-Review.