mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-17 00:21:40 +00:00
docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
6b400bbcf6
commit
1cbd4094d7
2
bootstrap.js
vendored
2
bootstrap.js
vendored
File diff suppressed because one or more lines are too long
@ -173,17 +173,22 @@ Returned when pattern matches no pages.
|
||||
## Relative and absolute paths (".", "..", ">>" and "/")
|
||||
|
||||
pWiki follows the traditional path semantics with one addition, the ">>"
|
||||
that is similar to ".." but works in the opposite direction, removing
|
||||
the next, i.e. child, path element.
|
||||
that is similar to ".." but works in the opposite direction, consuming
|
||||
the next, i.e. child, path element instead of parent.
|
||||
|
||||
To illustrate the relative and absolute mechanics:
|
||||
|
||||
| Source Page | Path | Resolves to |
|
||||
|-------------------|-----------------------|-------------------------------|
|
||||
| \Example/Page | \\./Target/Page | \Example/Page/Target/Page |
|
||||
| \Example/Page | \\../Target/Page | \Example/Target/Page |
|
||||
| \Example/Page | >>\/Target/Page | \Example/Page/Page |
|
||||
| \Example/Page | \/Target/Page | \/Target/Page |
|
||||
| Title | Source Page | Path | Resolves to |
|
||||
|--------------------|------------------|-----------------------|-------------------------------|
|
||||
| "." - current path | \Example/Path | \\./Target/Page | \Example/Path/Target/Page |
|
||||
| ".." - parent path | \Example/Path | \\../Target/Page | \Example/Target/Page |
|
||||
| ">>" | \Example/Path | >>\/Target/Page | \Example/Path/Page |
|
||||
| "/" - root dir | \Example/Path | \/Target/Page | \/Target/Page |
|
||||
|
||||
|
||||
_Note that neither a leading ".." at root level, nor a trailing ">>"
|
||||
in any path, will have any effect, and will simply be ignored (e.g.
|
||||
"\/../Page" is same as "/Page" and "\Path/>>" is the same as "Path")_
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user