|
|
| | # AbuseFilter Rule Notes |
|
| |
|
| | ## Purpose |
| | This rule prevents users with fewer than 50 total edits from posting URLs (external links) in the User Talk namespace. This restriction is designed to minimize spam and inappropriate behavior from new or unverified users. |
| | |
| | ## Rule Explanation |
| | ### `page_namespace == 3` |
| | - **What it does:** Limits the filter to edits made in the User Talk namespace. |
| | - **How to modify:** |
| | - To apply the rule to a different namespace, replace `3` with the namespace index of your choice. |
| | - Example: `page_namespace == 2` applies to the User namespace. |
| | |
| | ### `added_links > 0` |
| | - **What it does:** Checks if the edit adds any external links (URLs). |
| | - **How to modify:** |
| | - To apply the rule to edits with a specific number of added links, change the number. |
| | - Example: `added_links > 2` only triggers for edits adding more than two links. |
| | |
| | ### `user_editcount < 50` |
| | - **What it does:** Ensures the filter only applies to users who have fewer than 50 total edits on the wiki. |
| | - **How to modify:** |
| | - To change the required edit threshold, replace `50` with a different number. |
| | - Example: `user_editcount < 100` requires at least 100 edits before the restriction is lifted. |
| | |
| | ### Logical Operators |
| | - **`&` (AND):** Combines conditions; all conditions must be true for the rule to trigger. |
| | - Example: If `page_namespace == 3` AND `added_links > 0`, both must be true for the rule to activate. |
| | |
| | ### Summary of What the Rule Does |
| | 1. Checks if the edit is being made in the User Talk namespace (`page_namespace == 3`). |
| | 2. Verifies if the edit adds at least one external link (`added_links > 0`). |
| | 3. Confirms that the user making the edit has fewer than 50 total edits (`user_editcount < 50`). |
| | 4. If all these conditions are met, the filter triggers and prevents the edit. |
| | |
| | ## How to Adjust the Rule |
| | 1. **Change Namespace:** |
| | - Replace `3` in `page_namespace == 3` with the namespace index where you want the rule to apply. |
| | - Reference: Namespace index values are listed in MediaWiki documentation. |
| | |
| | 2. **Adjust URL Restriction:** |
| | - Modify the number in `added_links > 0` to require more or fewer links before triggering. |
| | |
| | 3. **Change Edit Count Requirement:** |
| | - Update the `50` in `user_editcount < 50` to increase or decrease the threshold for user experience. |
| | |
| | ## Practical Examples |
| | - **Prevent all users from adding links to User namespace:** |
| | ```plaintext |
| | page_namespace == 2 & added_links > 0 |
| | ``` |
| | |
| | - **Allow only users with at least 100 edits to add links:** |
| | ```plaintext |
| | page_namespace == 3 & added_links > 0 & user_editcount < 100 |
| | ``` |