namespaces
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
namespaces [2017-10-14 11:07] – [Namespaces] 82.77.133.61 | namespaces [2024-04-18 14:58] (current) – 136.226.109.24 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | vodamarc.camelia | ||
- | |||
- | 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 12: | 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 ":" | ||
Links relative to the current namespace may also begin with either " | Links relative to the current namespace may also begin with either " | ||
+ | |||
+ | ===== 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}} | ||
+ | </ | ||
+ | |||
+ | |||
===== Deleting namespaces ===== | ===== Deleting namespaces ===== | ||
Line 73: | 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 86: | 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: | ||
- | DokuWiki supports | + | See [[config: |
- | For example this is a link to Wikipedia's page about Wikis: [[wp> | + |
namespaces.1507972069.txt.gz · Last modified: 2017-10-14 11:07 by 82.77.133.61