Changes between Version 8 and Version 9 of 0.12/TracLinks
- Timestamp:
- Jul 16, 2012, 9:16:12 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
0.12/TracLinks
v8 v9 1 ** Note: this page was used to prepare the 0.12 version of wiki:/TracLinks, see now directly that toplevel page**1 ** Note: this page documents the 0.12 version of Trac, see [[0.11/TracLinks]] if you need the previous version ** 2 2 = Trac Links = 3 3 [[TracGuideToc]] 4 [[TranslatedPages]] 4 5 5 6 TracLinks are a fundamental feature of Trac, because they allow easy hyperlinking between the various entities in the system—such as tickets, reports, changesets, Wiki pages, milestones, and source files—from anywhere WikiFormatting is used. … … 27 28 Ticket comments :: `comment:1:ticket:2` 28 29 Reports :: `{1}` or `report:1` 30 Milestones :: `milestone:1.0` 31 Attachment :: `attachment:example.tgz` (for current page attachment), `attachment:attachment.1073.diff:ticket:944` (absolute path) 29 32 Changesets :: `r1`, `[1]`, `changeset:1` or (restricted) `[1/trunk]`, `changeset:1/trunk` 30 33 Revision log :: `r1:3`, `[1:3]` or `log:@1:3`, `log:trunk@1:3`, `[2:5/trunk]` 31 Diffs :: `diff:@1:3`, `diff:tags/trac-0.9.2/wiki-default//tags/trac-0.9.3/wiki-default` 34 Diffs :: `diff:@1:3`, `diff:plugins/0.12/mercurial-plugin@9128:9953`, 35 `diff:tags/trac-0.9.2/wiki-default//tags/trac-0.9.3/wiki-default` 32 36 or `diff:trunk/trac@3538//sandbox/vc-refactoring@3539` 33 Milestones :: `milestone:1.0` 34 Attachment :: `attachment:example.tgz` (for current page attachment), `attachment:attachment.1073.diff:ticket:944` (absolute path) 35 Files :: `source:trunk/COPYING` 36 A specific file revision :: `source:/trunk/COPYING@200` 37 A particular line of a specific file revision :: `source:/trunk/COPYING@200#L25` 37 Files :: `source:trunk/COPYING`, `source:/trunk/COPYING@200` (at version 200), `source:/trunk/COPYING@200#L25` (at version 200, line 25) 38 38 }}} 39 39 {{{#!td … … 43 43 Ticket comments :: comment:1:ticket:2 44 44 Reports :: {1} or report:1 45 Milestones :: milestone:1.0 46 Attachment :: attachment:example.tgz (for current page attachment), attachment:attachment.1073.diff:ticket:944 (absolute path) 45 47 Changesets :: r1, [1], changeset:1 or (restricted) [1/trunk], changeset:1/trunk 46 48 Revision log :: r1:3, [1:3] or log:@1:3, log:trunk@1:3, [2:5/trunk] 47 Diffs :: diff:@1:3, diff:tags/trac-0.9.2/wiki-default//tags/trac-0.9.3/wiki-default 49 Diffs :: diff:@1:3, diff:plugins/0.12/mercurial-plugin@9128:9953, 50 diff:tags/trac-0.9.2/wiki-default//tags/trac-0.9.3/wiki-default 48 51 or diff:trunk/trac@3538//sandbox/vc-refactoring@3539 49 Milestones :: milestone:1.0 50 Attachment :: attachment:example.tgz (for current page attachment), attachment:attachment.1073.diff:ticket:944 (absolute path) 51 Files :: source:trunk/COPYING 52 A specific file revision :: source:/trunk/COPYING@200 53 A particular line of a specific file revision :: source:/trunk/COPYING@200#L25 52 Files :: source:trunk/COPYING, source:/trunk/COPYING@200 (at version 200), source:/trunk/COPYING@200#L25 (at version 200, line 25) 54 53 }}} 55 54 … … 184 183 [/ home] or [[/|home]] 185 184 186 To link to another location on the server ( outside the project), use the '//location' link syntax (''Changed in 0.11''):185 To link to another location on the server (possibly outside the project but on the same host), use the `//` prefix (''Changed in 0.11''): 187 186 188 187 {{{ … … 227 226 - `ticket:1?version=1` 228 227 - `[/newticket?component=module1 create a ticket for module1]` 228 - `[/newticket?summary=Add+short+description+here create a ticket with URL with spaces]` 229 229 230 230 … … 258 258 - `ticket:123#comment:description` 259 259 260 === htdocs: links === 261 262 Use `htdocs:path/to/file` to reference files in the `htdocs` directory of the Trac environment, the [TracEnvironment#DirectoryStructure web resource directory]. 263 260 264 === query: links === 261 265 … … 291 295 === wiki: links === 292 296 293 See WikiPageNames and [#QuotingspaceinTracLinks quoting space in TracLinks] above. 297 See WikiPageNames and [#QuotingspaceinTracLinks quoting space in TracLinks] above. It is possible to create a link to a specific page revision using the syntax WikiStart@1. 294 298 295 299 === Version Control related links === 300 301 It should be noted that multiple repository support works by creating a kind of virtual namespace for versioned files in which the toplevel folders correspond to the repository names. Therefore, in presence of multiple repositories, a ''/path'' specification in the syntax of links detailed below should start with the name of the repository. If omitted, the default repository is used. In case a toplevel folder of the default repository has the same name as a repository, the latter "wins". One can always access such folder by fully qualifying it (the default repository can be an alias of a named repository, or conversely, it is always possible to create an alias for the default repository, ask your Trac administrator). 302 303 For example, `source:/trunk/COPYING` targets the path `/trunk/COPYING` in the default repository, whereas `source:/projectA/trunk/COPYING` targets the path `/trunk/COPYING` in the repository named `projectA`. This can be the same file if `'projectA'` is an alias to the default repository or if `''` (the default repository) is an alias to `'projectA'`. 304 296 305 ==== source: links ==== 297 306 ''aliases:'' `browser:`, `repos:`