|
|
| /* This filter checks edit actions in user talk pages, except for trusted users */ | | /* This filter checks edit actions in user talk pages, except for trusted users */ |
|
| |
|
| /* Check if user is NOT in any trusted groups using boolean operations: | | /* Check if user is NOT in any trusted groups using boolean operations: |
| ! means "not" | | ! means "not" |
| in means "is found in the array" | | in means "is found in the array" |
| | means "or" */ | | | means "or" */ |
| !( | | !( |
| 'bot' in user_groups | | | 'bot' in user_groups | |
| 'sysop' in user_groups | | | 'sysop' in user_groups | |
| 'autoconfirmed' in user_groups | | 'autoconfirmed' in user_groups| |
| | 'confirmed' in user_groups |
| ) | | ) |
| /* AND (&) check if all these conditions are true: */ | | /* AND (&) check if all these conditions are true: */ |
| & ( | | & ( |
| /* Check if we're in user talk namespace (which is namespace 2) */ | | /* Check if we're in user talk namespace (which is namespace 2) */ |
| page_namespace == 2 | | page_namespace == 2 |
| /* AND check if links were added (more than 0 links) */ | | /* AND check if links were added (more than 0 links) */ |
| & added_links > 0 | | & added_links > 0 |
| ) | | ) |