Welcome!

Hello, Eric.frederich, and welcome to Wikipedia! Thank you for your contributions. I hope you like the place and decide to stay. Here are some pages that you might find helpful:

I hope you enjoy editing here and being a Wikipedian! Please sign your name on talk pages using four tildes (~~~~); this will automatically produce your name and the date. If you need help, check out Wikipedia:Questions, ask me on my talk page, or place {{helpme}} on your talk page and ask your question there. Again, welcome!  Rklawton 05:42, 6 February 2007 (UTC)Reply

It's good to welcome new editors and provide a human point of contact should you have any questions. I don't have all the answers, but I'm pretty good at looking stuff up. I also really like the images you've uploaded - especially the dragonfly. Rklawton 22:14, 8 February 2007 (UTC)Reply

$wgNamespaceProtection

edit

You would use it somehow like this:

$wgNamespaceProtection[namespace_name] = array( 'namespace_permission' );

where namespace_name is the number of the namespace, or the canonical namespace variable (e.g. "NS_MAIN") of the namespace you want to protect. The built-in canonical namespace variables are listed on Help:Namespace. As for namespace_permission, that's the user permission you want to associate with the namespace. If you want to, let's say, semi-protect the Template namespace, for example, you would type:

$wgNamespaceProtection[NS_TEMPLATE] = array( 'autoconfirmed' );

If you want to allow only administrators to edit the namespace, there's two things you could do. You could do a hack and associate the minimum required privilege to edit the page with something such as the editinterface (only given to sysops) or delete permission. To do that, you would type the following:

$wgNamespaceProtection[NS_TEMPLATE] = array( 'editinterface' );

Ideally, you should declare a custom privilege level (let's call it "edittemplates"), assign that privilege to the namespace protection restriction, and assign that privilege to either a new or an existing user group. The full instructions as to how to do this are documented in Manual:$wgGroupPermissions and Help:User rights; however, in short, what you would do is the following:

  1. Where all the user group declarations are made:
    $wgGroupPermissions['*']['edittemplates'] = false;
    $wgGroupPermissions['sysop']['edittemplates'] = true;
  2. Below that, to declare namespace protection restrictions:
    $wgNamespaceProtection[NS_TEMPLATE] = array( 'edittemplates' );

Hope that helps,

Titoxd(?!? - cool stuff) 05:04, 6 April 2007 (UTC)Reply