Page MenuHomePhabricator

Allow certain categories to trigger a warning when a page would be added to them
Open, Needs TriagePublic


Many mistakes while editing are currently detected automatically by either MediaWiki itself or by on-wiki template/module code. Currently, in almost all cases, this is done by adding the page to a tracking category (such as Category:Pages with script errors or Category:Location maps with possible errors). Many editors don't preview pages before saving and don't notice these categories, so they have no way of knowing that they made a mistake.

To resolve some of these cases, I suggest that we implement a __WARNCATEGORIZE__ magic word. When added to a category page, any time that saving a page would place it in this category, and it wasn't in this category before the edit, a warning would be shown to the user before they were able to save the page, in the same way as the warning for missing edit summaries currently are to editors with that option enabled.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 26 2016, 10:48 PM

That sounds like a wrong way to go about this. The categories are not a problem, they are an indication of a problem. A warning message shouldn't be "Your edit would add this page to 'Category:Location maps with possible errors', are you sure?", it should be "Your edit to the location map might not be what you meant, are you sure?".