[Mediawiki-l] Problem with custom namespace: Using special characters

Eric K ek79501 at yahoo.com
Fri Jun 29 02:24:34 UTC 2007


I want to have a namespace which has an ampersand in it e.g. "Me&You". I've followed the directions for $wgExtraNamespaces which ask to use $amp; for &, and everything goes okay except - a new page doesnt get recorded in the new namespace, when I check the database, so defeating the purpose (it gets a namespace of 0, the main space).
   
  I can get this to work if I use just the & as it is, but the main "article" tab comes messed up. It shows this: 
  "<nstab-Me&You>"
  instead of "article"
   
  I can get rid of the ampersand and gain 2 more letters to make the namespace a little longer but I want the ampersand if possible. I've tried different combinations for other unicode characters too on a test wiki with the same result. I guess there's no current fix for this, right and I'd probably have to get rid of the ampersand? If you want to try it yourself, try:
  $wgExtraNamespaces =    array(120 => "Me1&You", 121=> "Me1&You_Talk", 122 => "Me2&You", 123=> "Me2&You_Talk" );
  And then add an article in each namespace and check the database, or the Special:Allpages which will show only one namespace's article, and thats the one for which the "article" tab is messed during display.
   
  thanks
  Eric

       
---------------------------------
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel and lay it on us.


More information about the MediaWiki-l mailing list