Changes between Version 1 and Version 2 of WikiFormatting
- Timestamp:
- 06/12/09 11:45:10 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiFormatting
v1 v2 5 5 6 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]. 7 especially [http://moinmoin.wikiwikiweb.de/ MoinMoin]. 8 8 9 9 … … 21 21 * {{{monospace}}} or `monospace` 22 22 * ~~strike-through~~ 23 * ^superscript^ 23 * ^superscript^ 24 24 * ,,subscript,, 25 25 }}} … … 32 32 * {{{monospace}}} or `monospace` 33 33 * ~~strike-through~~ 34 * ^superscript^ 34 * ^superscript^ 35 35 * ,,subscript,, 36 36 … … 42 42 43 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 44 followed by a single space and the headline text. The line should end with a space 45 45 followed by the same number of ''='' characters. 46 46 The heading might optionally be followed by an explicit id. If not, an implicit but nevertheless readable id will be generated. … … 81 81 * Item 1 82 82 * Item 1.1 83 * Item 1.1.1 84 * Item 1.1.2 85 * Item 1.1.3 86 * Item 1.2 83 87 * Item 2 84 88 … … 96 100 * Item 1 97 101 * Item 1.1 102 * Item 1.1.1 103 * Item 1.1.2 104 * Item 1.1.3 105 * Item 1.2 98 106 * Item 2 99 107 … … 137 145 138 146 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 147 140 148 Example: 141 149 {{{ … … 167 175 == Discussion Citations == 168 176 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. 177 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 178 171 179 Example: … … 225 233 * [wiki:ISO9000] 226 234 227 228 === Trac Links === 235 == Trac Links == 229 236 230 237 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: … … 240 247 * Reports: {1} or report:1 241 248 * Changesets: r1, [1] or changeset:1 242 * ... 243 244 See TracLinks for more in-depth information.249 * ... 250 251 There are many more flavors of Trac links, see TracLinks for more in-depth information. 245 252 246 253 … … 264 271 Urls ending with `.png`, `.gif` or `.jpg` are no longer automatically interpreted as image links, and converted to `<img>` tags. 265 272 266 You now have to use the ![[Image]] macro (see below). 273 You now have to use the ![[Image]] macro. The simplest way to include an image is to upload it as attachment to the current page, and put the filename in a macro call like `[[Image(picture.gif)]]`. 274 275 In addition to the current page, it is possible to refer to other resources: 276 * `[[Image(wiki:WikiFormatting:picture.gif)]]` (referring to attachment on another page) 277 * `[[Image(ticket:1:picture.gif)]]` (file attached to a ticket) 278 * `[[Image(htdocs:picture.gif)]]` (referring to a file inside project htdocs) 279 * `[[Image(source:/trunk/trac/htdocs/trac_logo_mini.png)]]` (a file in repository) 280 281 Example display: [[Image(htdocs:../common/trac_logo_mini.png)]] 282 283 284 See WikiMacros for further documentation on the `[[Image()]]` macro. 267 285 268 286 … … 273 291 Example: 274 292 {{{ 275 [[ Timestamp]]276 }}} 277 278 Display: 279 [[ Timestamp]]293 [[RecentChanges(Trac,3)]] 294 }}} 295 296 Display: 297 [[RecentChanges(Trac,3)]] 280 298 281 299 See WikiMacros for more information, and a list of installed macros. … … 284 302 == Processors == 285 303 286 Trac supports alternative markup formats using WikiProcessors. For example, processors are used to write pages in 287 [wiki:WikiRestructuredText reStructuredText] or [wiki:WikiHtml HTML]. 304 Trac supports alternative markup formats using WikiProcessors. For example, processors are used to write pages in 305 [wiki:WikiRestructuredText reStructuredText] or [wiki:WikiHtml HTML]. 288 306 289 307 Example 1: … … 338 356 339 357 358 == Comments == 359 360 Comments can be added to the plain text. These will not be rendered and will not display in any other format than plain text. 361 {{{ 362 {{{ 363 #!comment 364 Your comment here 365 }}} 366 }}} 367 368 340 369 == Miscellaneous == 341 370 … … 349 378 Display: 350 379 ---- 380 351 381 352 382
