1 | | = Wiki 文法 = |
2 | | |
3 | | Wiki マークアップは Trac のコアとなる機能です。他のパーツと緊密に統合することによって、Trac をフレキシブルかつ強力にしています。 |
4 | | |
5 | | Trac は小さく強力な Wiki レンダリングエンジンをビルトインしています。この Wiki エンジンは、他のポピュラーな Wiki (特に [http://moin.sf.net/ MoinWiki])からのコマンドの強化サブセットを実装しています。 |
6 | | |
7 | | このページは、 WikiFormatting でフォーマットできる文法の文例集です。 |
8 | | |
9 | | == フォントスタイル == |
10 | | |
11 | | Trac の Wiki は以下のフォントスタイルをサポートしています: '''ボールド''', ''イタリック'', |
12 | | __アンダーライン__ and ~~取り消し線~~。 |
13 | | |
14 | | {{{ |
15 | | Trac の Wiki は以下のフォントスタイルをサポートしています: '''ボールド''', ''イタリック'', |
16 | | __アンダーライン__ and ~~取り消し線~~。 |
17 | | }}} |
18 | | |
19 | | |
20 | | == 見出し == |
21 | | |
22 | | 1文字から5文字の「イコール '='」を行頭に置き、1文字のスペースに続けてタイトルを置くと、 |
23 | | 見出しになります。見出しの行末は1文字のスペースに続けて、行頭と同じ数の ''イコール (=)''を |
24 | | 置きます。 |
25 | | |
26 | | ''Note: 見出しの箇所は、 TracLinks の対象になりません。'' |
27 | | |
28 | | === 例: === |
29 | | {{{ |
30 | | = 見出し(第1レベル) = |
31 | | == 見出し(第2レベル) == |
32 | | }}} |
33 | | |
34 | | |
35 | | == 改行 == |
36 | | |
37 | | 2つのテキストブロックの間に1行以上の空行がある場合、新しい段落として改行を行います。 |
38 | | (訳注: HTMLでは、p要素になります) |
39 | | |
40 | | 強制的に改行だけを行いたい場合、このように書いてください: |
41 | | {{{ |
42 | | 1行目[[BR]]2行目 |
43 | | }}} |
44 | | 以下のように表示されます: |
45 | | |
46 | | 1行目[[BR]]2行目 |
47 | | |
48 | | 2文字以上のスペースで行が始まる場合、段落と認識されます。(訳注: この場合、空白の数に応じてネストします。) |
49 | | |
50 | | == リスト == |
51 | | 番号付きリストと番号無しリストの両方をサポートします。 |
52 | | |
53 | | 例: |
| 1 | = WikiFormatting = |
| 2 | [[TracGuideToc]] |
| 3 | |
| 4 | Wiki markup is a core feature in Trac, tightly integrating all the other parts of Trac into a flexible and powerful whole. |
| 5 | |
| 6 | Trac has a built in small and powerful wiki rendering engine. This wiki engine implements an ever growing subset of the commands from other popular Wikis, |
| 7 | especially [http://moinmoin.wikiwikiweb.de/ MoinMoin]. |
| 8 | |
| 9 | |
| 10 | This page demonstrates the formatting syntax available anywhere WikiFormatting is allowed. |
| 11 | |
| 12 | |
| 13 | == Font Styles == |
| 14 | |
| 15 | The Trac wiki supports the following font styles: |
| 16 | {{{ |
| 17 | * '''bold''' |
| 18 | * ''italic'' |
| 19 | * '''''bold italic''''' |
| 20 | * __underline__ |
| 21 | * {{{monospace}}} or `monospace` |
| 22 | * ~~strike-through~~ |
| 23 | * ^superscript^ |
| 24 | * ,,subscript,, |
| 25 | }}} |
| 26 | |
| 27 | Display: |
| 28 | * '''bold''' |
| 29 | * ''italic'' |
| 30 | * '''''bold italic''''' |
| 31 | * __underline__ |
| 32 | * {{{monospace}}} or `monospace` |
| 33 | * ~~strike-through~~ |
| 34 | * ^superscript^ |
| 35 | * ,,subscript,, |
| 36 | |
| 37 | Note that the `{{{...}}}` and {{{`...`}}} commands not only select a monospace font, but also treat their content as verbatim text, meaning that no further wiki processing is done on this text. |
| 38 | |
| 39 | == Headings == |
| 40 | |
| 41 | You can create heading by starting a line with one up to five ''equal'' characters ("=") |
| 42 | followed by a single space and the headline text. The line should end with a space |
| 43 | followed by the same number of ''='' characters. |
| 44 | |
| 45 | Example: |
| 46 | {{{ |
| 47 | = Heading = |
| 48 | == Subheading == |
| 49 | === About ''this'' === |
| 50 | }}} |
| 51 | |
| 52 | Display: |
| 53 | = Heading = |
| 54 | == Subheading == |
| 55 | === About ''this'' === |
| 56 | |
| 57 | |
| 58 | == Paragraphs == |
| 59 | |
| 60 | A new text paragraph is created whenever two blocks of text are separated by one or more empty lines. |
| 61 | |
| 62 | A forced line break can also be inserted, using: |
| 63 | {{{ |
| 64 | Line 1[[BR]]Line 2 |
| 65 | }}} |
| 66 | Display: |
| 67 | |
| 68 | Line 1[[BR]]Line 2 |
| 69 | |
| 70 | |
| 71 | == Lists == |
| 72 | |
| 73 | The wiki supports both ordered/numbered and unordered lists. |
| 74 | |
| 75 | Example: |
72 | | == 整形済みテキスト == |
73 | | 引用ブロック(block quote)、整形済みテキストは、ソースコードの一部や、ノート、例示に適しています。引用ブロックとしたいテキストの前後を、3つの ''ブレース (curly braces)'' で括ってください。 |
| 95 | Note that there must be one or more spaces preceding the list item markers, otherwise the list will be treated as a normal paragraph. |
| 96 | |
| 97 | |
| 98 | == Definition Lists == |
| 99 | |
| 100 | The wiki also supports definition lists. |
| 101 | |
| 102 | Example: |
| 103 | {{{ |
| 104 | llama:: |
| 105 | some kind of mammal, with hair |
| 106 | ppython:: |
| 107 | some kind of reptile, without hair |
| 108 | (can you spot the typo?) |
| 109 | }}} |
| 110 | |
| 111 | Display: |
| 112 | llama:: |
| 113 | some kind of mammal, with hair |
| 114 | ppython:: |
| 115 | some kind of reptile, without hair |
| 116 | (can you spot the typo?) |
| 117 | |
| 118 | Note that you need a space in front of the defined term. |
| 119 | |
| 120 | |
| 121 | == Preformatted Text == |
| 122 | |
| 123 | Block containing preformatted text are suitable for source code snippets, notes and examples. Use three ''curly braces'' wrapped around the text to define a block quote. The curly braces need to be on a separate line. |
100 | | == リンク == |
101 | | |
102 | | WikiPageNames や URL は自動的にハイパーリンクされます。 !WikiPageLinks を無効化したい場合、 |
103 | | {{{!WikiPageLink}}} のように、エクラメーションマーク (!) を語頭に置きます。 |
104 | | |
105 | | 例: |
106 | | |
107 | | TitleIndex, http://www.edgewall.com/. |
108 | | |
109 | | リンク先そのものでなくリンク先の内容説明やタイトルを表示させたい場合、 |
110 | | 角括弧 (square bracket) で括り、リンクに続いて1文字の空白を開けて記述します: |
| 164 | Note that more complex tables can be created using |
| 165 | [wiki:WikiRestructuredText#BiggerReSTExample reStructuredText]. |
| 166 | |
| 167 | |
| 168 | == Links == |
| 169 | |
| 170 | Hyperlinks are automatically created for WikiPageNames and URLs. !WikiPageLinks can be disabled by prepending an exclamation mark "!" character, such as {{{!WikiPageLink}}}. |
| 171 | |
| 172 | Example: |
| 173 | {{{ |
| 174 | TitleIndex, http://www.edgewall.com/, !NotAlink |
| 175 | }}} |
| 176 | |
| 177 | Display: |
| 178 | TitleIndex, http://www.edgewall.com/, !NotAlink |
| 179 | |
| 180 | Links can be given a more descriptive title by writing the link followed by a space and a title and all this inside square brackets. If the descriptive title is omitted, then the explicit prefix is disguarded, unless the link is an external link. This can be useful for wiki pages not adhering to the WikiPageNames convention. |
| 181 | |
| 182 | Example: |
119 | | |
120 | | === Trac リンク === |
121 | | |
122 | | Wiki ページでは Trac の他のコンポーネントに直接リンクできます。 |
123 | | チケット、レポート、チェンジセット、マイルストーン、ソースファイル、 |
124 | | 他の Wiki ページへは以下のようにリンクを記述します: |
125 | | * チケット: '''!#1''' もしくは '''!ticket:1''' |
126 | | * レポート: '''!{1}''' もしくは '''!report:1''' |
127 | | * チェンジセット: '''![1]''' もしくは '''!changeset:1''' |
128 | | * Wiki ページ: '''CamelCase''' もしくは '''!wiki:CamelCase''' |
129 | | * マイルストーン: '''!milestone:1.0''' |
130 | | * ファイル: '''!source:trunk/COPYING''' |
131 | | * 特定リビジョンのファイル: '''!source:/trunk/COPYING#200''' |
132 | | 以下のように表示されます: |
133 | | * チケット: #1 もしくは ticket:1 |
134 | | * レポート: {1} もしくは report:1 |
135 | | * チェンジセット: [1] もしくは changeset:1 |
136 | | * Wiki ページ: CamelCase もしくは wiki:CamelCase |
137 | | * マイルストーン: milestone:1.0 |
138 | | * ファイル: source:trunk/COPYING |
139 | | * 特定リビジョンのファイル: source:/trunk/COPYING#200 |
140 | | |
141 | | より深い情報は TracLinks に記述されています。 |
142 | | |
143 | | == リンクの無効化 == |
144 | | エクラメーションマーク(!)を語頭に付与することで、 TracLinks が出力するハイパーリンクを無効化できます。 |
145 | | |
| 192 | * [wiki:ISO9000] |
| 193 | |
| 194 | |
| 195 | === Trac Links === |
| 196 | |
| 197 | Wiki pages can link directly to other parts of the Trac system. Pages can refer to tickets, reports, changesets, milestones, source files and other Wiki pages using the following notations: |
| 198 | {{{ |
| 199 | * Tickets: #1 or ticket:1 |
| 200 | * Reports: {1} or report:1 |
| 201 | * Changesets: r1, [1] or changeset:1 |
| 202 | * Revision Logs: r1:3, [1:3] or log:branches/0.8-stable#1:3 |
| 203 | * Wiki pages: CamelCase or wiki:CamelCase |
| 204 | * Milestones: milestone:1.0 or milestone:"End-of-days Release" |
| 205 | * Files: source:trunk/COPYING |
| 206 | * Attachments: attachment:"file name.doc" |
| 207 | * A specific file revision: source:/trunk/COPYING#200 |
| 208 | * A filename with embedded space: source:"/trunk/README FIRST" |
| 209 | }}} |
| 210 | |
| 211 | Display: |
| 212 | * Tickets: #1 or ticket:1 |
| 213 | * Reports: {1} or report:1 |
| 214 | * Changesets: r1, [1] or changeset:1 |
| 215 | * Revision Logs: r1:3, [1:3] or log:branches/0.8-stable#1:3 |
| 216 | * Wiki pages: CamelCase or wiki:CamelCase |
| 217 | * Milestones: milestone:1.0 or milestone:"End-of-days Release" |
| 218 | * Files: source:trunk/COPYING |
| 219 | * Attachments: attachment:"file name.doc" |
| 220 | * A specific file revision: source:/trunk/COPYING#200 |
| 221 | * A filename with embedded space: source:"/trunk/README FIRST" |
| 222 | |
| 223 | See TracLinks for more in-depth information. |
| 224 | |
| 225 | |
| 226 | == Escaping Links and WikiPageNames == |
| 227 | |
| 228 | You may avoid making hyperlinks out of TracLinks by preceding an expression with a single "!" (exclamation mark). |
| 229 | |
| 230 | Example: |