I'm reposting my "help" question since I had no response...
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',
Not sure in particular about the heading, but you should have a look at [[Special:Allmessages]]. The word "Template" appears all over the place.
Also, you may want to take a look at the language files. Consider your problem restated as: "I have my own dialect of English in which the word Template is replaced with Resource".
Since MW works with all kinds of languages, your problem is solvable - just takes some poking around and research.
-- Jim R. Wilson (jimbojw)
On 4/3/07, khuffman@ngs.org khuffman@ngs.org wrote:
I'm reposting my "help" question since I had no response...
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',
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org