Mediawiki add namespace
From Bjoern Hassler
# create namespace
define("NS_FOO",100);
define("NS_FOO_TALK",101);
$wgExtraNamespaces[NS_FOO] = "Foo";
$wgExtraNamespaces[NS_FOO_TALK] = "Foo_talk";
# protect namespace
$wgNamespaceProtection[NS_FOO] = Array("editfoo");
$wgNamespacesWithSubpages[NS_FOO] = true;
$wgGroupPermissions['*']['editfoo'] = false;
$wgGroupPermissions['sysop']['editfoo'] = true;
$wgContentNamespaces[] = 100;
http://www.mediawiki.org/wiki/Manual:Using_custom_namespaces
- http://www.mediawiki.org/w/index.php?title=Manual:$wgNamespacesToBeSearchedDefault $wgNamespacesToBeSearchedDefault
- http://www.mediawiki.org/w/index.php?title=Extension:Namespace_manager Namespace manager as originally proposed for MW1.6-wikidata and its successors. Currently in use by the OmegaWiki project.
- http://www.mediawiki.org/w/index.php?title=Extension:Simple_namespaces, a modified version of the http://www.mediawiki.org/w/index.php?title=Extension:Special_page_to_work_with_the_interwiki_table, the special:interwiki extension which changes it to provide a namespace manager as a special page.
- http://www.mediawiki.org/w/index.php?title=Extension:NamespacePermissions and http://www.mediawiki.org/w/index.php?title=Extension:Lockdown to control access to namespaces
- http://www.mediawiki.org/w/index.php?title=Manual:Maintenance_scripts | Maintenance scripts