For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/zh/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/zh/llms-full.txt, and this page is available as Markdown at https://types-mediawiki-response.pages.dev/zh/api/extensions/abusefilters/ApiAbuseFilter.md.
  • 中文
  • Interface: ApiAbuseFilter

    Defined in: extensions/abusefilters.ts:33

    One abuse filter definition.

    Properties

    actions?

    optional actions?: string | string[]

    Defined in: extensions/abusefilters.ts:49

    The actions the filter performs. abfprop=actions.

    • Up to MediaWiki 1.46: the raw af_actions column, a comma-joined string such as "disallow,tag".
    • 1.47 onward: the same value split into a string[].

    comments?

    optional comments?: string

    Defined in: extensions/abusefilters.ts:52

    The filter's comments. abfprop=comments (withheld for private/protected filters).


    commentsredacted?

    optional commentsredacted?: true

    Defined in: extensions/abusefilters.ts:79

    true when comments was withheld from this viewer. A Flag. Before 1.47, a withheld comments was simply omitted.

    Since

    MediaWiki 1.47


    deleted?

    optional deleted?: boolean | ""

    Defined in: extensions/abusefilters.ts:95

    Whether the filter is soft-deleted. abfprop=status; same "" (1.43) vs real boolean (newer abfprop=flags) behaviour as enabled.


    description?

    optional description?: string

    Defined in: extensions/abusefilters.ts:38

    Human-readable filter description. abfprop=description.


    enabled?

    optional enabled?: boolean | ""

    Defined in: extensions/abusefilters.ts:92

    Whether the filter is enabled. abfprop=status.

    • 1.43: present as an empty string when the flag applies, and absent otherwise.
    • Newer builds (abfprop=flags): real booleans.

    hits?

    optional hits?: number

    Defined in: extensions/abusefilters.ts:55

    Number of matches (only when the viewer may see it). abfprop=hits.


    hitsredacted?

    optional hitsredacted?: true

    Defined in: extensions/abusefilters.ts:63

    true when hits was withheld from this viewer. A Flag. Before 1.47, a withheld hits was simply omitted.

    Since

    MediaWiki 1.47


    id?

    optional id?: number

    Defined in: extensions/abusefilters.ts:35

    Filter id.


    lasteditor?

    optional lasteditor?: string

    Defined in: extensions/abusefilters.ts:82

    Last editor of the filter. abfprop=lasteditor.


    lastedittime?

    optional lastedittime?: string

    Defined in: extensions/abusefilters.ts:85

    Last edit timestamp. abfprop=lastedittime.


    pattern?

    optional pattern?: string

    Defined in: extensions/abusefilters.ts:41

    The filter's regex/rule string. abfprop=pattern (withheld for private/protected filters).


    patternredacted?

    optional patternredacted?: true

    Defined in: extensions/abusefilters.ts:71

    true when pattern was withheld from this viewer. A Flag. Before 1.47, a withheld pattern was simply omitted.

    Since

    MediaWiki 1.47


    private?

    optional private?: boolean | ""

    Defined in: extensions/abusefilters.ts:98

    Whether the filter is private (hidden from the viewer). abfprop=private; same "" (1.43) vs real boolean (newer abfprop=flags) behaviour as enabled.


    protected?

    optional protected?: boolean | ""

    Defined in: extensions/abusefilters.ts:106

    Whether the filter's protected variables are hidden. Same "" (1.43) vs real boolean (newer abfprop=flags) behaviour as enabled.

    Since

    MediaWiki 1.43


    suppressed?

    optional suppressed?: boolean

    Defined in: extensions/abusefilters.ts:115

    Whether the filter is suppressed (oversight). A real boolean under abfprop=flags; the per-flag abfprop=suppressed alias is itself deprecated since 1.47.

    Since

    MediaWiki 1.47