doc:namespace

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
doc:namespace [2026/04/02 08:41] – [Namespaces in DokuWiki] Simon Grantdoc:namespace [2026/04/02 08:44] (current) – [Why is it called a namespace, not just a folder?] Simon Grant
Line 5: Line 5:
 Fear not: this can look very unfamiliar at first sight, but it's not really hard. Fear not: this can look very unfamiliar at first sight, but it's not really hard.
  
-A namespace in DokuWiki is basically a way of pointing to different parts of the wiki. It's just like the folder (or directory) structure on your file system (on your hard drive or wherever), which allows you to sort your files into a tree-like structure of sensible groups. Many web sites arrange their pages into folders or directories. This is a very useful feature in DokuWiki, which isn't available in MediaWiki (and so Wikipedia), or many other wiki systems. That may be why it's not familiar.+A namespace in DokuWiki is basically a way of pointing to different parts of the wiki. It's just like the folder (or directory) structure on your file system (on your hard drive or wherever), which allows you to arrange your files into a tree-like structure of sensible groups. Many web sites arrange their pages into folders or directories. This is a very useful feature in DokuWiki, which isn't available in MediaWiki (and so Wikipedia), or many other wiki systems. That may be why it's not familiar.
  
 Here on this wiki, there is one page at the 'root', with no namespace: the [[:start]] page. If you go there and look at the URL in your browser, you may be able to see `https://knowledge.growingthecommons.org/doku.php/start`.\\ Here on this wiki, there is one page at the 'root', with no namespace: the [[:start]] page. If you go there and look at the URL in your browser, you may be able to see `https://knowledge.growingthecommons.org/doku.php/start`.\\
Line 32: Line 32:
 Namespaces conventionally use a colon `:` as a delimiter. Namespaces conventionally use a colon `:` as a delimiter.
 There is a lot of history behind this, which is not needed for understanding namespaces in DokuWiki. There is a lot of history behind this, which is not needed for understanding namespaces in DokuWiki.
-It may be enough to say that in DokuWiki, they are essentially the same, except the slash `/` is used in URLs, while the colon `:` is the normal usage for internal locations.+Probably enough to say that in DokuWiki, they are essentially the same, except the slash `/` is used in URLs, while the colon `:` is the normal usage for internal locations.
  
 So, this document's internal link is `[[doc:namespace]]` which is simply displayed as [[doc:namespace]].\\ So, this document's internal link is `[[doc:namespace]]` which is simply displayed as [[doc:namespace]].\\
  • doc/namespace.1775119267.txt.gz
  • Last modified: 2026/04/02 08:41
  • by Simon Grant