Edgewall Software

Changes between Version 6 and Version 7 of WikiRestructuredTextLinks


Ignore:
Timestamp:
Dec 12, 2008, 1:52:08 PM (15 years ago)
Author:
Remy Blank
Comment:

Removed the example for the "alternate syntax for roles", which doesn't actually use roles, and added an example for specifying explicit link labels.

Legend:

Unmodified
Added
Removed
Modified
  • WikiRestructuredTextLinks

    v6 v7  
    11= TracLinks in reStructuredText =
    22
    3 This document illustrates how to use the ``..trac::`` directive in reStructureThe page is written like
     3This document illustrates how to use the `:trac:` directive in reStructuredText. The page is written like:
    44
    55{{{
    66{{{
    77#!rst
     8Examples:
    89
    9 Examples:
    1010 * Tickets: :trac:`#1` or :trac:`ticket:1`
    1111 * Ticket comments: :trac:`comment:ticket:1:2`
     
    2121 * A particular line of a specific file revision: :trac:`source:/trunk/COPYING@200#L25`
    2222
     23An explicit label can be specified, separated from the link by a space:
     24
     25 * See :trac:`#1 ticket 1` and the :trac:`source:trunk/COPYING license`.
    2326}}}
    2427}}}
     
    2831{{{
    2932#!rst
     33Examples:
    3034
    31 Examples:
    3235 * Tickets: :trac:`#1` or :trac:`ticket:1`
    3336 * Ticket comments: :trac:`comment:ticket:1:2`
     
    4346 * A particular line of a specific file revision: :trac:`source:/trunk/COPYING@200#L25`
    4447
     48An explicit label can be specified, separated from the link by a space:
     49
     50 * See :trac:`#1 ticket 1` and the :trac:`source:trunk/COPYING license`.
    4551}}}
    46 ----
    47 
    48 Note also that any of the above could have been written using the alternate syntax for roles:
    49 {{{
    50 {{{
    51 #!rst
    52 
    53 See _`ticket:123`
    54 
    55  .. trac:: ticket:123 Ticket 123
    56 }}}
    57 }}}
    58 ----
    59 
    60 {{{
    61 #!rst
    62 
    63 See _`ticket:123`
    64 
    65 .. trac:: ticket:123 Ticket 123
    66 }}}
    67 ----
    68 The above form has the additional benefit of allowing you to specify an explicit label for the link.
    6952
    7053----