Edgewall Software

Version 2 (modified by Christian Boos, 19 years ago) ( diff )

Added the MailingList example after reading the description of the GeneralLinkSyntaxPlugin plugin

This page documents the 1.4 (latest stable) release. Documentation for other releases can be found here.

Support for InterWiki links

This is a proposal for implementing #40 and #1414 I think it's now ready for testing (see r1912)

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, provided a simple URL mapping can be done.

Link Syntax

<target_wiki>(:<identifier>)+

The link is composed by the targeted Wiki (or system) name, followed by a column (e.g. MeatBall:), followed by a page specification in the target.

The target Wiki URL is looked up in a the InterMapTxt wiki page, modelled after MeatBall:InterMapTxt.

An 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 from a list made up from the page specification split by the ':' token.

Examples

If the following is an excerpt of the InterMapTxt page:

= InterWiki Map =

This is the InterMapTxt wiki page,
modelled after the MeatBall:InterMapTxt page.
----
{{{
Trac http://projects.edgewall.com/trac/$1/$2Trac # The Official Trac for Trac
TracML http://lists.edgewall.com/archive/trac/2005-August/$1.html # Trac Mailing List Archive
...
LiveJournal http://livejournal.com/users/
Login http://www.usemod.com/cgi-bin/mb.pl?action=login&p_userid=
MbTest http://www.usemod.com/cgi-bin/mbtest.pl?
MeatBall http://www.usemod.com/cgi-bin/mb.pl?
MetaWiki http://sunir.org/apps/meta.pl?
MetaWikiPedia http://meta.wikipedia.org/wiki/
Mineralienatlas http://www.mineralienatlas.de/lexikon/index.php/
MoinMoin http://moinmoin.wikiwikiweb.de/
...
}}}

Then,

  • MoinMoin:InterWikiMap should be rendered as MoinMoin:InterWikiMap and the title for that link would be "InterWikiMap in MoinMoin"
  • Trac:wiki:InterWiki should be rendered as Trac:wiki:InterWiki, and the title for that link would be "InterWiki in The Official Trac for Trac"
  • TracML:004346 should be rendered as TracML:004346 and the title for that link would be "004346 in Trac Mailing List Archive" (idea: I should allow positional parameters in the comment as well)
Note: See TracWiki for help on using the wiki.