interwiki
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
interwiki [2022-09-24 00:32] – Klap-in | interwiki [2024-05-08 09:27] (current) – [Table] Transfer of the information in /conf/interwiki.conf michaelsy | ||
---|---|---|---|
Line 3: | Line 3: | ||
The original idea of InterWiki was to have one large distributed [[wp> | The original idea of InterWiki was to have one large distributed [[wp> | ||
- | In [[DokuWiki]] this is done by prefixing Wiki [[pagenames]] with a shortcut separated by a ''>'' | + | In [[DokuWiki]] this is done by prefixing Wiki [[pagenames]] with a shortcut separated by a **''>'' |
Examples: | Examples: | ||
- | | %%[[wp>InterWiki]]%% | [[wp>InterWiki]] | links to the English language Wikipedia | + | ^ Shortcut |
- | | %%[[wpfr>InterWiki]]%% | [[wpfr>InterWiki]] | links to the French language Wikipedia. Also available: '' | + | | '' |
- | | %%[[phpfn>random]]%% | [[phpfn>random]] | links to a function in the PHP manual | + | | '' |
- | | %%[[google>Wiki]]%% | + | | '' |
- | | %%[[doku>interwiki]]%% | [[doku>interwiki]] | links to the DokuWiki wiki | + | | '' |
- | | %%[[skype>echo123]]%% | [[skype>echo123]] | + | | '' |
- | | %%[[this>feed.php]]%% | + | | '' |
- | | %%[[rfc> | + | | '' |
- | | %%[[man>cp]]%% | [[man>cp]] | links to | + | | '' |
- | | %%[[amazon>Wikis]]%% | [[amazon>Wikis]] | Affiliation link to Amazon. (.de and .uk available too) | | + | | '' |
- | | %%[[paypal>id_here]]%% | [[paypal>id_here]] | links to PayPal | + | | '' |
- | | %%[[go>pie]]%% | + | | '' |
- | | %%[[user> | + | | '' |
- | | %%[[tel>123-456-7890]]%% | [[tel>123-456-7890]] | Open phone app to call. More general then callto. | + | | '' |
- | | %%[[callto>0123456789]]%% | [[callto>0123456789]] | Callto link to open phone app. | + | | '' |
- | + | | '' | |
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' | ||
Line 28: | Line 27: | ||
[[this> | [[this> | ||
- | Since DokuWiki [[changes# | + | Interwiki |
- | {{ phpfn> | + | {{ phpfn> |
{{ phpfn> | {{ phpfn> | ||
Line 37: | Line 36: | ||
InterWiki shortcuts are defined in two files: | InterWiki shortcuts are defined in two files: | ||
- | * Default included links are in '' | + | * Default included links are in '' |
* Local modifications in ''< | * Local modifications in ''< | ||
+ | |||
+ | Alternatively, | ||
The interwiki shortcut has to be in lowercase and follow the [[pagename]] rules. | The interwiki shortcut has to be in lowercase and follow the [[pagename]] rules. | ||
Line 53: | Line 54: | ||
Or disable by mentioning no link< | Or disable by mentioning no link< | ||
wpmeta | wpmeta | ||
+ | paypal | ||
</ | </ | ||
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 | + | ^ Placeholder |
- | | {URL} | URL-encoded wikiname (the part which is appended to the URL in interwiki.local.conf) | + | | {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. | ||
Line 130: | Line 132: | ||
</ | </ | ||
- | + | ===== See also ===== | |
- | =====See also===== | + | |
* [[tips: | * [[tips: | ||
+ | * You can install and use the [[plugin: | ||
* [[config|Configuring DokuWiki]] | * [[config|Configuring DokuWiki]] | ||
+ |
interwiki.1663972329.txt.gz · Last modified: 2022-09-24 00:32 by Klap-in