documentation:namespaces

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
documentation:namespaces [2014/03/26 09:26] milicicdocumentation:namespaces [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== Namespaces ====== 
-===== Pagenames and Namespaces ===== 
  
-You may picture namespaces as directories and pagenames as files inside them.  
- 
-Therefore the ''a:b:c'' pagename can be pictured as: 
- 
-<file> 
- 
-   root namespace (always present) 
-     │ 
-     └── 'a' namespace 
-          │ 
-          └── 'b' namespace 
-               │ 
-               └── 'c' pagename 
- 
-</file> 
- 
-Note that you can have a pagename and a namespace with the same name, at the same time, within any namespace. Back to the above example, the ''a:b'' pagename can be pictured as: 
- 
-<file> 
- 
-   root namespace (always present) 
-     │ 
-     └── 'a' namespace 
-          │ 
-          └── 'b' pagename (not to be confused with the 'b' namespace above) 
- 
-</file> 
- 
-This doesn't lead to conflicts, because DokuWiki treats the final token (the one after the last colon) as the name of the [[page]] itself, while all other tokens are namespaces.   
- 
-  * In ''a:b:c'', ''a'' and ''b'' are namespaces while ''c'' is a page. 
-  * In ''a:b'', ''a'' is interpreted as a namespace and ''b'' as a page. 
- 
-See [[namespaces]] for more details.