Changes between Version 4 and Version 5 of WikiFormatting
- Timestamp:
- 09/17/06 21:44:11 (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiFormatting
v4 v5 15 15 The Trac wiki supports the following font styles: 16 16 {{{ 17 * '''bold''' 17 * '''bold''', '''!''' can be bold too''' 18 18 * ''italic'' 19 19 * '''''bold italic''''' … … 26 26 27 27 Display: 28 * '''bold''' 28 * '''bold''', '''!''' can be bold too''' 29 29 * ''italic'' 30 30 * '''''bold italic''''' … … 35 35 * ,,subscript,, 36 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. 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. 38 40 39 41 == Headings == … … 42 44 followed by a single space and the headline text. The line should end with a space 43 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. 44 47 45 48 Example: … … 48 51 == Subheading == 49 52 === About ''this'' === 53 === Explicit id === #using-explicit-id-in-heading 50 54 }}} 51 55 … … 54 58 == Subheading == 55 59 === About ''this'' === 56 60 === Explicit id === #using-explicit-id-in-heading 57 61 58 62 == Paragraphs == … … 80 84 81 85 1. Item 1 82 1. Item 1.1 86 a. Item 1.a 87 a. Item 1.b 88 i. Item 1.b.i 89 i. Item 1.b.ii 83 90 1. Item 2 91 And numbered lists can also be given an explicit number: 92 3. Item 3 84 93 }}} 85 94 … … 90 99 91 100 1. Item 1 92 1. Item 1.1 101 a. Item 1.a 102 a. Item 1.b 103 i. Item 1.b.i 104 i. Item 1.b.ii 93 105 1. Item 2 106 And numbered lists can also be given an explicit number: 107 3. Item 3 94 108 95 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. … … 97 111 98 112 == Definition Lists == 113 99 114 100 115 The wiki also supports definition lists. … … 150 165 This text is a quote from someone else. 151 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 152 185 == Tables == 153 186 … … 178 211 TitleIndex, http://www.edgewall.com/, !NotAlink 179 212 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 dis guarded, unless the link is an external link. This can be useful for wiki pages not adhering to the WikiPageNames convention.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. 181 214 182 215 Example: … … 200 233 * Reports: {1} or report:1 201 234 * Changesets: r1, [1] or changeset:1 202 * Revision Logs: r1:3, [1:3] or log:branches/0.8-stable #1:3235 * Revision Logs: r1:3, [1:3] or log:branches/0.8-stable@1:3 203 236 * Wiki pages: CamelCase or wiki:CamelCase 204 237 * Milestones: milestone:1.0 or milestone:"End-of-days Release" 205 238 * Files: source:trunk/COPYING 206 * Attachments: attachment:"file name.doc" 207 * A specific file revision: source:/trunk/COPYING#200 239 * Wiki Attachments: attachment:sample_attachment.txt 240 * Ticket Attachments: attachment:ticket:944:attachment.1073.diff 241 * A specific file revision: source:/trunk/COPYING@200 242 * A particular line of a specific file revision: source:/trunk/COPYING@200#L25 208 243 * A filename with embedded space: source:"/trunk/README FIRST" 209 244 }}} … … 213 248 * Reports: {1} or report:1 214 249 * Changesets: r1, [1] or changeset:1 215 * Revision Logs: r1:3, [1:3] or log:branches/0.8-stable #1:3250 * Revision Logs: r1:3, [1:3] or log:branches/0.8-stable@1:3 216 251 * Wiki pages: CamelCase or wiki:CamelCase 217 252 * Milestones: milestone:1.0 or milestone:"End-of-days Release" 218 253 * Files: source:trunk/COPYING 219 * Attachments: attachment:"file name.doc" 220 * A specific file revision: source:/trunk/COPYING#200 254 * Wiki Attachments: attachment:sample_attachment.txt 255 * Ticket Attachments: attachment:ticket:944:attachment.1073.diff 256 * A specific file revision: source:/trunk/COPYING@200 257 * A particular line of a specific file revision: source:/trunk/COPYING@200#L25 221 258 * A filename with embedded space: source:"/trunk/README FIRST" 222 259 … … 294 331 #!html 295 332 <pre class="wiki">{{{ 333 #!python 334 class Test: 335 336 def __init__(self): 337 print "Hello World" 338 if __name__ == '__main__': 339 Test() 340 }}}</pre> 341 }}} 342 343 Display: 344 {{{ 296 345 #!python 297 346 class Test: … … 300 349 if __name__ == '__main__': 301 350 Test() 302 }}}</pre>303 }}}304 305 Display:306 {{{307 #!python308 class Test:309 def __init__(self):310 print "Hello World"311 if __name__ == '__main__':312 Test()313 351 }}} 314 352