Changes between Version 5 and Version 6 of TracLinks
- Timestamp:
- Nov 8, 2004, 2:59:20 PM (20 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracLinks
v5 v6 2 2 As you might have guessed, TracLinks are a very fundamental feature of Trac. 3 3 4 They allow easy hyperlinking to files, changesets, bugs/issues and wiki pages from anywhere in the system where WikiFormatting is used. 4 They allow easy hyperlinking to Trac items (tickets, reports, changesets, Wiki 5 pages, milestones and source files) from anywhere in the system where 6 WikiFormatting is used. 5 7 6 TracLinks can refer to tickets, reports and changesets by simply writing the 7 ticket, report and changeset numbers in the following notation: 8 {{{ 9 * Ticket #1 or ticket:1 10 * Report {1} or report:1 11 * Changeset [1] or changeset:1 12 * File source:trunk/COPYING. 13 }}} 8 TracLinks are generally of the form '''item:id''' (where ''id'' represents the 9 number, name or path of the item) though some frequently used kinds of items 10 have also alternative, shorthand notations. For example: 11 12 * Tickets: '''!#1''' or '''!ticket:1 13 * Reports: '''!{1}''' or '''!report:1 14 * Changesets: '''![1]''' or '''!changeset:1 15 * Wiki pages: '''CamelCase''' or '''!wiki:CamelCase 16 * Milestones: '''!milestone:1.0 17 * Files: '''!source:trunk/COPYING 18 14 19 Display: 15 * Ticket #1 or ticket:1 16 * Report {1} or report:1 17 * Changeset [1] or changeset:1 18 * File source:trunk/COPYING. 20 * Tickets: #1 or ticket:1 21 * Reports: {1} or report:1 22 * Changesets: [1] or changeset:1 23 * Wiki pages: CamelCase or wiki:CamelCase 24 * Milestones: milestone:1.0 25 * Files: source:trunk/COPYING 19 26 20 Trac links can also be given a custom link title like this: 27 The wiki:CamelCase form is rarely used, but it can be convenient to refer to 28 pages whose names do not follow WikiPageNames rules, i.e., single words, 29 non-alphabetic characters, etc. 30 31 Trac links using the full (non-shorthand) notation can also be given a custom 32 link title like this: 21 33 {{{ 22 34 [ticket:1 This is a link to ticket number one]. … … 38 50 39 51 == Where to use TracLinks == 40 You can use TracLinks and WikiFormattingin:52 You can use TracLinks in: 41 53 54 * Source code (Subversion) commit messages 42 55 * Wiki pages 43 * Ticket descriptions 44 * Source code (Subversion) commit messages 56 * Full descriptions for tickets, reports and milestones 57 58 and any other text fields explicitly marked as supporting WikiFormatting. 45 59 46 60 == Escaping TracLinks ==