'Wiki'에 해당되는 글 3

  1. 2010.05.20 Trac Macros
  2. 2009.09.01 Trac Links
  3. 2009.08.28 위키 문법

Trac Macros

- JSPWiki의 TableOfContents와 같은 기능을 찾아보니 PageOutline 매크로가 있다.

= 테스트 프로젝트임 =

[[PageOutline]] //기본적으로 모든 heading을 대상으로 한다.

[[PageOutline(2-4, Title)]] //heading이 2에서 4인 것으로 아웃라인을 만들고 제목은 Title이라고 한다.

== Heading 2 ==

==== Heading 4 ====


- Image
[[Image(photo.jpg)]]
[[Image(http://some.com/imgs/photo.jpg)]]
[[Image(photo.jpg, 300)]] //width
[[Image(OtherWikiPage:deploy5.png)]] //다른 페이지의 이미지

- Trac Macros

Trac Links

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.

Ticket에 Wiki로 링크를 걸 수 있다. 반대도 가능.

- 첨부파일 링크
attachment:the_file.txt

//다른 위키페이지의 첨부파일 링크
attachment:the_file.txt:wiki:MyPage //안됨
attachment:wiki:MyPage:the_file.txt
[attachment:wiki:MyPage:the_file.txt 클릭하세요]
[/projects/MyProject/attachment/wiki/MyPage/한글%20파일.txt] //파일명이 한글인 경우에는 이렇게 밖에 안됨.

attachment:Settlement_SqlMap.xml#L349 //첨부파일의 라인을 지정할 수 없음. source만 가능

//다른 티켓의 첨부파일 링크
attachment:ticket:42:error.log //42번 티켓에 첨부된 error.log

- 마일스톤 링크
[milestone:demo demo 마일스톤]

- 티켓 링크
[ticket:15 Link to Ticket 15]

- 소스 링크
[source:/demo/trunk/resources/data/script/demo_function_dev.sql@3 함수 생성]
source:/demo/trunk/WebContent/WEB-INF/ibatis_config/sql/Settlement_SqlMap.xml@12#L349 //리비전 12의 소스에서 349번째 줄

http://1.2.3.4:1234/projects/XxxPrj/browser/com.xxx.ep.logon/trunk/PORTAL-INF/page.jsp?rev=383#L23
source://com.xxx.ep.logon/trunk/PORTAL-INF/page.jsp@383#L23

- 특히 SVN과 연동해서 변경사항이나 소스에 대한 링크를 걸어서 Ticket이나 Wiki에 기록할 수 있다.
[15]

http://1.2.3.4:1234/projects/XxxPrj/changeset/1
r1, [1], changeset:1, or (restricted) [1/trunk], changeset:1/trunk


- 위키 페이지 작성시 "변경사항에 대한 설명 (부가정보)"에 링크를 걸 수 있다.
#1 //티켓
http://google.com //외부 링크
[wiki:link]에서 확인 가능함. //같은 프로젝트 위키 페이지
[/projects/XxxPrj/wiki/sysinfo] //다른 프로젝트 위키 페이지

- 다른 프로젝트로 링크
[/projects/XxxPrj/wiki/sysinfo]
http://1.2.3.4/projects/XxxPrj/wiki/sysinfo //이것도 가능, 그러나 위와 같이 하자.


위키 문법

- JSPWiki 형식
- Trac Wiki 형식

Trac Wiki
= 유지보수 = / === 작은 제목 ===

JSPWiki
!!!유지보수 / !작은 제목

Trac Wiki
[wiki:SystemInfo 시스템 정보]
[wiki:시스템_정보 시스템 정보] //링크될 페이지 이름에 공백이 있으면 안됨
[/projects/OtherProject/wiki/시스템_정보 시스템 정보] //다른 프로젝트의 위키로 링크를 건다.
[attachment:wiki:인터페이스:인터페이스_정의서_v1.4.xlsx?format=raw 인터페이스 정의서] 참고 //Ticket에서 다른 wiki페이지에 첨부된 파일 링크

JSPWiki
[시스템 정보|SystemInfo]

Trac Wiki
 * LIST1 //* 앞뒤로 공백이 있어야 함.
  * LIST2
   * LIST3

JSPWiki
* LIST1
** LIST2
*** LIST3

Trac Wiki
 1. LIST1
 1. LIST2
  1. LIST2.1
  1. LIST2.2

JSPWiki
# LIST1
# LIST2
## LIST2.1
## LIST2.2

Trac Wiki
||Cell 1||Cell 2

- *와 테이블을 같이 사용할 때 (공백)||Cell 1... 이렇게 사용하면 보기 좋게 정렬된다.

Trac Wiki
~~취소선~~

JSPWiki
%%strike 취소선/%

Trac Wiki
'''강조'''