Changes between Version 5 and Version 6 of WikiRestructuredTextLinks
- Timestamp:
- 01/24/11 13:44:21 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiRestructuredTextLinks
v5 v6 1 2 1 = TracLinks in reStructuredText = 3 2 4 This document illustrates how to use the ` `..trac::`` directive in reStructureThe page is written like3 This document illustrates how to use the `:trac:` role in reStructuredText. The page is written like: 5 4 6 5 {{{ 7 6 {{{ 8 7 #!rst 8 Examples: 9 9 10 Examples:11 10 * Tickets: :trac:`#1` or :trac:`ticket:1` 12 11 * Ticket comments: :trac:`comment:ticket:1:2` … … 22 21 * A particular line of a specific file revision: :trac:`source:/trunk/COPYING@200#L25` 23 22 23 An 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`. 24 26 }}} 25 27 }}} … … 29 31 {{{ 30 32 #!rst 33 Examples: 31 34 32 Examples:33 35 * Tickets: :trac:`#1` or :trac:`ticket:1` 34 36 * Ticket comments: :trac:`comment:ticket:1:2` … … 44 46 * A particular line of a specific file revision: :trac:`source:/trunk/COPYING@200#L25` 45 47 48 An 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`. 46 51 }}} 47 52 ---- 48 53 49 Note also that any of the above could have been written using the alternate syntax for roles:54 Note also that any of the above could have been written using substitution references and the `trac::` directive: 50 55 {{{ 51 56 {{{ 52 57 #!rst 58 See |ticket123|. 53 59 54 See `ticket:123`_ 55 56 .. :trac: ticket:123 Ticket 123 60 .. |ticket123| trac:: ticket:123 this ticket 57 61 }}} 58 62 }}} 63 64 This renders as: 59 65 ---- 60 66 61 67 {{{ 62 68 #!rst 69 See |ticket123|. 63 70 64 See _`ticket:123` 65 66 .. trac:: ticket:123 Ticket 123 71 .. |ticket123| trac:: ticket:123 this ticket 67 72 }}} 68 ----69 The above form has the additional benefit of allowing you to specify an explicit label for the link.70 73 71 74 ----