Changes between Initial Version and Version 1 of InterWiki

Jul 30, 2021, 7:40:25 AM (16 months ago)



  • InterWiki

    v1 v1  
     1= Support for InterWiki links
     4== Definition
     6An 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.
     8InterWiki prefixes can even be used to introduce links to new protocols, such as `tsvn:` used by [trac:TortoiseSvn TortoiseSvn].
     10== Link Syntax
     16The link is composed by the targeted Wiki (or system) name, followed by a colon, eg `MeatBall:`, followed by a page specification in the target.
     17Note that, as for InterTrac prefixes, '''InterWiki prefixes are case insensitive'''.
     19The target Wiki URL is looked up in the [TracIni#interwiki-section "[interwiki]"] section of TracIni and 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.
     21In addition to traditional !InterWiki links, where the target is simply ''appended'' to the URL, Trac supports parametric !InterWiki URLs:
     22identifiers `$1`, `$2`, ... in the URL will be replaced by corresponding arguments.
     23The argument list is formed by splitting the page identifier using the ":" separator.
     25== [TracIni#interwiki-section "[interwiki]"]
     27Every 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.
     32MeatBall =
     33PEP =$1.html Python Enhancement Proposal $1
     34tsvn = tsvn: Interact with TortoiseSvn
     37== Examples
     39For the following excerpt of the InterMapTxt page:
     42= InterMapTxt =
     43== This is the place for defining InterWiki prefixes ==
     45Currently active prefixes: [[InterWiki]]
     47This page is modelled after the MeatBall:InterMapTxt page.
     48In addition, an optional comment is allowed after the mapping.
     51PEP$1.html           # Python Enhancement Proposal $1
     52Trac-ML$1  # Message $1 in Trac Mailing List
     54tsvn     tsvn:                                            # Interact with TortoiseSvn
     65 * `MoinMoin:InterWikiMap` will be rendered as MoinMoin:InterWikiMap and the ''title'' for that link will be "!InterWikiMap in !MoinMoin".
     66 * `Trac-ML:4346` will be rendered as Trac-ML:4346 and the ''title'' for that link will be "Message 4346 in Trac Mailing List".
     68== List of Active Prefixes
     73See also: InterTrac, InterMapTxt