= Trac 링크 =

추측했듯이, [wiki:TracLinks]는 Trac의 매우 기본적인 기능입니다.

[wiki:TracLinks]는 [wiki:WikiFormatting]을 사용하는 어떤 곳에도 Trac 전체(티켓, 리포트, 변경사항, 위키페이지, 마일스톤 그리고 소스파일들)에 대한 하이퍼링크를 지원합니다.

[wiki:TracLinks]는 자주 사용되는 아이템의 경우에는 짧은 표기법이 존재하지만, 일반적으로는 '''type:id''' 의 형태를 가집니다. (''id''는 아이템의 숫자, 이름 혹은 경로를 의미합니다.)

예제들:
 * 티켓: '''!#1''' or '''!ticket:1'''
 * 리포트: '''!{1}''' or '''!report:1'''
 * 변경사항: '''!r1''', '''![1]''' or '''!changeset:1'''
 * 리비전 로그: '''!r1:3''', '''![1:3]''' or '''!log:#1:3'''
 * 위키 페이지: '''CamelCase''' or '''!wiki:CamelCase'''
 * 마일스톤: '''!milestone:1.0'''
 * 첨부파일: '''!attachment:ticket:944:attachment.1073.diff'''
 * 소스 파일: '''!source:trunk/COPYING'''
 * 소스 파일의 특정 리비전: '''!source:/trunk/COPYING#200''', '''!source:/trunk/COPYING#latest'''

화면 표시:
 * 티켓: #1 or ticket:1
 * 리포트: {1} or report:1
 * 변경사항: [1] or changeset:1
 * 리비전 로그: r1:3, [1:3] or log:#1:3
 * 위키 페이지: CamelCase or wiki:CamelCase
 * 마일스톤: milestone:1.0
 * 첨부파일: attachment:ticket:944:attachment.1073.diff
 * 소스 파일: source:trunk/COPYING
 * 소스 파일의 특정 리비전: source:/trunk/COPYING#200, source:/trunk/COPYING#latest

'''주의:''' wiki:CamelCase 형태는 좀처럼 사용되지 않습니다. 하지만 [wiki:WikiPageNames] 규칙을 따르지 않는 위키페이지를 참조할 경우에 편리하게 사용될 수 있습니다. 예를 들면, 한단어, 혹은 알파벳이 아닌 문자등.

완전한 표기법을 사용하는 Trac의 링크는 다음과 같이 링크에 해당하는 제목을 가질 수 있습니다.

{{{
[ticket:1 이것은 티켓 번호 1번의 링크입니다].
}}}

화면표시 : [ticket:1 이것은 티켓 번호 1번의 링크입니다].

만약 제목이 생략되면, id(콜론( : ) 뒷부분)만이 표시됩니다.:

{{{
[ticket:1]
}}}

화면표시: [ticket:1]

얼핏보기에는 너무 간단해 보일 수 있습니다. 하지만 실제적으로 정보의 복잡한 네트웍을 충분히 표현할 수 있습니다. 실제적으로, [wiki:TracLinks]는 사용하기가 매우 직관적이며 간단합니다. 그리고 프로젝트에 어떤 변경이 가해졌는지, 각각의 변경을 왜 했는지를 더 잘 이해하기 위해서 [wiki:TracLinks]을 사용할 수 있습니다.

== attachement: links ==

The link syntax for attachments is as follows:
 * !attachment:the_file.txt creates a link to the attachment the_file.txt of the current object
 * !attachment:wiki:MyPage:the_file.txt creates a link to the attachment the_file.txt of the !MyPage wiki page
 * !attachment:ticket:753:the_file.txt creates a link to the attachment the_file.txt of the ticket 753 !attachment:wiki:MyPage:the_file.txt

== source: links ==

The default behavior for a source:/some/path link is to open the directory browser 
if the path points to a directory and otherwise open the log view. 
It's also possible to link directly to a specific revision of a file like this: source:/some/file@123 
or like this to link to the latest revision: source:/some/file@latest.
If the revision is specified, one can even link to a specific line number: !source:/some/file@123#L10 
[[comment(TODO: remove the ! when Edgewall Trac is upgraded with the support for the line syntax)]]

== Quoting space in TracLinks ==

The usual syntax for quoting space is:

 * !attachment:'the file.txt' or
 * !attachment:"the file.txt" 

== TracLinks를 어디에서 사용할 수 있는가 ==
TracLinks를 다음과 같은 곳에 사용할 수 있습니다:

 * 소스 코드(Subversion에 저장된)의 커밋메시지
 * 위키 페이지
 * 티켓, 리포트 그리고 마일스톤에 대한 상세한 설명

그리고 [wiki:WikiFormatting]을 지원한다고 표시된 어떤 텍스트 필드에서도 사용가능합니다..

== 링크하지 않기 ==

TracLink로 처리되지 않게 하기 위해서는, 단어 앞에 '!'(느낌표)를 붙이면 됩니다.
{{{
 !NoLinkHere.
 ![42] is not a link either.
}}}

화면표시:
 !NoLinkHere.
 ![42] is not a link either.

----
참고: WikiFormatting, TracWiki
