|
|
| This filter blocks edits that add links to user pages. Links on user pages are almost always spam. | | NOTES SECTION: |
| | This rule monitors and controls link additions on user talk pages. Here's a complete breakdown: |
| | WHAT THE RULE DOES: |
| | |
| | It checks when someone adds links to user talk pages |
| | It ONLY applies to editors who are NOT in the bot, sysop, or autoconfirmed groups |
| | If someone from those trusted groups adds links, the rule is skipped entirely |
| | For everyone else, the rule will trigger if they add any links at all to a user talk page |
| | |
| | HOW IT WORKS: |
| | |
| | It uses the "not" symbol (!) to reverse the group membership check |
| | It looks at three different groups (bot, sysop, autoconfirmed) and checks if the editor is in ANY of them using the "or" symbol (|) |
| | Then using the "and" symbol (&), it checks two conditions: |
| | |
| | Is this edit happening on a user talk page? (page_namespace == 2) |
| | Did they add any links? (added_links > 0) |
| | |
| | |
| | The rule only triggers if the editor is not in any trusted groups AND they're editing a user talk page AND they added links |
| | |
| | HOW TO EDIT THE RULE: |
| | Even if you've never coded before, you can modify this rule. Here's how: |
| | TO CHANGE WHICH GROUPS ARE TRUSTED: |
| | |
| | Find the section between !( and ) |
| | Each group name must be in single quotes, like 'bot' |
| | Add new groups by copying this pattern: 'groupname' in user_groups |
| | Put a | symbol between each group |
| | Example: To add 'moderator' as a trusted group, add: |
| | 'moderator' in user_groups | |
| | Make sure the last group doesn't have a | after it |
| | |
| | TO CHANGE WHICH PAGES ARE MONITORED: |
| | |
| | Find where it says: page_namespace == 2 |
| | The number 2 means user talk pages |
| | You can use these numbers instead: |
| | 0 = main/article pages |
| | 1 = talk pages |
| | 2 = user talk pages |
| | 3 = user pages |
| | 4 = project pages |
| | |
| | TO CHANGE HOW MANY LINKS TRIGGER THE RULE: |
| | |
| | Find: added_links > 0 |
| | Change the 0 to any number you want |
| | Examples: |
| | added_links > 3 (triggers on 4 or more links) |
| | added_links == 5 (triggers on exactly 5 links) |
| | added_links >= 2 (triggers on 2 or more links) |
| | added_links < 10 (triggers on less than 10 links) |
| | added_links <= 5 (triggers on 5 or fewer links) |
| | |
| | IMPORTANT SYMBOLS: |
| | ! = not (reverses what comes after it) |
| | & = and (both conditions must be true) |
| | | = or (either condition can be true) |
| | == = equals exactly |
| | |
| | = greater than |
| | = = greater than or equal to |
| | < = less than |
| | <= = less than or equal to |
| | |
| | Remember: When joining conditions, & means both sides must be true, while | means either side can be true. Always keep the basic structure of the rule intact - just change the specific values you need to modify. |