Thread:Project:Support desk/How to make a custom namespace that, basically, works like an alternative NS TALK?

Hello. My name is John. I'm using MediaWiki 1.19.0, PHP 5.3.8, and MySQL 5.5.16.

Would anyone be kind enough to type an example of code, if this is even possible (?), to associate a custom namespace--JohnSpace--with the Main NS_MAIN namespace, so it will always appear as something similar to "JohnSpace:Main_Page_Title"? Pretty much like how the Talk NS_TALK namespace does it.

As I said, I'm not sure this is even possible...but if it is, should the JohnSpace index be odd-numbered?

Please don't forget to mention which file(s) your example code would be inserted into. And a plain English description of your example code would be wonderful, if you have time.

BONUS QUESTION:

Would anyone be kind enough to type an example of code, using the SkinTemplateNavigation hook or the SkinTemplateNavigation::Universal hook (I'm unsure which is more relevant), to create an additional tab between the Vector skin's "Page" and "Discussion" tabs? Let's assume this additional tab would link to a custom namespace; maybe the one I called JohnSpace, above. Thank you.

-- John