Last modified: 2014-02-28 13:06:26 UTC
Currently, this parameter works on links such as https://pt.wikipedia.org/wiki/Special:AbuseFilter/examine/43169214?testfilter=%27FOO%27+%3D%3D%3D+%27BAR%27 but doesn't work on https://pt.wikipedia.org/wiki/Special:AbuseFilter/tools?testfilter=%27FOO%27+%3D%3D%3D+%27BAR%27 or https://pt.wikipedia.org/wiki/Special:AbuseFilter/examine?testfilter=%27FOO%27+%3D%3D%3D+%27BAR%27 It is useful for linking to a preloaded test/example, when explaining something for other abusefilter users.
Also, it would be helpful to allow the content of the textarea to be preloaded, as we can do e.g. on https://en.wikipedia.org/wiki/Special:ExpandTemplates?wpInput=EXAMPLE In this case, "wpInput" is the value of the "id" and the "name" attributes of the field, so for consistency, on https://test.wikipedia.org/wiki/Special:AbuseFilter/test and https://test.wikipedia.org/wiki/Special:AbuseFilter/examine the parameter should be "wpTestFilter" and on https://test.wikipedia.org/wiki/Special:AbuseFilter/tools it should be "wpTestExpr".
Not sure if this is "easy" enough for a new contributor who needs to find the right place in the code. Also, comment 1 might be a separate request.
Well, I added the other parameter here as well because by looking into the related ExpandTemplates code https://github.com/wikimedia/mediawiki-extensions-ExpandTemplates/blob/f277894539831417039d97ba4f38a44519fe17a2/ExpandTemplates_body.php#L20-L52 I think it is just a few extra lines in a single part of the code, probably this: https://github.com/wikimedia/mediawiki-extensions-AbuseFilter/blob/f7ed4cffeec645124f6cc3111f35d00d9029f839/special/SpecialAbuseFilter.php#L21-L37