Edgewall Software

Changes between Version 4 and Version 5 of 0.12/TracLinks


Ignore:
Timestamp:
Apr 5, 2010, 10:24:27 PM (14 years ago)
Author:
Christian Boos
Comment:

add a few WikiCreole examples (along with, well, a few FIXME…)

Legend:

Unmodified
Added
Removed
Modified
  • 0.12/TracLinks

    v4 v5  
    6363{{{#!td
    6464{{{
    65 [ticket:1 This is a link to ticket number one].
    66 }}}
    67 }}}
    68 {{{#!td
    69 [ticket:1 This is a link to ticket number one].
     65[ticket:1 This is a link to ticket number one] or
     66[[ticket:1|This is another link to ticket number one]].
     67}}}
     68}}}
     69{{{#!td
     70[ticket:1 This is a link to ticket number one] or
     71[[ticket:1|This is another link to ticket number one]].
    7072}}}
    7173|--------------------------------------------------------------------------------------
     
    7375{{{#!td
    7476{{{
    75 [ticket:1]
    76 }}}
    77 }}}
    78 {{{#!td
    79 [ticket:1]
     77[ticket:1] or [[ticket:2]]
     78}}}
     79}}}
     80{{{#!td
     81[ticket:1] or [[ticket:2]]
    8082}}}
    8183|--------------------------------------------------------------------------------------
     
    8385{{{#!td
    8486{{{
    85 [SandBox the sandbox]
    86 }}}
    87 }}}
    88 {{{#!td
    89 [SandBox the sandbox]
     87[SandBox the sandbox] or
     88[[SandBox|the sandbox]]
     89}}}
     90}}}
     91{{{#!td
     92[SandBox the sandbox] or
     93[[SandBox|the sandbox]]
    9094}}}
    9195|--------------------------------------------------------------------------------------
     
    110114To create a link to a specific anchor in a page, use '#':
    111115{{{
    112  [#Relativelinks relative links]
     116 [#Relativelinks relative links] or [[#Relativelinks|relative links]]
    113117}}}
    114118Displays:
    115   [#Relativelinks relative links]
     119  [#Relativelinks relative links] or [[#Relativelinks|relative links]] FIXME
    116120
    117121Hint: when you move your mouse over the title of a section, a '¶' character will be displayed. This is a link to that specific section and you can use this to copy the `#...` part inside a relative link to an anchor.
     
    124128To link from a [trac:SubWiki SubWiki] page to a parent, simply use a '..':
    125129{{{
    126   [..]
    127 }}}
     130  [..] or [[..]]
     131}}}
     132   [..] or [[..]]
    128133
    129134To link from a [trac:SubWiki SubWiki] page to a sibling page, use a '../':
    130135{{{
    131   [../Sibling see next sibling]
    132 }}}
     136  [../Sibling see next sibling] or [[../Sibling|see next sibling]]
     137}}}
     138 [../Sibling see next sibling] or [[../Sibling|see next sibling]] FIXME
    133139
    134140''(Changed in 0.11)'' Note that in Trac 0.10, using e.g. `[../newticket]`  may have worked for linking to the /newticket top-level URL, but now in 0.11 it will stay in the wiki namespace and link to a sibling page. See [#Server-relativelinks] for the new syntax.
     
    157163
    158164{{{
    159 [/newticket Create a new ticket]
    160 [/ home]
    161 }}}
    162 
    163 Display: [/newticket Create a new ticket] [/ home]
     165[/newticket Create a new ticket] or [[//newticket|Create a new ticket]]
     166[/ home] or [[/|home]]
     167}}}
     168
     169Display: [/newticket Create a new ticket] or [[//newticket|Create a new ticket]] FIXME
     170[/ home] or [[/|home]] FIXME
    164171
    165172To link to another location on the server (outside the project), use the '//location' link syntax (''Changed in 0.11''):
    166173
    167174{{{
    168 [//register Register Here]
    169 }}}
    170 
    171 Display: [//register Register Here]
     175[//register Register Here] or [[//register|Register Here]]
     176}}}
     177
     178Display: [//register Register Here] or [[//register|Register Here]] FIXME
    172179
    173180=== Quoting space in TracLinks ===
     
    180187 * !attachment:"the file.txt"
    181188 * !attachment:"the file.txt:ticket:123"
     189
     190Note that by using [trac:WikiCreole] style links, it's quite natural to write links containing spaces:
     191 * ![[The whitespace convention]]
     192 * ![[attachment:the file.txt]]
    182193
    183194=== Escaping Links ===