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