Trac is being migrated to new services! Issues can be found in our new
YouTrack instance and WIKI pages can be found on our
website.
- Timestamp:
-
Sep 9, 2012, 11:47:55 PM (11 years ago)
- Author:
-
trac
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v2
|
v3
|
|
| 1 | 1 | = Support for InterWiki links = |
| 2 | 2 | |
| 3 | | ''(since [milestone:0.10])'' |
| | 3 | ''(since [trac:milestone:0.10 0.10])'' |
| 4 | 4 | |
| 5 | 5 | == Definition == |
| … |
… |
|
| 11 | 11 | |
| 12 | 12 | At the extreme, InterWiki prefixes can even be used to simply introduce |
| 13 | | links to new protocols, such as `tsvn:` used by TortoiseSvn. |
| | 13 | links to new protocols, such as `tsvn:` used by [trac:TortoiseSvn TortoiseSvn]. |
| 14 | 14 | |
| 15 | 15 | == Link Syntax == |
| … |
… |
|
| 24 | 24 | Note that, as for InterTrac prefixes, '''InterWiki prefixes are case insensitive'''. |
| 25 | 25 | |
| 26 | | The target Wiki URL is looked up in the InterMapTxt wiki page, |
| 27 | | modelled after MeatBall:InterMapTxt. |
| | 26 | The target Wiki URL is looked up in the `[interwiki]` section of TracIni or in the InterMapTxt wiki page, modeled after MeatBall:InterMapTxt. If a prefix is defined in both the `[interwiki]` section and InterMapTxt, the `[interwiki]` section takes precedence. |
| 28 | 27 | |
| 29 | 28 | In addition to traditional InterWiki links, where the target |
| … |
… |
|
| 34 | 33 | The argument list is formed by splitting the page identifier |
| 35 | 34 | using the ":" separator. |
| | 35 | |
| | 36 | === [interwiki] === |
| | 37 | Every option in the `[interwiki]` section in TracIni defines one InterWiki prefix. The option name defines the prefix. The option value defines the URL, optionally followed by a description separated from the URL by whitespace. Parametric URLs are supported as well. |
| | 38 | |
| | 39 | '''Example:''' |
| | 40 | {{{ |
| | 41 | [interwiki] |
| | 42 | MeatBall = http://www.usemod.com/cgi-bin/mb.pl? |
| | 43 | PEP = http://www.python.org/peps/pep-$1.html Python Enhancement Proposal $1 |
| | 44 | tsvn = tsvn: Interact with TortoiseSvn |
| | 45 | }}} |
| 36 | 46 | |
| 37 | 47 | == Examples == |
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!