This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:wiki:namespaces [2018/09/18 12:54] bahnfrank65 |
en:wiki:namespaces [2018/09/23 15:45] (current) bahnfrank65 [Creating Namespaces] |
||
---|---|---|---|
Line 2: | Line 2: | ||
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//. | ||
Line 25: | Line 25: | ||
|..ns1:ns2:example\\ ..:ns1:ns2:example|refers to the page "example" in the namespace ns2. The namespace ns2 is located beneath the namespace ns1; the namespace ns1 is located **beside the current** namespace (i.e. both ns1 and the current namespace are beneath the same parent namespace, wherever according to the root namespace this parent may be located itself).| | |..ns1:ns2:example\\ ..:ns1:ns2:example|refers to the page "example" in the namespace ns2. The namespace ns2 is located beneath the namespace ns1; the namespace ns1 is located **beside the current** namespace (i.e. both ns1 and the current namespace are beneath the same parent namespace, wherever according to the root namespace this parent may be located itself).| | ||
|.ns1:ns2:\\ .:ns1:ns2:|refers to the page "start" in the namespace ns2. The namespace ns2 is located beneath the namespace ns1; the namespace ns1 is located beneath the current namespace.\\ \\ (The default page can be named something other than "start" by adjusting the [[config:startpage]] configuration setting.)| | |.ns1:ns2:\\ .:ns1:ns2:|refers to the page "start" in the namespace ns2. The namespace ns2 is located beneath the namespace ns1; the namespace ns1 is located beneath the current namespace.\\ \\ (The default page can be named something other than "start" by adjusting the [[config:startpage]] configuration setting.)| | ||
+ | |||
+ | ** In order to avoid possible malfunctions, which may possibly arise from the hierarchy with multiple languages, we should always always specify the entire path, for example: ** <code>[[de:traffic:timetable|timetable]]</code> | ||
:!: Gotcha: The syntax for relative and absolute internal links is non-unique and complex relative to directory and filename conventions. | :!: Gotcha: The syntax for relative and absolute internal links is non-unique and complex relative to directory and filename conventions. |