Loading...

Support for InterWiki links

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, provided a simple URL 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

<target_wiki>(:<identifier>)+

The link is composed by the targeted Wiki (or system) name, followed by a colon (e.g. Google:), followed by a page specification in the target. Note that InterWiki prefixes are case insensitive.

The target Wiki URL is looked up in the InterMapTxt wiki page.

In addition to traditional InterWiki links, where the target is simply appended to the URL, 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 ":" separator.

Examples

If the following is an excerpt of the InterMapTxt page - use as template for your own definitions by creating a wiki page named InterMapTxt inside your own project:

= InterMapTxt =
== This is the place for defining InterWiki prefixes ==

Currently active prefixes: [[InterWiki]]

See [help:common/HelpUser/InterWiki HelpUser/InterWiki] help page for more information.

----
{{{
PEP      http://www.python.org/peps/pep-$1.html           # Python Enhancement Proposal $1
Google   http://www.google.com/search?q=                  # Search Google
epicode  https://www.coderesort.com/p/epicode/$1/$2       # $1:$2 at EPiCode project
tsvn     tsvn:                                            # Interact with TortoiseSvn
}}}

Based on the example, a link to 'epicode' project wiki startpage will be [epicode:wiki:WikiStart], or [epicode:ticket:12] for a ticket, or even [epicode:changeset:34] to link to a changeset.