Changes between Version 5 and Version 6 of WikiRestructuredTextLinks


Ignore:
Timestamp:
01/24/11 13:44:21 (15 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiRestructuredTextLinks

    v5 v6  
    1  
    21= TracLinks in reStructuredText = 
    32 
    4 This document illustrates how to use the ``..trac::`` directive in reStructureThe page is written like 
     3This document illustrates how to use the `:trac:` role in reStructuredText. The page is written like: 
    54 
    65{{{ 
    76{{{ 
    87#!rst  
     8Examples: 
    99 
    10 Examples: 
    1110 * Tickets: :trac:`#1` or :trac:`ticket:1` 
    1211 * Ticket comments: :trac:`comment:ticket:1:2` 
     
    2221 * A particular line of a specific file revision: :trac:`source:/trunk/COPYING@200#L25` 
    2322 
     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`. 
    2426}}} 
    2527}}} 
     
    2931{{{ 
    3032#!rst  
     33Examples: 
    3134 
    32 Examples: 
    3335 * Tickets: :trac:`#1` or :trac:`ticket:1` 
    3436 * Ticket comments: :trac:`comment:ticket:1:2` 
     
    4446 * A particular line of a specific file revision: :trac:`source:/trunk/COPYING@200#L25` 
    4547 
     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`. 
    4651}}} 
    4752---- 
    4853 
    49 Note also that any of the above could have been written using the alternate syntax for roles: 
     54Note also that any of the above could have been written using substitution references and the `trac::` directive: 
    5055{{{ 
    5156{{{ 
    5257#!rst 
     58See |ticket123|. 
    5359 
    54 See `ticket:123`_ 
    55  
    56  .. :trac: ticket:123 Ticket 123 
     60 .. |ticket123| trac:: ticket:123 this ticket 
    5761}}} 
    5862}}} 
     63 
     64This renders as: 
    5965---- 
    6066 
    6167{{{ 
    6268#!rst 
     69See |ticket123|. 
    6370 
    64 See _`ticket:123` 
    65  
    66 .. trac:: ticket:123 Ticket 123 
     71 .. |ticket123| trac:: ticket:123 this ticket 
    6772}}} 
    68 ---- 
    69 The above form has the additional benefit of allowing you to specify an explicit label for the link. 
    7073 
    7174----