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

Content added Content deleted
(→‎All variables: +file_sha1 and file_size)
(→‎All variables: tweak file vars)
Line 117: Line 117:
| Unix timestamp of change || <code>timestamp</code> || string || int(timestamp) gives you a number with which you can calculate the date, time, day of week, etc.
| Unix timestamp of change || <code>timestamp</code> || string || int(timestamp) gives you a number with which you can calculate the date, time, day of week, etc.
|-
|-
| Uploaded file [[SHA1]] || <code>file_sha1</code> || ||
| {{int:abusefilter-edit-builder-vars-file-sha1}} || <code>file_sha1</code> || ||
|-
|-
| Uploaded file size || <code>file_size</code>[https://gerrit.wikimedia.org/r/#/c/183430/] || ||
| {{int:abusefilter-edit-builder-vars-file-size}} || <code>file_size</code> || integer || The file size in bytes
|}
|}