interwiki
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | interwiki [2015/06/09 15:23] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Support for InterWiki links ====== | ||
+ | |||
+ | //(since [[: | ||
+ | |||
+ | ===== Definition ===== | ||
+ | |||
+ | An InterWiki link can be used for referring to a Wiki page | ||
+ | located in another Wiki system, and by extension, to any object | ||
+ | located in any other Web application, | ||
+ | mapping can be done. | ||
+ | |||
+ | At the extreme, InterWiki prefixes can even be used to simply introduce | ||
+ | links to new protocols, such as `tsvn:` used by TortoiseSvn. | ||
+ | |||
+ | ===== Link Syntax ===== | ||
+ | |||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | |||
+ | The link is composed by the targeted Wiki (or system) name, | ||
+ | followed by a colon (e.g. `MeatBall: | ||
+ | followed by a page specification in the target. | ||
+ | Note that, as for InterTrac prefixes, **InterWiki prefixes are case insensitive**. | ||
+ | |||
+ | The target Wiki URL is looked up in the InterMapTxt wiki page, | ||
+ | modelled after MeatBall: | ||
+ | |||
+ | In addition to traditional InterWiki links, where the target | ||
+ | is simply // | ||
+ | Trac supports parametric InterWiki URLs: | ||
+ | identifiers `$1`, `$2`, ... in the URL | ||
+ | will be replaced by corresponding arguments. | ||
+ | The argument list is formed by splitting the page identifier | ||
+ | using the ":" | ||
+ | |||
+ | ===== Examples ===== | ||
+ | |||
+ | If the following is an excerpt of the InterMapTxt page: | ||
+ | |||
+ | < | ||
+ | ====== InterMapTxt ====== | ||
+ | ===== This is the place for defining InterWiki prefixes ===== | ||
+ | |||
+ | Currently active prefixes: [[: | ||
+ | |||
+ | This page is modelled after the MeatBall: | ||
+ | In addition, an optional comment is allowed after the mapping. | ||
+ | ---- | ||
+ | < | ||
+ | PEP http:// | ||
+ | Trac-ML | ||
+ | |||
+ | tsvn | ||
+ | ... | ||
+ | MeatBall http:// | ||
+ | MetaWiki http:// | ||
+ | MetaWikiPedia http:// | ||
+ | MoinMoin http:// | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | Then, | ||
+ | * `MoinMoin: | ||
+ | and the //title// for that link would be " | ||
+ | * `Trac-ML: | ||
+ | and the //title// for that link would be " | ||
+ | |||
+ | ---- | ||
+ | See also: InterTrac, InterMapTxt | ||
interwiki.txt · Last modified: 2015/06/09 15:23 by 127.0.0.1