DIYnot
Local | Network
Local | Network
DIYnot Network Local DIYnot Network Local
 

Creating Namespaces

You don't need to create namespaces separately; simply create pages with colons in the pagename. The token after the last colon will be the name of the page itself, while all other tokens are namespaces. All namespaces used in your pagename that don't exist already will be created by the Wiki automatically.

Examples:
examplerefers to the page “example” in the current namespace.
:examplerefers to the page “example” in the root namespace.
wiki:examplerefers to the page “example” in the namespace “wiki”. The namespace “wiki” is located beneath the root namespace.
ns1:ns2:examplerefers to the page “example” in the namespace ns2. The namespace ns2 is located beneath the namespace ns1; the namespace ns1 is located beneath the root namespace.
:ns1:ns2:examplesame as above.
.ns1:ns2:examplerefers to the page “example” in the namespace ns2. The namespace ns2 is located beneath the namespace ns1; the namespace ns1 is located beneath the current namespace.

Deleting Namespaces

When all pages inside a namespace are removed the namespace logically doesn’t exist anymore. The Wiki usually deletes the now empty directory as well.

 
wiki/namespaces.txt · Last modified: 2007/09/12 09:18 (external edit)
 
 
DIYnot.com
Find an Expert | Find a Supplier | Search DIYnot.com
My DIYnot | Advertising | Newsletter
DIYnot.com | How to... | @home | Wiki | Forum | Shop
By using this site you agree to our Terms of Service / Disclaimer.
Please read our Privacy Policy.

Copyright © 2000-2008 DIYnot Limited. All rights reserved. Reproduction in whole or in part in any form or medium without express written permission of DIYnot Limited is prohibited.