interwiki
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
interwiki [2014-03-23 12:44] – removed wrong information about [[this>]] ach | interwiki [2018-09-02 05:05] – [Inter(n)wiki links] Samana Johann | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== InterWiki Links ====== | ====== InterWiki Links ====== | ||
+ | |||
The original idea of InterWiki was to have one large distributed [[wp> | The original idea of InterWiki was to have one large distributed [[wp> | ||
Line 5: | Line 6: | ||
Examples: | Examples: | ||
- | | %%[[wp> | + | | %%[[wp> |
- | | %%[[phpfn> | + | | %%[[phpfn> |
- | | %%[[google> | + | | %%[[google> |
- | | %%[[doku> | + | | %%[[doku> |
- | | %%[[this> | + | | %%[[skype> |
+ | | %%[[this> | ||
Here's an example of how to access an arbitrary file in dokuwiki' | Here's an example of how to access an arbitrary file in dokuwiki' | ||
[[this> | [[this> | ||
+ | |||
+ | Since DokuWiki [[changes# | ||
+ | |||
+ | {{ phpfn> | ||
+ | |||
+ | {{ phpfn> | ||
===== Configuring InterWiki Shortcuts ===== | ===== Configuring InterWiki Shortcuts ===== | ||
+ | |||
InterWiki shortcuts are defined in two files: | InterWiki shortcuts are defined in two files: | ||
* the '' | * the '' | ||
Line 28: | Line 37: | ||
The shortcut is the one you will be able to use in the link later. In the URL you can use some placeholders to be more flexible in linking. If no placeholder is given the [[phpfn> | The shortcut is the one you will be able to use in the link later. In the URL you can use some placeholders to be more flexible in linking. If no placeholder is given the [[phpfn> | ||
- | ^ Placeholder ^ Replaced by ^ | + | ^ Placeholder |
- | | {URL} | + | | {URL} | URL-encoded wikiname (the part which is appended to the URL in interwiki.local.conf) |
- | | {NAME} | + | | {NAME} |
- | | {SCHEME} | + | | {SCHEME} |
- | | {HOST} | + | | {HOST} |
- | | {PORT} | + | | {PORT} |
- | | {PATH} | + | | {PATH} |
- | | {QUERY} | + | | {QUERY} |
- | The last 5 parameters are useful when creating interwikilinks to cachesystems. | + | The last 5 parameters are useful when creating interwikilinks to cachesystems. |
- | Examples of these placeholders can found in the '' | + | |
+ | For example cached links with the old, not longer working, [[wp> | ||
+ | |||
+ | < | ||
+ | |||
+ | For example, [[https:// | ||
- | For example, [[https:// | ||
< | < | ||
+ | |||
and now create your link to it like this: | and now create your link to it like this: | ||
- | < | ||
+ | < | ||
+ | If the wikiname will already include encoded characters (ex: '' | ||
+ | |||
+ | ==== Inter(n)wiki links ==== | ||
+ | |||
+ | To refer to certain namespaces within you own wiki: | ||
+ | |||
+ | < | ||
+ | |||
+ | For example: '' | ||
===== Configuring InterWiki Shortcut Icons ===== | ===== Configuring InterWiki Shortcut Icons ===== | ||
+ | |||
Interwiki icons should have a size of 16x16 pixels, be in PNG or GIF format, and be named after the shortcut. | Interwiki icons should have a size of 16x16 pixels, be in PNG or GIF format, and be named after the shortcut. | ||
* ''< | * ''< | ||
Line 59: | Line 83: | ||
If you want to disable all or some kind of link icons, refer to [[tips: | If you want to disable all or some kind of link icons, refer to [[tips: | ||
- | |||
=====See also===== | =====See also===== | ||
+ | |||
+ | * [[tips: | ||
* [[config|Configuring DokuWiki]] | * [[config|Configuring DokuWiki]] |
interwiki.txt · Last modified: 2024-01-20 20:34 by 212.159.76.45