That's what I was looking for, thank you very much!
To: mediawiki-l@lists.wikimedia.org Date: Mon, 19 May 2014 19:30:45 +1000 From: billinghurst@gmail.com Subject: Re: [MediaWiki-l] Validating wiki text before saving
Sure. I would look to maybe give all the required templates the one id="..." as that makes the match for those easiest, otherwise you want to use contains_any
contains_any is good for something like !contains_any (user_groups, "sysop", "autopatrolled", ...)
At Commons, I did a simple one for main namespace that requires <gallery... just ensure that you test them for a while first, and if you have enough people watching your RC, then tags are useful.
Best way that I learnt was just looking at different Special:AbuseFilter and seeing what the competent were doing, and mimicking their components.
Here is a simple example of one such
article_namespace == 0 & (new_wikitext regex "[[[Cc]ategory:\s?\d{1,4}\sworks]]") & action = "edit" & !contains_any (user_groups, "sysop")
You will want to do something for things being new pages.
Regards, Billinghurst
On Mon, 19 May 2014 00:19:59 -0500, Arcane 21 arcane@live.com wrote:
I was wondering if there was a way to make a filter for the following:
New pages must have one of a series of templates (any of the templates will do, as long as at least one is present) and a category of some
sort.
This would only apply to users that are not autopatrolled, bots or administrators.
We'd like to have something on our wiki to deter new editors that don't follow the manual of style guidelines and so the filter would be to encourage them to do so, with the hope and intention of encouraging good editing.
I'm not very skilled in the use of AbuseFilter, so if someone could show me an example filter that would fit the above (if possible), it would be appreciated.
To: mediawiki-l@lists.wikimedia.org Date: Mon, 19 May 2014 12:53:52 +1000 From: billinghurst@gmail.com Subject: Re: [MediaWiki-l] Validating wiki text before saving
On Sun, 18 May 2014 19:37:25 -0400, Tom tom@hutch4.us wrote:
On May 16, 2014, at 10:01 PM, Max Semenik maxsem.wiki@gmail.com
wrote:
The more I think about it the better I like using this extension as a solution to Larry's question.
AbuseFilter is pretty flexible. There are already rules created and
being
used for missing Category(ies) from page edits. You can deny the save or warn and allow, plus tag the edit.
So all is needed is a filter to check all edits for a url with the
wiki's
domain name. A gentle reminder, you do not need to use this syntax
with
an
example of what to use. Or the hard road, not allowed please use
this.
Tom _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
An advantage of such an approach is that you can provide very specific, direct and customised information and guidance. English Wikisource has
an
abuse filter that checks a namespace for specific template that is required to be present, and where it is not, then guidance is given on the
format,
and links to specific help pages.
https://en.wikisource.org/wiki/Special:AbuseFilter/1 In fact this was created as a filter before we even thought about its
use
in abuse settings.
Sometimes it would nice to be able to cascade filters, or exclude on
the
basis of a previous filter, however, that is not yet possible.
Regards, Billinghurst
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l