1 | | = УикиФорматиране = |
2 | | |
3 | | ''[wiki:WikiFormatting-en Оригиналът на тази страница] е на английски език.'' |
4 | | |
5 | | Форматирането в стил [http://bg.wikipedia.org/wiki/уики уики] (англ. [http://en.wikipedia.org/wiki/Wiki wiki]) е една от съществените възможности на Trac. То е тясно интегрирано с останалите части на Trac, за да образуват заедно едно мощно и гъвкаво цяло. |
6 | | |
7 | | Трак притежава малка, но мощна вградена система за оформление в стил "уики". Това уики реализира постоянно нарастващо подмножество на командите от други популярни системи, особено от [http://moin.sf.net/ MoinWiki]. |
8 | | |
9 | | Тази страница демонстрира форматиращия синтаксис, приложим навсякъде, където е допустимо УикиФорматиране. |
10 | | |
11 | | == Стилове на шрифта == |
12 | | |
13 | | Уикито на Trac поддържа следните стилове на шрифта: '''получер''', ''курсив'', |
14 | | __подчертан__ и ~~зачеркнат~~. |
15 | | |
16 | | {{{ |
17 | | Уикито на Trac поддържа следните стилове на шрифта: '''получер''', ''курсив'', |
18 | | __подчертан__ и ~~зачеркнат~~. |
19 | | }}} |
20 | | |
21 | | |
22 | | == Заглавие == |
23 | | |
24 | | Можете да създадете заглавие като започнете реда с от един до пет символа за равенство ('='), |
25 | | последвани от една шпация и текста на заглавието. Редът трябва да завършва отново със шпация, |
26 | | последвана от още толкова символа за равенство. |
27 | | |
28 | | ''Забележка: Засега заглавията не могат да съдържат [wiki:TracLinks ТракВръзки]. |
29 | | |
30 | | === Пример: === |
31 | | {{{ |
32 | | = Заглавие = |
33 | | == Подзаглавие == |
34 | | }}} |
35 | | |
36 | | |
37 | | == Абзаци == |
38 | | |
39 | | Нов абзац се отбелязва като текстът бъде разделен от един или повече празни редове. |
40 | | |
41 | | Също така, можете да поставите изричен знак за нов ред: |
42 | | |
43 | | {{{ |
44 | | Ред 1[[BR]]Ред 2 |
45 | | }}} |
46 | | Изглед: |
47 | | |
48 | | Ред 1[[BR]]Ред 2 |
49 | | |
50 | | Текстът в абзаците може да се оформи с отстъп като в началото на реда се поставят две или повече шпации. |
51 | | |
52 | | |
53 | | == Списъци == |
54 | | Уикито поддържа подредени/номерирани и неподредени списъци. |
55 | | |
56 | | Пример: |
57 | | {{{ |
58 | | * Точка 1 |
59 | | * Точка 1.1 |
60 | | * Точка 2 |
61 | | |
62 | | 1. Точка 1 |
63 | | 1. Точка 1.1 |
64 | | 1. Точка 2 |
65 | | }}} |
66 | | Изглед: |
67 | | * Точка 1 |
68 | | * Точка 1.1 |
69 | | * Точка 2 |
70 | | |
71 | | 1. Точка 1 |
72 | | 1. Точка 1.1 |
73 | | 1. Точка 2 |
74 | | |
75 | | |
76 | | == Предварително форматиран текст == |
77 | | Блоковите цитати и предварително форматираният текст са подходящи за фрагменти от изходен код, бележки или примери. Използвайте три ''къдрави скоби'' за да заградите текста като блоков цитат: |
78 | | |
79 | | Пример: |
| 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''', '''!''' can be bold too''', and '''! ''' |
| 18 | * ''italic'' |
| 19 | * '''''bold italic''''' |
| 20 | * __underline__ |
| 21 | * {{{monospace}}} or `monospace` |
| 22 | * ~~strike-through~~ |
| 23 | * ^superscript^ |
| 24 | * ,,subscript,, |
| 25 | }}} |
| 26 | |
| 27 | Display: |
| 28 | * '''bold''', '''!''' can be bold too''', and '''! ''' |
| 29 | * ''italic'' |
| 30 | * '''''bold italic''''' |
| 31 | * __underline__ |
| 32 | * {{{monospace}}} or `monospace` |
| 33 | * ~~strike-through~~ |
| 34 | * ^superscript^ |
| 35 | * ,,subscript,, |
| 36 | |
| 37 | Notes: |
| 38 | * `{{{...}}}` 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. |
| 39 | * {{{ ! }}} tells wiki parser to not take the following characters as wiki format, so pay attention to put a space after !, e.g. when ending bold. |
| 40 | |
| 41 | == Headings == |
| 42 | |
| 43 | You can create heading by starting a line with one up to five ''equal'' characters ("=") |
| 44 | followed by a single space and the headline text. The line should end with a space |
| 45 | followed by the same number of ''='' characters. |
| 46 | The heading might optionally be followed by an explicit id. If not, an implicit but nevertheless readable id will be generated. |
| 47 | |
| 48 | Example: |
| 49 | {{{ |
| 50 | = Heading = |
| 51 | == Subheading == |
| 52 | === About ''this'' === |
| 53 | === Explicit id === #using-explicit-id-in-heading |
| 54 | }}} |
| 55 | |
| 56 | Display: |
| 57 | = Heading = |
| 58 | == Subheading == |
| 59 | === About ''this'' === |
| 60 | === Explicit id === #using-explicit-id-in-heading |
| 61 | |
| 62 | == Paragraphs == |
| 63 | |
| 64 | A new text paragraph is created whenever two blocks of text are separated by one or more empty lines. |
| 65 | |
| 66 | A forced line break can also be inserted, using: |
| 67 | {{{ |
| 68 | Line 1[[BR]]Line 2 |
| 69 | }}} |
| 70 | Display: |
| 71 | |
| 72 | Line 1[[BR]]Line 2 |
| 73 | |
| 74 | |
| 75 | == Lists == |
| 76 | |
| 77 | The wiki supports both ordered/numbered and unordered lists. |
| 78 | |
| 79 | Example: |
| 80 | {{{ |
| 81 | * Item 1 |
| 82 | * Item 1.1 |
| 83 | * Item 2 |
| 84 | |
| 85 | 1. Item 1 |
| 86 | a. Item 1.a |
| 87 | a. Item 1.b |
| 88 | i. Item 1.b.i |
| 89 | i. Item 1.b.ii |
| 90 | 1. Item 2 |
| 91 | And numbered lists can also be given an explicit number: |
| 92 | 3. Item 3 |
| 93 | }}} |
| 94 | |
| 95 | Display: |
| 96 | * Item 1 |
| 97 | * Item 1.1 |
| 98 | * Item 2 |
| 99 | |
| 100 | 1. Item 1 |
| 101 | a. Item 1.a |
| 102 | a. Item 1.b |
| 103 | i. Item 1.b.i |
| 104 | i. Item 1.b.ii |
| 105 | 1. Item 2 |
| 106 | And numbered lists can also be given an explicit number: |
| 107 | 3. Item 3 |
| 108 | |
| 109 | Note that there must be one or more spaces preceding the list item markers, otherwise the list will be treated as a normal paragraph. |
| 110 | |
| 111 | |
| 112 | == Definition Lists == |
| 113 | |
| 114 | |
| 115 | The wiki also supports definition lists. |
| 116 | |
| 117 | Example: |
| 118 | {{{ |
| 119 | llama:: |
| 120 | some kind of mammal, with hair |
| 121 | ppython:: |
| 122 | some kind of reptile, without hair |
| 123 | (can you spot the typo?) |
| 124 | }}} |
| 125 | |
| 126 | Display: |
| 127 | llama:: |
| 128 | some kind of mammal, with hair |
| 129 | ppython:: |
| 130 | some kind of reptile, without hair |
| 131 | (can you spot the typo?) |
| 132 | |
| 133 | Note that you need a space in front of the defined term. |
| 134 | |
| 135 | |
| 136 | == Preformatted Text == |
| 137 | |
| 138 | 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. |
| 139 | |
| 140 | Example: |
93 | | == Таблици == |
94 | | |
95 | | Ето така можете да създавате прости таблици: |
96 | | {{{ |
97 | | ||Клетка 1||Клетка 2||Клетка 3|| |
98 | | ||Клетка 4||Клетка 5||Клетка 6|| |
99 | | }}} |
100 | | Изглед: |
101 | | ||Клетка 1||Клетка 2||Клетка 3|| |
102 | | ||Клетка 4||Клетка 5||Клетка 6|| |
103 | | |
104 | | == Връзки == |
105 | | |
106 | | !ИменатаНаУикиСтранци и уеб-адресите автоматично се превръщат в хипервръзки. !ВръзкитеКъмУикиСтраници могат да бъдат подтиснати |
107 | | като се прибави удивителен знак (!) в началото, например {{{!ВръзкаКъмУикиСтраница}}}. |
108 | | |
109 | | Примери: |
110 | | |
111 | | TitleIndex, http://www.edgewall.com/. |
112 | | |
113 | | На връзките може да се задава по-описателно заглавие като след връзката се поставя |
114 | | интервал и се посочва заглавие, като всичко това се загражда в квадратни скоби. Ето така: |
115 | | |
| 154 | |
| 155 | == Blockquotes == |
| 156 | |
| 157 | In order to mark a paragraph as blockquote, indent that paragraph with two spaces. |
| 158 | |
| 159 | Example: |
| 160 | {{{ |
| 161 | This text is a quote from someone else. |
| 162 | }}} |
| 163 | |
| 164 | Display: |
| 165 | This text is a quote from someone else. |
| 166 | |
| 167 | == Discussion Citations == |
| 168 | |
| 169 | To delineate a citation in an ongoing discussion thread, such as the ticket comment area, e-mail-like citation marks (">", ">>", etc.) may be used. |
| 170 | |
| 171 | Example: |
| 172 | {{{ |
| 173 | >> Someone's original text |
| 174 | > Someone else's reply text |
| 175 | My reply text |
| 176 | }}} |
| 177 | |
| 178 | Display: |
| 179 | >> Someone's original text |
| 180 | > Someone else's reply text |
| 181 | My reply text |
| 182 | |
| 183 | ''Note: Some WikiFormatting elements, such as lists and preformatted text, are lost in the citation area. Some reformatting may be necessary to create a clear citation.'' |
| 184 | |
| 185 | == Tables == |
| 186 | |
| 187 | Simple tables can be created like this: |
| 188 | {{{ |
| 189 | ||Cell 1||Cell 2||Cell 3|| |
| 190 | ||Cell 4||Cell 5||Cell 6|| |
| 191 | }}} |
| 192 | |
| 193 | Display: |
| 194 | ||Cell 1||Cell 2||Cell 3|| |
| 195 | ||Cell 4||Cell 5||Cell 6|| |
| 196 | |
| 197 | Note that more complex tables can be created using |
| 198 | [wiki:WikiRestructuredText#BiggerReSTExample reStructuredText]. |
| 199 | |
| 200 | |
| 201 | == Links == |
| 202 | |
| 203 | Hyperlinks are automatically created for WikiPageNames and URLs. !WikiPageLinks can be disabled by prepending an exclamation mark "!" character, such as {{{!WikiPageLink}}}. |
| 204 | |
| 205 | Example: |
| 206 | {{{ |
| 207 | TitleIndex, http://www.edgewall.com/, !NotAlink |
| 208 | }}} |
| 209 | |
| 210 | Display: |
| 211 | TitleIndex, http://www.edgewall.com/, !NotAlink |
| 212 | |
| 213 | 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 discarded, unless the link is an external link. This can be useful for wiki pages not adhering to the WikiPageNames convention. |
| 214 | |
| 215 | Example: |
124 | | |
125 | | === Trac Връзки === |
126 | | |
127 | | Уики-страниците могат да съдържат директни връзки към останалите части от системата на Trac. |
128 | | Страниите могат да насочват към билети, доклади, промени, крайъгълни камъни, изходни файлове и |
129 | | други Уики-страници използвайки следната нотация: |
130 | | * Билети: '''!#1''' or '''!ticket:1'' |
131 | | * Доклади: '''!{1}''' or '''!report:1''' |
132 | | * Промени: '''![1]''' or '''!changeset:1''' |
133 | | * Уики-страници: '''CamelCase''' or '''!wiki:CamelCase''' |
134 | | * Крайъгълни камъни: '''!milestone:1.0''' |
135 | | * Файлове: '''!source:trunk/COPYING''' |
136 | | * Конкретна ревизия на файл: '''!source:/trunk/COPYING#200''' |
137 | | Изглед: |
138 | | * Билети: #1 or ticket:1 |
139 | | * Доклади: {1} or report:1 |
140 | | * Промени: [1] or changeset:1 |
141 | | * "Уики"-страници: CamelCase or wiki:CamelCase |
142 | | * Крайъгълни камъни: milestone:1.0 |
143 | | * Файлове: source:trunk/COPYING |
144 | | * Конкретна ревизия на файл: source:/trunk/COPYING#200 |
145 | | |
146 | | За по-подробна информация вижте [wiki:TracLinks TracВръзки]. |
147 | | |
148 | | == Екраниране на връзки и УикиИмена == |
149 | | Можете да избегнете хипервръзките, които се появяват върху дадени TracВръзки като ги предходите с единичен '!' (удивителен знак). |
150 | | |
| 225 | * [wiki:ISO9000] |
| 226 | |
| 227 | |
| 228 | === Trac Links === |
| 229 | |
| 230 | 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: |
| 231 | {{{ |
| 232 | * Tickets: #1 or ticket:1 |
| 233 | * Reports: {1} or report:1 |
| 234 | * Changesets: r1, [1] or changeset:1 |
| 235 | * ... |
| 236 | }}} |
| 237 | |
| 238 | Display: |
| 239 | * Tickets: #1 or ticket:1 |
| 240 | * Reports: {1} or report:1 |
| 241 | * Changesets: r1, [1] or changeset:1 |
| 242 | * ... |
| 243 | |
| 244 | See TracLinks for more in-depth information. |
| 245 | |
| 246 | |
| 247 | == Escaping Links and WikiPageNames == |
| 248 | |
| 249 | You may avoid making hyperlinks out of TracLinks by preceding an expression with a single "!" (exclamation mark). |
| 250 | |
| 251 | Example: |