This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:wiki:namespaces [2018/09/18 12:53] bahnfrank65 |
en:wiki:namespaces [2018/09/18 12:55] bahnfrank65 |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Namespaces ====== | + | ===== Namespaces ===== |
A namespace is similar to a directory or folder, while pages are similar to files. | A namespace is similar to a directory or folder, while pages are similar to files. | ||
- | In [[DokuWiki]] you can use namespaces to categorize your pages. For names of namespaces the same restrictions hold as for [[pagename|pagenames]]. | + | In [[en:start|DokuWiki]] you can use namespaces to categorize your pages. For names of namespaces the same restrictions hold as for [[pagename|pagenames]]. |
A default DokuWiki installation comes with the built-in namespaces: //wiki// and //playground//. | A default DokuWiki installation comes with the built-in namespaces: //wiki// and //playground//. | ||
- | ===== Creating Namespaces ===== | + | ==== Creating Namespaces ==== |
You don't need to create namespaces separately; simply create pages with colons in the [[pagename]]. | You don't need to create namespaces separately; simply create pages with colons in the [[pagename]]. | ||
Line 34: | Line 34: | ||
Links relative to the current namespace may also begin with either "." or ".:" (".." or "..:" for parent namespace). | Links relative to the current namespace may also begin with either "." or ".:" (".." or "..:" for parent namespace). | ||
- | ===== Deleting namespaces ===== | + | ==== Deleting namespaces ==== |
When all pages inside a namespace are removed (see [[page#delete_a_page|delete a page]]) the namespace logically doesn’t exist anymore. DokuWiki usually deletes the now empty directory as well. | When all pages inside a namespace are removed (see [[page#delete_a_page|delete a page]]) the namespace logically doesn’t exist anymore. DokuWiki usually deletes the now empty directory as well. | ||
- | ===== How to rename namespaces? ===== | + | ==== How to rename namespaces? ==== |
- | ==== Manual way ==== | + | === Manual way === |
In order to rename a namespace manually you will have to: | In order to rename a namespace manually you will have to: | ||
Line 71: | Line 71: | ||
DISCLAIMER: I understand this is convoluted (and maybe I missed/messed a couple of things you should also do). All in all this is a PITA. You may also use a couple of [[plugins]] that are available for (re)building the searchindex for the complete wiki, erasing entire cache and/or old wiki revisions thus avoiding having to do this manually. | DISCLAIMER: I understand this is convoluted (and maybe I missed/messed a couple of things you should also do). All in all this is a PITA. You may also use a couple of [[plugins]] that are available for (re)building the searchindex for the complete wiki, erasing entire cache and/or old wiki revisions thus avoiding having to do this manually. | ||
- | ===== Namespace Default Linking ===== | + | ==== Namespace Default Linking ==== |
It is possible to link to the default file of a namespace by ending the linkid | It is possible to link to the default file of a namespace by ending the linkid | ||
Line 86: | Line 86: | ||
The pages are checked in that order and whatever page is found first will be linked to. [[config:autoplural|Autoplural]] linking is not done for those links. | The pages are checked in that order and whatever page is found first will be linked to. [[config:autoplural|Autoplural]] linking is not done for those links. | ||
- | ===== Interwiki Links ===== | + | ==== Interwiki Links ==== |
DokuWiki supports Interwiki links. These are quick links to other Wikis. | DokuWiki supports Interwiki links. These are quick links to other Wikis. | ||
For example: [[wp>Wiki]] is a link to Wikipedia's page about Wikis. → Main article: [[doku>Interwiki]] | For example: [[wp>Wiki]] is a link to Wikipedia's page about Wikis. → Main article: [[doku>Interwiki]] |