MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=abusefilterevalexpression
(main | abusefilterevalexpression)
- This module requires read rights.
- Source: Abuse Filter
- Licence: GPL-2.0-or-later
Evaluates an AbuseFilter expression.
Parameters:
- expression
The expression to evaluate.
- This parameter is required.
- prettyprint
Whether the result should be pretty-printed.
- Type: boolean (details)
Examples:
- Evaluate a simple expression
- api.php?action=abusefilterevalexpression&expression=lcase("FOO") [open in sandbox]
- Evaluate a simple expression, formatting the result
- api.php?action=abusefilterevalexpression&expression=lcase("FOO")&prettyprint=1 [open in sandbox]