Problem to solve
There are some problematic users who continually violate page creation policies & guidelines, but should otherwise be retained on the wiki as constructive contributors. For example a lot of brand new contributors immediately want to create new pages without a complete understanding of the notability guidelines. A sitewide block is not an appropriate way to handle these situations.
Proposed solution
It would be useful to be able to only block users from creating new pages.
What needs doing
Add the create action to the BlockActionInfo service.
Most of the acceptance criteria below will be handled by other tasks.
Acceptance criteria (for testing)
- On Special:Block, there is a checkbox for Creating pages (see T280719 for the final design)
- When a block is saved with the 'Creating pages' checkbox selected, the target user should not be able to create new pages in any namespace via API, via any tool in any editor, or via any Special page.
- When a block is saved with the 'Creating pages' checkbox selected, the log items should indicate page creation is part of the block - done in T279560
- e.g. 23:20, 26 November 2018 AdminUsername (talk | contribs | block) blocked BadUser (talk | contribs) from editing Page(s) and creating pages with an expiration time of N (autoblock disabled) (unblock | change block)
- e.g. 23:20, 26 November 2018 AdminUsername (talk | contribs | block) blocked BadUser (talk | contribs) from creating pages with an expiration time of N (autoblock disabled) (unblock | change block)
- Special:BlockList should display that a user is blocked from creating pages as a bullet in the 'Block parameters' column - done in T279559
When the 'Creating page' checkbox is selected, the 'Uploading files' checkbox should become selected and disabled. (Uploading a file creates the file page.)Separated into T281487
Potential future enhancements:
These are out of scope for this ticket, but may need to be built later:
- All wikis to configure if page creation blocks include pages within a Draft namespace
- All wikis to configure if page creation blocks include sub-pages
- All wikis to configure if page creation blocks include sub-pages of the user's userpage.
- The 'Create' tab should not appear (sitewide blocked user still see the 'Create' tab.)
- Clicking redlinks should not take the user to the edit mode (sitewide blocked users are still taken to edit mode)
- Prevent users from creating pages by namespace (T275037).