Large projects have their own templates for reporting filter errors, moreover, there is a gradation of patterns, for example, in Russian Wikipedia, the templates for soft filters and hard filters are differently designed (https://ru.wikipedia.org/wiki/Википедия:Фильтр_правок#Сообщения, https://en.wikipedia.org/wiki/Wikipedia:Edit_filter).
When you try to save, all entire message MediaWiki:Abusefilter-*** is displayed in red wrapper based on Html::errorBox. Regardless of the type, at the moment we have a red text color and a box in the box.
In the same time if you are trying to edit a page which protected by filter, no wrappers will appear.
- First, we need to make the same display: when you try to edit and when you try to save.
- Second, I think it will be useful to create the ability to customize this wrapper so that projects can design it as more convenient. As far as I understand, the wrapper functionality has been added for those who do not have such a number of templates. To save this, I think it is possible to add a page, for example MediaWiki:Abusefilter-wrapper, and you can change it to overwrite the wrapper. The second option is to create centrally individual messages that are dependent on the action: https://www.mediawiki.org/wiki/Extension:AbuseFilter/Actions.