MediaWiki:LocalSettings.php

define("NS_Roleplay", 100); define("NS_Roleplay_TALK", 101); $wgExtraNamespaces[NS_FOO] = "Roleplay"; $wgExtraNamespaces[NS_FOO_TALK] = "Roleplay_talk";

$wgNamespaceProtection[NS_FOO] = array( 'editfoo' ); $wgNamespacesWithSubpages[NS_FOO] = true; $wgGroupPermissions['sysop']['editfoo'] = true;