There is a nicetutorial about this configuration parameter. Enjoy. Cheers --[[kgh]] (talk)21:31, 13 January 2013 (UTC)
Hi, just wondering if someone can help me!
I'm running the trunk version of mediawiki, and I attempted to add this variable.
The wiki works fine, so I know nothing is wrong, but when I try to protect a page, the new options do not show up. Any ideas?
The code I am using is:
$wgRestrictionLevels = array ( '', 'autoconfirmed', 'sysop', 'staff', 'developer');$wgRestrictionTypes = array( 'edit', 'move');
I have created the "staff" and "developer" MediaWiki: Pages, and both userrgroups are on my wiki. I am also a member of both.
Also, a space has appeared below the existing levels, that is presumably for the new levels - there is just no text.
Thanks,
Bluegoblin709:52, 18 August 2008 (UTC)
I think it would be useful to add a note about the default value "sysop". As the description says, the values should be permissions, not group names. However, "sysop" is no permission, but a only a group name, so it makes people think group names were allowed. I wondered why it works for "sysop", but not for e.g. "bureaucrat". Looking at the source code, I found out that "sysop" is rewritten to "protect" for "Backwards compatibility". I checked this by setting the protection to "move=sysop" and then removing the "protect" permission from the sysop group. Indeed I could no longer move the page. So if you restrict a page to be edited/moved only by sysops, anyone with the "protect" permission will be able to edit/move it (which makes sense, they could as well unprotect the page if they wanted to). This underlines that you can't use group names, except for "sysop". --Robb198915:38, 18 April 2009 (UTC)
Hello
I know the basics of using$wgRestrictionLevels and$wgGroupPermissions to create multiple protection levels, but gettingexactly what I'm after is a bit tricky.
I want three protection levels, one for each of my user groups:
The trouble that I'm having is with theModerator level, as giving Administrators the right to "protect" pages automatically gives them the right to protectall levels that they can edit - I can't find a way to allow them toedit the Moderators level without being able toapply it.
So, if what I'm asking for is possible, could you please provide me with the code to set this up (all of it, I would rather be safe and be given all of the code, than just ask for the part about the Moderators level and assume I can work the rest around it).
MediaWiki version:1.16.0
Thanks!
See theoriginal post
Multiple Protection LevelsTalk 05:21, 15 November 2010 (UTC)
This will be a great option to prevent abuse as all pages will be protected except some which are unprotected to allow new users or limited website editors. Eg: the default will be autoconfirmed while it can be decreased to all or increased to Sysop.185.137.137.15411:21, 2 June 2025 (UTC)