Changes from Version 1 of TracLinks

차이점 주위로
다음 차이점은 무시하기:
작성자:
trac (IP: 127.0.0.1)
날짜/시간:
2009-08-30 AM 12:52:40 (16 년 전)
설명:

--

Legend:

변경되지 않음
추가됨
제거됨
변경됨
  • TracLinks

    v0 v1  
     1= Trac 링크 = 
     2 
     3TracLinks are a fundamental feature of Trac, because they allow easy hyperlinking between the various entities in the system?봲uch as tickets, reports, changesets, Wiki pages, milestones, and source files?봣rom anywhere WikiFormatting is used. 
     4 
     5[wiki:TracLinks]는 자주 사용되는 아이템의 경우에는 짧은 표기법이 존재하지만, 일반적으로는 '''type:id''' 의 형태를 가집니다. (''id''는 아이템의 숫자, 이름 혹은 경로를 의미합니다.) 
     6 
     7예제들: 
     8 * 티켓: '''!#1''' or '''!ticket:1''' 
     9 * Ticket comments: '''!comment:ticket:1:2'''  
     10 * 리포트: '''!{1}''' or '''!report:1''' 
     11 * Changesets: '''!r1''', '''![1]''', '''!changeset:1''' or (restricted) '''![1/trunk]''', '''!changeset:1/trunk''' 
     12 * Revision log: '''!r1:3''', '''![1:3]''' or '''!log:@1:3''', '''!log:trunk@1:3''' 
     13 * Diffs (requires [milestone:0.10 0.10]): '''!diff:@1:3''', '''!diff:tags/trac-0.9.2/wiki-default//tags/trac-0.9.3/wiki-default''' or '''!diff:trunk/trac@3538//sandbox/vc-refactoring@3539''' 
     14 * Wiki pages: '''!CamelCase''' or '''!wiki:CamelCase''' 
     15 * 마일스톤: '''!milestone:1.0''' 
     16 * 첨부파일: '''!attachment:ticket:944:attachment.1073.diff''' 
     17 * 소스 파일: '''!source:trunk/COPYING''' 
     18 * A specific file revision: '''!source:/trunk/COPYING@200''' 
     19 * A particular line of a specific file revision: '''!source:/trunk/COPYING@200#L25''' 
     20 
     21화면 표시: 
     22 * 티켓: #1 or ticket:1 
     23 * Ticket comments: comment:ticket:1:2  
     24 * 리포트: {1} or report:1 
     25 * Changesets: r1, [1], changeset:1, or (restricted) [1/trunk], changeset:1/trunk 
     26 * Revision log: r1:3, [1:3] or log:@1:3, log:trunk@1:3 
     27 * Diffs (requires [milestone:0.10 0.10]): diff:@20:30, diff:tags/trac-0.9.2/wiki-default//tags/trac-0.9.3/wiki-default or diff:trunk/trac@3538//sandbox/vc-refactoring/trac@3539 
     28 * 위키 페이지: CamelCase or wiki:CamelCase 
     29 * 마일스톤: milestone:1.0 
     30 * 첨부파일: attachment:ticket:944:attachment.1073.diff 
     31 * Files: source:trunk/COPYING 
     32 * A specific file revision: source:/trunk/COPYING@200 
     33 * A particular line of a specific file revision: source:/trunk/COPYING@200#L25 
     34 
     35'''Note:''' The wiki:CamelCase form is rarely used, but it can be convenient to refer to 
     36pages whose names do not follow WikiPageNames rules, i.e., single words, 
     37non-alphabetic characters, etc. See WikiPageNames for more about features specific 
     38to links to Wiki page names. 
     39 
     40완전한 표기법을 사용하는 Trac의 링크는 다음과 같이 링크에 해당하는 제목을 가질 수 있습니다. 
     41 
     42{{{ 
     43[ticket:1 이것은 티켓 번호 1번의 링크입니다]. 
     44}}} 
     45 
     46화면표시 : [ticket:1 이것은 티켓 번호 1번의 링크입니다]. 
     47 
     48만약 제목이 생략되면, id(콜론( : ) 뒷부분)만이 표시됩니다.: 
     49 
     50{{{ 
     51[ticket:1] 
     52}}} 
     53 
     54화면표시: [ticket:1] 
     55 
     56`wiki` is the default if the namespace part of a full link is omitted (''since version 0.10''): 
     57 
     58{{{ 
     59[SandBox the sandbox] 
     60}}} 
     61 
     62Display: [SandBox the sandbox] 
     63 
     64TracLinks are a very simple idea, but actually allow quite a complex network of information. In practice, it's very intuitive and simple to use, and we've found the "link trail" extremely helpful to better understand what's happening in a project or why a particular change was made. 
     65 
     66The following sections describe the individual link types in detail, as well as several notes advanced usage of links. 
     67 
     68== attachment: links == 
     69 
     70The link syntax for attachments is as follows: 
     71 * !attachment:the_file.txt creates a link to the attachment the_file.txt of the current object 
     72 * !attachment:wiki:MyPage:the_file.txt creates a link to the attachment the_file.txt of the !MyPage wiki page 
     73 * !attachment:ticket:753:the_file.txt creates a link to the attachment the_file.txt of the ticket 753 
     74 
     75== source: links == 
     76 
     77The default behavior for a source:/some/path link is to open the directory browser  
     78if the path points to a directory and otherwise open the log view.  
     79It's also possible to link directly to a specific revision of a file like this: source:/some/file@123  
     80or like this to link to the latest revision: source:/some/file@latest. 
     81If the revision is specified, one can even link to a specific line number: source:/some/file@123#L10  
     82 
     83== search: and query: links == 
     84 
     85See TracSearch#SearchLinks and TracQuery#UsingTracLinks 
     86 
     87== !SubWiki links == 
     88To create a SubWiki link to a SubWiki-page just use a '/': 
     89{{{ 
     90 [wiki:WikiPage/SubWikiPage]. 
     91}}} 
     92 
     93== InterWiki links == 
     94 
     95Other prefixes can be defined freely and made to point to resources in other Web applications. The definition of those prefixes as well as the URLs of the corresponding Web applications is defined in a special Wiki page, the InterMapTxt page. Note that while this could be used to create links to other Trac environments, there's a more specialized way to register other Trac environments which offers greater flexibility. 
     96 
     97== InterTrac links == 
     98 
     99Any of the above form of Trac links could be written in one Trac environment and actually refer to resources present in another Trac environment, provided the Trac link is prefixed by the name of that other Trac environment followed by a colon. That other Trac environment must be registered. See InterTrac for details.  
     100 
     101 
     102== Server-relative links == 
     103 
     104It is often useful to be able to link to objects on your server that have no built-in 
     105Trac linking mechanism, such as static resources, a `/register` page, etc. This 
     106can be achieved by simply using either an absolute path from the server root,  
     107or a relative link from the URL of the current page: 
     108 
     109{{{ 
     110[../newticket newticket] 
     111[/ home] 
     112}}} 
     113 
     114Display: [../newticket newticket] [/ home] 
     115 
     116== Quoting space in TracLinks == 
     117 
     118Immediately after a TracLinks prefix, targets containing space characters should 
     119be enclosed in a pair of quotes or double quotes. 
     120Examples: 
     121 * !wiki:"The whitespace convention" 
     122 * !attachment:'the file.txt' or 
     123 * !attachment:"the file.txt"  
     124 * !attachment:"ticket:123:the file.txt"  
     125 
     126== Where to use TracLinks == 
     127You can use TracLinks in: 
     128 
     129 * Source code (Subversion) commit messages 
     130 * Wiki pages 
     131 * Full descriptions for tickets, reports and milestones 
     132 
     133and any other text fields explicitly marked as supporting WikiFormatting. 
     134 
     135== Escaping Links == 
     136 
     137To prevent parsing of a !TracLink, you can escape it by preceding it with a '!' (exclamation mark). 
     138{{{ 
     139 !NoLinkHere. 
     140 ![42] is not a link either. 
     141}}} 
     142 
     143Display: 
     144 !NoLinkHere. 
     145 ![42] is not a link either. 
     146 
     147---- 
     148참고 : WikiFormatting, TracWiki, WikiPageNames, InterTrac, InterWiki