Différences entre version 1 et version 2 de InterWiki


Ignorer :
Timestamp :
9 oct. 2014 à 13:45:15 (10 ans)
Auteur :
trac
Commentaire :

--

Légende :

Sans modification
Ajouté
Supprimé
Modifié
  • InterWiki

    v1 v2  
    11= Support for InterWiki links =
    22
    3 ''(since [milestone:0.10])''
     3''(since [trac:milestone:0.10 0.10])''
    44
    55== Definition ==
     
    1111
    1212At the extreme, InterWiki prefixes can even be used to simply introduce
    13 links to new protocols, such as `tsvn:` used by TortoiseSvn.
     13links to new protocols, such as `tsvn:` used by [trac:TortoiseSvn TortoiseSvn].
    1414
    1515== Link Syntax ==
     
    2424Note that, as for InterTrac prefixes, '''InterWiki prefixes are case insensitive'''.
    2525
    26 The target Wiki URL is looked up in the InterMapTxt wiki page,
    27 modelled after MeatBall:InterMapTxt.
     26The target Wiki URL is looked up in the `[interwiki]` section of TracIni or 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.
    2827
    2928In addition to traditional InterWiki links, where the target
     
    3433The argument list is formed by splitting the page identifier
    3534using the ":" separator.
     35
     36=== [interwiki] ===
     37Every 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.
     38
     39'''Example:'''
     40{{{
     41[interwiki]
     42MeatBall = http://www.usemod.com/cgi-bin/mb.pl?
     43PEP = http://www.python.org/peps/pep-$1.html Python Enhancement Proposal $1
     44tsvn = tsvn: Interact with TortoiseSvn
     45}}}
    3646
    3747== Examples ==