[Mediawiki-l] Namespaces

khuffman at NGS.ORG khuffman at NGS.ORG
Sun Apr 1 17:56:51 UTC 2007


Hi, I'm using MediaWiki 1.9.3.  I had a question about the Template 
namespace.  I want to use the functionality of the Template namespace but 
want an alternative display name (i.e., Resource). So, I updated this 
file: \includes\Namespace.php by change the canonical name from "Template" 
to "Resource" and Template_talk" to "Resource_talk" (see below). Problem, 
though, is that the word "Template:XXX" still appears as part of the page 
name or if I include on a pages {{xxx}}. I thought by updating the 
Namespace.php file that pages would appear with "Resource:XXX."  Are there 
other pages I must change/customize as well?  Any advice?

$wgCanonicalNamespaceNames = array(
        NS_MEDIA            => 'Media',
        NS_SPECIAL          => 'Special',
        NS_TALK             => 'Talk',
        NS_USER             => 'User',
        NS_USER_TALK        => 'User_talk',
        NS_PROJECT          => 'Project',
        NS_PROJECT_TALK     => 'Project_talk',
        NS_IMAGE            => 'Image',
        NS_IMAGE_TALK       => 'Image_talk',
        NS_MEDIAWIKI        => 'MediaWiki',
        NS_MEDIAWIKI_TALK   => 'MediaWiki_talk',
        NS_TEMPLATE         => 'Resource',
        NS_TEMPLATE_TALK    => 'Resource_talk',
        NS_HELP             => 'Help',
        NS_HELP_TALK        => 'Help_talk',
        NS_CATEGORY         => 'Category',
        NS_CATEGORY_TALK    => 'Category_talk',





More information about the MediaWiki-l mailing list