Manual:$wgFilterCallback/de-formal
From Linux Web Expert
File:OOjs UI icon alert-destructive.svg | <translate> This feature was removed completely in version <tvar name=ver>1.20.0</tvar>.</translate> |
<translate> Access</translate>: $wgFilterCallback | |
---|---|
Similarly (to $wgSpamRegex ) if this function returns true |
|
<translate> Introduced in version:</translate> | 1.3.0 (r4130) |
<translate> Deprecated in version:</translate> | 1.17.0 |
<translate> Removed in version:</translate> | 1.20.0 (Gerrit change 36733; git #ba5ee43a) |
<translate> Allowed values:</translate> | <translate> Unspecified</translate> |
<translate> Default value:</translate> | false |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
Details
Similar to $wgSpamRegex , you can get a function to do the job. The function will be given the following args:
- a Title object for the article the edit is made on
- the text submitted in the textarea (wpTextbox1)
- the section number.
The return should be boolean indicating whether the edit matched some evilness:
- true: block it
- false: let it through
Categories:
- MediaWiki configuration settings/de-formal
- MediaWiki configuration settings introduced in version 1.3.0/de-formal
- MediaWiki configuration settings deprecated in version 1.17.0/de-formal
- MediaWiki configuration settings removed in version 1.20.0/de-formal
- Pages with broken file links
- MediaWiki deprecated or obsolete features/de-formal
- Permission variables/de-formal