User:松/Drafts/Extension:AbuseFilter/Rules format: Difference between revisions

no edit summary
(Marked this version for translation)
No edit summary
Line 276:
! <translate><!--T:64--> Notes</translate>
|-
| <translate><!--T:65--> Action</translate> || <code>action</code> || <translate><!--T:66--> string</translate> || <translate><!--T:67--> One of the following:</translate> edit, move, createaccount, autocreateaccount, delete, upload<ref name="upload"><translate><!--T:68--> The only variables currently available for file uploads (<tvar|1>action='upload'</>) are <tvar|2>user_*, page_*, file_sha1, file_size, file_mime, file_mediatype, file_width, file_height, file_bits_per_channel</> (the last five were only added since the release for <tvar|3>MediaWiki 1.27 [[gerrit:281503]]</>).</translate> <translate><!--T:69--> All the <tvar|1>file_*</> variables are unavailable for other actions (including <tvar|2>action='edit'</>).</translate></ref>, stashupload<ref><translate><!--T:70--> Since <tvar|1>MediaWiki 1.28 (https://[[gerrit.wikimedia.org/r/#/c/:295254/]])</></translate></ref>
|-
| <translate><!--T:442--> Unix timestamp of change</translate> || <code>timestamp</code> || <translate><!--T:184--> string</translate> || <translate><!--T:185--> <tvar|1>int(timestamp)</> gives you a number with which you can calculate the date, time, day of week, etc.</translate>
Line 352:
| {{int|abusefilter-edit-builder-vars-summary}} || <code>summary</code> || <translate><!--T:133--> string</translate> || <translate><!--T:134--> Summaries automatically created by MediaWiki ("New section", "Blanked the page", etc.) are created ''after'' the filter checks the edit, so they will never actually catch, even if the debugger shows that they should.</translate><ref><translate><!--T:135--> See <tvar|1>[[phabricator:T191722]]</></translate></ref>
|-
| <s>{{int|abusefilter-edit-builder-vars-minor-edit}}</s> || <s><code>minor_edit</code></s> || <s><translate><!--T:136--> string</translate></s> || <translate><!--T:137--> Disabled, and set to false for all entries between 2016 and 2018.</translate><ref><translate><!--T:138--> Deprecated with [[<tvar|1>httpsgerrit://gerrit.wikimedia.org/r/#/c/296268/</> |this commit]] and disabled with [[<tvar|2>httpsgerrit://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/AbuseFilter/+/481544/</> |this one]].</translate></ref>
|-
| {{int|abusefilter-edit-builder-vars-old-wikitext}} || <code>old_wikitext</code> || <translate><!--T:139--> string</translate> ||<translate><!--T:140--> This variable can be very large.</translate> <translate><!--T:141--> Consider using <tvar|1><code>removed_lines</code></> if possible to improve performance.</translate>