Extension talk:AbuseFilter/RulesFormat

From MediaWiki.org
Jump to: navigation, search

[edit] variables overview

is there an overview of those variables like MOVED_TO_TEXT, ADDED_LINES, SUMMARY, USER_GROUPS etc.? -- seth 17:55, 28 January 2009 (UTC)

[edit] Note regarding formatting conditions

I don't know if this will help anyone, but I ran into a problem formatting some conditions. I wanted to select all non-minor edits and discovered that, while '= "1"' is honored, '="0"' is not when it comes to asserting actions on live edits, even though testing the filter using that syntax works fine. Therefore, the safest syntax to use is '= true' and '= false'. Again, probably just my duncery, but perhaps it will help someone else. Cheers. Thorncrag 18:47, 6 September 2010 (UTC)

  • Another one I discovered, if you want to apply to file uploads, or to exclude from uploads use something like: (action != 'upload'). Thorncrag 19:57, 7 September 2010 (UTC)
Both handy - thanks Thorncrag. --Chriswaterguy 11:42, 7 December 2011 (UTC)

[edit] Concatenation

How can I concatenate strings? --Octahedron80 05:32, 13 May 2011 (UTC)

You can just use a +. So "some text" == "foo bar" is the same as "some text" == "foo" + " bar". 207.71.53.42 21:51, 2 June 2011 (UTC)
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox