Changes between Version 2 and Version 3 of InterWiki
- Timestamp:
- Sep 28, 2005, 12:15:26 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InterWiki
v2 v3 2 2 3 3 ''This is a proposal for implementing #40 and #1414'' 4 ''I think it's now ready for testing (see r1912)''4 ''It's candidate for integration in the trunk, after the 0.9 release (see #2041)'' 5 5 6 6 == Definition == … … 20 20 followed by a column (e.g. {{{MeatBall:}}}), 21 21 followed by a page specification in the target. 22 Note that, as for InterTrac prefixes, InterWiki prefixes are case insensitive. 22 23 23 24 The target Wiki URL is looked up in a the InterMapTxt wiki page, … … 28 29 is simply ''appended'' to the URL, 29 30 Trac supports parametric InterWiki URLs: 30 identifiers {{{$1}}}, {{{$2}}}, ... in the URL31 identifiers `$1`, `$2`, ... in the URL 31 32 will be replaced by corresponding arguments from a list 32 made up from the page specification split by the ':'token.33 made up from the page specification split by the ":" token. 33 34 34 35 == Examples == … … 37 38 38 39 {{{ 39 = InterWiki Map = 40 = InterMapTxt = 41 == This is the place for defining InterWiki prefixes == 40 42 41 This is the InterMapTxt wiki page, 42 modelled after the MeatBall:InterMapTxt page. 43 Currently active prefixes: [[InterWiki]] 44 45 This page is modelled after the MeatBall:InterMapTxt page. 46 In addition, an optional comment is allowed after the mapping. 43 47 ---- 44 48 {{{ 45 Trac http://projects.edgewall.com/trac/$1/$2Trac # The Official Trac for Trac 46 TracML http://lists.edgewall.com/archive/trac/2005-August/$1.html # Trac Mailing List Archive 49 PEP http://www.python.org/peps/pep-$1.html # Python Enhancement Proposal 50 TracML http://thread.gmane.org/gmane.comp.version-control.subversion.trac.general/ # Trac Mailing List 51 47 52 ... 48 LiveJournal http://livejournal.com/users/49 Login http://www.usemod.com/cgi-bin/mb.pl?action=login&p_userid=50 MbTest http://www.usemod.com/cgi-bin/mbtest.pl?51 53 MeatBall http://www.usemod.com/cgi-bin/mb.pl? 52 54 MetaWiki http://sunir.org/apps/meta.pl? 53 55 MetaWikiPedia http://meta.wikipedia.org/wiki/ 54 Mineralienatlas http://www.mineralienatlas.de/lexikon/index.php/55 56 MoinMoin http://moinmoin.wikiwikiweb.de/ 56 57 ... … … 59 60 60 61 Then, 61 * {{{MoinMoin:InterWikiMap}}}should be rendered as62 * `MoinMoin:InterWikiMap` should be rendered as 62 63 [http://moinmoin.wikiwikiweb.de/InterWikiMap MoinMoin:InterWikiMap] 63 64 and the ''title'' for that link would be "!InterWikiMap in !MoinMoin" 64 * {{{Trac:wiki:InterWiki}}} should be rendered as 65 [wiki:InterWiki Trac:wiki:InterWiki], 66 and the ''title'' for that link would be "!InterWiki in The Official Trac for Trac" 67 * {{{TracML:004346}}} should be rendered as 68 [http://lists.edgewall.com/archive/trac/2005-August/004346.html TracML:004346] 69 and the ''title'' for that link would be "004346 in Trac Mailing List Archive" 65 * {{{TracML:4346}}} should be rendered as 66 [http://thread.gmane.org/gmane.comp.version-control.subversion.trac.general/4346 TracML:4346] 67 and the ''title'' for that link would be "4346 in Trac Mailing List" 70 68 (idea: I should allow positional parameters in the comment as well) 71