namespaces
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
namespaces [2017-07-27 07:59] – old revision restored (2017-07-26 11:01) werner.flamme | namespaces [2024-02-24 07:25] – 192.169.101.165 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Namespaces ====== | ||
- | |||
- | A namespace is similar to a directory or folder, while pages are similar to files. | ||
- | In [[DokuWiki]] | ||
- | |||
- | A default DokuWiki installation comes with the built-in namespaces: //wiki// and // | ||
===== Creating Namespaces ===== | ===== Creating Namespaces ===== | ||
Line 11: | Line 5: | ||
All namespaces used in your pagename that don't exist already will be created by DokuWiki automatically. | All namespaces used in your pagename that don't exist already will be created by DokuWiki automatically. | ||
- | A namespace can be created in the media manager after having selected a file on the local computer and adding a '' | + | A namespace can be created in the media manager after having selected a file on the local computer and adding a '' |
- | In DokuWiki pages are created as in every other wiki. Simply create a link to a non existing page, follow this link, and click on Create this page. See also [[.: | + | In DokuWiki, pages are created as in every other wiki. Simply create a link to a non existing page, follow this link, and click on Create this page. See also [[.: |
- | ^ Examples: | + | ^ Examples: |
- | |example\\ .example\\ .: | + | | example\\ .example\\ .: |
- | |: | + | | : |
- | |..example\\ ..: | + | | ..example\\ ..: |
- | |wiki: | + | | wiki: |
- | |ns1: | + | | ns1: |
- | |.ns1: | + | | .ns1: |
- | |..ns1: | + | | ..ns1: |
- | |.ns1: | + | | .ns1:ns2:\\ .: |
+ | | ~example\\ ~: | ||
:!: 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. | ||
- | Paths are absolute if and only if they begin with "/" | ||
Links are absolute if and only if they have a ":" | Links are absolute if and only if they have a ":" | ||
Line 33: | Line 27: | ||
Links relative to the current namespace may also begin with either " | Links relative to the current namespace may also begin with either " | ||
- | ===== Deleting namespaces ===== | + | ===== Referring Images ===== |
+ | |||
+ | Regarding referring of namespaces, images and other media files are handled like wiki pages. That means, the following refers to an image that belongs to the current namespace: | ||
+ | < | ||
+ | {{image.jpg}} | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ===== [[https:// | ||
When all pages inside a namespace are removed (see [[page# | When all pages inside a namespace are removed (see [[page# | ||
Line 49: | Line 52: | ||
| | ||
For example, on a Unix host, you could: | For example, on a Unix host, you could: | ||
- | * '' | + | * '' |
* '' | * '' | ||
* '' | * '' | ||
Line 55: | Line 58: | ||
Note that the '' | Note that the '' | ||
- | * Correct (by editing them) all the links to the pages under the //moved// namespace (you can discover those before moving the namespace by reviewing each page's [[backlinks]]). | + | * Correct (by editing them) all the links to the pages under the //moved// namespace (you can discover those before moving the namespace by reviewing each page's [[https:// |
* Browse each and every page under the new namespace. This will create the missing indexing information and metadata for the pages under the moved namespace. | * Browse each and every page under the new namespace. This will create the missing indexing information and metadata for the pages under the moved namespace. | ||
Line 72: | Line 75: | ||
===== Namespace Default Linking ===== | ===== Namespace Default Linking ===== | ||
- | It is possible to link to the default | + | It is possible to link to the default |
- | with a colon: %%[[foo: | + | with a colon: |
- | existence of certain named files. For %%[[foo: | + | existence of certain named files. For '' |
checked: | checked: | ||
Line 85: | Line 88: | ||
The pages are checked in that order and whatever page is found first will be linked to. [[config: | The pages are checked in that order and whatever page is found first will be linked to. [[config: | ||
+ | See [[config: | ||
+ | ===== Interwiki Links ===== | ||
- | DokuWiki supports | + | DokuWiki supports Interwiki links. These are quick links to other Wikis. |
- | For example | + | For example: [[wp> |
namespaces.txt · Last modified: 2024-05-15 10:24 by 217.70.164.142