Changes between Initial Version and Version 1 of InterWiki

Sep 9, 2006, 9:15:00 AM (16 years ago)



  • InterWiki

    v1 v1  
     1= Support for InterWiki links =
     3''(since [milestone:0.10])''
     5== Definition ==
     7An InterWiki link can be used for referring to a Wiki page
     8located in another Wiki system, and by extension, to any object
     9located in any other Web application, provided a simple URL
     10mapping can be done.
     12== Link Syntax ==
     18The link is composed by the targeted Wiki (or system) name,
     19followed by a colon (e.g. {{{MeatBall:}}}),
     20followed by a page specification in the target.
     21Note that, as for InterTrac prefixes, InterWiki prefixes are case insensitive.
     23The target Wiki URL is looked up in a the InterMapTxt wiki page,
     24modelled after
     25[ MeatBall:InterMapTxt].
     27In addition to traditional InterWiki links, where the target
     28is simply ''appended'' to the URL,
     29Trac supports parametric InterWiki URLs:
     30identifiers `$1`, `$2`, ... in the URL
     31will be replaced by corresponding arguments.
     32The argument list is formed by splitting the page identifier
     33using the ":" separator.
     35== Examples ==
     37If the following is an excerpt of the InterMapTxt page:
     40= InterMapTxt =
     41== This is the place for defining InterWiki prefixes ==
     43Currently active prefixes: [[InterWiki]]
     45This page is modelled after the MeatBall:InterMapTxt page.
     46In addition, an optional comment is allowed after the mapping.
     49PEP$1.html                                       # Python Enhancement Proposal $1
     50Trac-ML$1  # Message $1 in Trac Mailing List
     62 * `MoinMoin:InterWikiMap` should be rendered as
     63   [ MoinMoin:InterWikiMap]
     64   and the ''title'' for that link would be "!InterWikiMap in !MoinMoin"
     65 * {{{Trac-ML:4346}}} should be rendered as
     66   [ Trac-ML:4346]
     67   and the ''title'' for that link would be "Message 4346 in Trac Mailing List"
     70=== Temporary notice (delete this when we sync) ===
     71About full links vs. having the InterWiki link itself.
     73Well, I'm not sure about that, since those InterWiki prefixes ''are'' (or will be when we sync) present in the default InterMapTxt, so those examples will work until the InterMapTxt gets locally edited, at which point it won't be a surprise that this links don't work anymore... OTOH, if those examples ''still'' work after the prefixes have been removed, this can also be a bit surprising ;)