Changes between Version 109 and Version 129 of WikiFormatting
- Timestamp:
- (multiple changes)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiFormatting
v109 v129 1 ** Note: this page documents the 0.12 version of Trac, see [[0.11/WikiFormatting]] if you need the previous version ** 2 3 = WikiFormatting = 1 = WikiFormatting 2 4 3 [[TracGuideToc]] 5 4 [[TranslatedPages]] 6 5 7 Wiki markup is a core feature in Trac, tightly integrating all the other parts of Trac into a flexible and powerful whole. 8 9 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, 10 especially [http://moinmo.in/ MoinMoin] and [trac:WikiCreole]. 11 12 13 This page will give you an in-depth explanation of the wiki markup available anywhere WikiFormatting is allowed. 14 15 The ''Cheat sheet'' below gives you a quick overview for the most common syntax, each link in the ''Category'' column will lead you to the more detailed explanation later in this page. 16 17 A few other wiki pages present the advanced features of the Trac wiki markup in more depth: 18 - TracLinks covers all the possible ways to refer precisely to any Trac resource or parts thereof, 19 - WikiPageNames talks about the various names a wiki page can take, CamelCase or not 20 - WikiMacros lists the macros available for generating dynamic content, 21 - WikiProcessors and WikiHtml details how parts of the wiki text can be processed in special ways 22 23 24 == Cheat sheet == 6 Wiki markup is a core feature in Trac, tightly integrating all the other parts of Trac into a flexible and unified whole. 7 8 Trac has a powerful wiki rendering engine that implements a subset of the commands from other popular Wikis, such as [https://moinmo.in/ MoinMoin] and [trac:WikiCreole]. 9 10 The sections below provide an overview for the most common syntax, each link in the ''Category'' column leads you to the more detailed explanation later in this page. 11 12 The following wiki pages present the advanced features of the Trac wiki markup in more depth: 13 - TracLinks covers all the possible ways to refer to any Trac resource or parts thereof. 14 - WikiPageNames covers the various names a wiki page can take, whether in CamelCase or not. 15 - WikiMacros lists the macros available for generating dynamic content. 16 - WikiProcessors and WikiHtml details how parts of the wiki text can be processed in special ways. 17 - [trac:wiki:TracDev/Proposals/AdvancedWikiOperations AdvancedWikiOperations] provides some operations in uncommon or administrative scenarios. 18 19 == Common wiki markup 25 20 26 21 ||= '''Category''' =||= '''Wiki Markup''' =||= '''Display''' =|| … … 31 26 || `'''bold'''`, `''italic''`, `'''''Wikipedia style'''''` || \ 32 27 || '''bold''', ''italic'', '''''Wikipedia style''''' || 33 || {{{`monospaced and ''nowiki''`}}} || \34 || `monospaced and ''nowiki''` ||35 28 || `**bold**`, `//italic//`, `**//!WikiCreole style//**` || \ 36 29 || **bold**, //italic//, **//!WikiCreole style//** || 30 || {{{`monospaced (''other markup ignored'')`}}} || \ 31 || `monospaced (''other markup ignored'')` || 37 32 |----------------------------------------------------------- 38 33 ||= [#Headings Headings] =||\ 39 {{{#!td 40 {{{ 41 == Level 2 ==34 {{{#!td 35 {{{ 36 == Level 2 42 37 === Level 3 ^([#hn note])^ 43 38 }}} 44 39 }}} 45 40 {{{#!td style="padding-left: 2em" 46 == Level 2 ==41 == Level 2 47 42 === Level 3 ^([#hn note])^ 48 43 }}} … … 67 62 {{{#!td 68 63 {{{ 69 * bullet slist64 * bullet list 70 65 on multiple lines 71 66 1. nested list 72 a. different numbering 67 a. different numbering 73 68 styles 74 69 }}} 75 70 }}} 76 71 {{{#!td 77 * bullet slist72 * bullet list 78 73 on multiple lines 79 74 1. nested list … … 100 95 {{{ 101 96 {{{ 102 multiple lines, ''no wiki'' 97 multiple lines, ''no wiki'', 103 98 white space respected 104 99 }}} … … 107 102 {{{#!td 108 103 {{{ 109 multiple lines, ''no wiki'' 104 multiple lines, ''no wiki'', 110 105 white space respected 111 106 }}} … … 151 146 [#Links Links] 152 147 }}} 153 || `http ://trac.edgewall.org` ||\154 || http ://trac.edgewall.org ||148 || `https://trac.edgewall.org` ||\ 149 || https://trac.edgewall.org || 155 150 || `WikiFormatting (CamelCase)` ||\ 156 151 || WikiFormatting (CamelCase) || … … 163 158 || `#1 (ticket)`, `[1] (changeset)`, `{1} (report)` ||\ 164 159 || #1 (ticket), [1] (changeset), {1} (report) || 165 || `ticket:1, ticket:1#comment:1 ` ||\166 || ticket:1, ticket:1#comment:1 ||160 || `ticket:1, ticket:1#comment:1, comment:1:ticket:1` ||\ 161 || ticket:1, ticket:1#comment:1, comment:1:ticket:1 || 167 162 || `Ticket [ticket:1]`, `[ticket:1 ticket one]` ||\ 168 163 || Ticket [ticket:1], [ticket:1 ticket one] || … … 170 165 || Ticket [[ticket:1]], [[ticket:1|ticket one]] || 171 166 |----------------------------------------------------------- 172 {{{#!th rowspan=2 167 {{{#!th rowspan=2 173 168 [#SettingAnchors Setting Anchors] 174 169 }}} … … 179 174 |----------------------------------------------------------- 180 175 {{{#!th rowspan=3 181 [#Escaping LinksandWikiPageNamesEscaping Markup]176 [#Escaping Escaping Markup] 182 177 }}} 183 178 || `!'' doubled quotes` ||\ … … 185 180 || `!wiki:WikiFormatting`, `!WikiFormatting` ||\ 186 181 || !wiki:WikiFormatting, !WikiFormatting || 187 || `{{{-}}} curly brackets`||\188 || {{{-}}}curly brackets ||182 || [[html(<code>`{{{-}}}` triple curly brackets</code>)]] ||\ 183 || `{{{-}}}` triple curly brackets || 189 184 |----------------------------------------------------------- 190 185 ||= [#Images Images] =|| `[[Image(`''link''`)]]` || [[Image(htdocs:../common/trac_logo_mini.png)]] || … … 199 194 {{{#!td 200 195 {{{ 201 {{{ 202 #!div style="font-size: 80%" 196 {{{#!div style="font-size: 80%" 203 197 Code highlighting: 204 198 {{{#!python … … 209 203 }}} 210 204 {{{#!td style="padding-left: 2em" 211 {{{ 212 #!div style="font-size: 80%" 205 {{{#!div style="font-size: 80%" 213 206 Code highlighting: 214 {{{#!python 207 {{{#!python 215 208 hello = lambda: "world" 216 209 }}} … … 226 219 }}} 227 220 }}} 228 {{{#!td style="padding-left: 2em" 229 {{{#!comment 230 Note to Editors: ... 231 }}} 232 }}} 221 || ''(comment is shown in edit mode only)'' || 233 222 |----------------------------------------------------------- 234 223 ||= [#Miscellaneous Miscellaneous] =||\ 235 224 {{{#!td 236 225 {{{ 237 Line [[br]] break 226 Line [[br]] break 238 227 Line \\ break 239 228 ---- … … 246 235 }}} 247 236 248 249 == Font Styles == 237 == Font Styles 250 238 251 239 The Trac wiki supports the following font styles: … … 253 241 {{{#!td 254 242 {{{ 255 * '''bold''', 256 ''' triple quotes !''' 257 can be bold too if prefixed by ! ''', 243 * '''bold''', 244 ''' triple quotes !''' 245 can be bold too if prefixed by ! ''', 258 246 * ''italic'' 259 247 * '''''bold italic''''' or ''italic and … … 263 251 (hence `{{{` or {{{`}}} quoting) 264 252 * ~~strike-through~~ 265 * ^superscript^ 253 * ^superscript^ 266 254 * ,,subscript,, 267 * **also bold**, //italic as well//, 255 * **also bold**, //italic as well//, 268 256 and **'' bold italic **'' //(since 0.12)// 269 }}} 270 }}} 271 {{{#!td 272 * '''bold''', 273 ''' triple quotes !''' 274 can be bold too if prefixed by ! ''', 257 * [[span(style=color: #FF0000, a red text )]] 258 }}} 259 }}} 260 {{{#!td 261 * '''bold''', 262 ''' triple quotes !''' 263 can be bold too if prefixed by ! ''', 275 264 * ''italic'' 276 265 * '''''bold italic''''' or ''italic and … … 280 269 (hence `{{{` or {{{`}}} quoting) 281 270 * ~~strike-through~~ 282 * ^superscript^ 271 * ^superscript^ 283 272 * ,,subscript,, 284 * **also bold**, //italic as well//, 273 * **also bold**, //italic as well//, 285 274 and **'' bold italic **'' //(since 0.12)// 275 * [[span(style=color: #FF0000, a red text )]] 286 276 }}} 287 277 288 278 Notes: 289 279 * `{{{...}}}` 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. 290 * {{{ ! }}} 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. 291 * all the font styles marks have to be used in opening/closing pairs, 292 and they must nest properly (in particular, an `''` italic can't be paired 293 with a `//` one, and `'''` can't be paired with `**`) 294 295 296 == Headings == 297 298 You can create heading by starting a line with one up to six ''equal'' characters ("=") 299 followed by a single space and the headline text. 280 * {{{ ! }}} 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. 281 * all the font styles marks have to be used in opening/closing pairs, 282 and they must nest properly; in particular, an `''` italic can't be paired 283 with a `//` one, and `'''` can't be paired with `**`. 284 285 == Headings 286 287 You can create a heading by starting a line with one up to six ''equal'' characters (`=`) followed by a single space and the headline text. 300 288 301 289 [=#hn] 302 The headline text can be followed by the same number of "=" characters, but this is no longer mandatory.290 The headline text can be followed by the same number of `=` characters, but this is not mandatory. That is, `=== Section3 ===` is identical to `=== Section3`. 303 291 304 292 Finally, the heading might optionally be followed by an explicit id. If not, an implicit but nevertheless readable id will be generated. … … 325 313 }}} 326 314 327 == Paragraphs ==315 == Paragraphs 328 316 329 317 A new text paragraph is created whenever two blocks of text are separated by one or more empty lines. … … 339 327 one 340 328 341 Paragraph 329 Paragraph 342 330 two 343 331 }}} … … 346 334 Line 1[[BR]]Line 2 347 335 348 Paragraph 336 Paragraph 349 337 one 350 338 351 Paragraph 339 Paragraph 352 340 two 353 341 }}} 354 342 355 == Lists ==343 == Lists 356 344 357 345 The wiki supports both ordered/numbered and unordered lists. 358 346 359 Example:360 347 ||= Wiki Markup =||= Display =|| 361 348 {{{#!td … … 363 350 * Item 1 364 351 * Item 1.1 365 * Item 1.1.1 352 * Item 1.1.1 366 353 * Item 1.1.2 367 354 * Item 1.1.3 … … 370 357 - items can start at the beginning of a line 371 358 and they can span multiple lines 372 - be careful though to continue the line 359 - be careful though to continue the line 373 360 with the appropriate indentation, otherwise 374 361 that will start a new paragraph... 375 362 376 363 1. Item 1 377 364 a. Item 1.a … … 388 375 * Item 1 389 376 * Item 1.1 390 * Item 1.1.1 377 * Item 1.1.1 391 378 * Item 1.1.2 392 379 * Item 1.1.3 … … 395 382 - items can start at the beginning of a line 396 383 and they can span multiple lines 397 - be careful though to continue the line 384 - be careful though to continue the line 398 385 with the appropriate indentation, otherwise 399 386 that will start a new paragraph... … … 409 396 }}} 410 397 411 412 == Definition Lists == 398 == Definition Lists 413 399 414 400 The wiki also supports definition lists. … … 434 420 Note that you need a space in front of the defined term. 435 421 436 437 == Preformatted Text == 422 == Preformatted Text 438 423 439 424 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. 440 425 441 426 ||= Wiki Markup =||= Display =|| 442 427 {{{#!td … … 457 442 Note that this kind of block is also used for selecting lines that should be processed through WikiProcessors. 458 443 459 == Blockquotes ==444 == Blockquotes 460 445 461 446 In order to mark a paragraph as blockquote, indent that paragraph with two spaces. … … 473 458 }}} 474 459 475 == Discussion Citations ==476 477 To delineate a citation in an ongoing discussion thread, such as the ticket comment area, e -mail-like citation marks (">", ">>", etc.) may be used.460 == Discussion Citations 461 462 To delineate a citation in an ongoing discussion thread, such as the ticket comment area, email-like citation marks (`>`, `>>`, etc.) may be used. 478 463 479 464 ||= Wiki Markup =||= Display =|| … … 493 478 }}} 494 479 495 496 == Tables ==497 === Simple Tables === 498 Simple tables can be created like this:480 == Tables 481 === Simple Tables 482 483 Simple tables can be created: 499 484 ||= Wiki Markup =||= Display =|| 500 485 {{{#!td … … 509 494 }}} 510 495 511 Cell headings can be specified by wrapping the content in a pair of '='characters.512 Note that the '=' characters have to stick to the cell separators, like this:496 Cell headings can be specified by wrapping the content in a pair of `=` characters. 497 Note that the `=` characters have to stick to the cell separators: 513 498 ||= Wiki Markup =||= Display =|| 514 499 {{{#!td … … 525 510 }}} 526 511 527 Finally, specifying an empty cell means that the next non empty cell will span the empty cells . For example:512 Finally, specifying an empty cell means that the next non empty cell will span the empty cells: 528 513 ||= Wiki Markup =||= Display =|| 529 514 {{{#!td … … 542 527 }}} 543 528 544 Note that if the content of a cell "sticks" to one side of the cell and only one, then the text will be aligned on that side. Example:529 Note that if the content of a cell sticks to one side of the cell and only one, then the text will be aligned on that side: 545 530 ||= Wiki Markup =||= Display =|| 546 531 {{{#!td … … 567 552 }}} 568 553 569 If contrary to the example above, the cells in your table contain more text, it might be convenient to spread a table row over multiple lines of markup. The `\` character placed at the end of a line after a cell separator tells Trac to not start a new row for the cells on the next line .554 If contrary to the example above, the cells in your table contain more text, it might be convenient to spread a table row over multiple lines of markup. The `\` character placed at the end of a line after a cell separator tells Trac to not start a new row for the cells on the next line: 570 555 571 556 ||= Wiki Markup =|| 572 557 {{{#!td 573 558 {{{ 574 || this is column 1 [http ://trac.edgewall.org/newticket new ticket] || \575 || this is column 2 [http ://trac.edgewall.org/roadmap the road ahead] || \559 || this is column 1 [https://trac.edgewall.org/newticket new ticket] || \ 560 || this is column 2 [https://trac.edgewall.org/roadmap the road ahead] || \ 576 561 || that's column 3 and last one || 577 562 }}} … … 580 565 ||= Display =|| 581 566 {{{#!td style="padding: 2em;" 582 || this is column 1 [http ://trac.edgewall.org/newticket new ticket] || \583 || this is column 2 [http ://trac.edgewall.org/roadmap the road ahead] || \567 || this is column 1 [https://trac.edgewall.org/newticket new ticket] || \ 568 || this is column 2 [https://trac.edgewall.org/roadmap the road ahead] || \ 584 569 || that's column 3 and last one || 585 570 }}} 586 571 587 === Complex Tables === 588 589 If the possibilities offered by the simple "pipe"-based markup for tables described above are not enough for your needs, you can create more elaborated tables by using [#Processors-example-tables WikiProcessor based tables]. 590 591 592 == Links == 593 594 Hyperlinks are automatically created for WikiPageNames and URLs. !WikiPageLinks can be disabled by prepending an exclamation mark "!" character, such as {{{!WikiPageLink}}}. 595 596 ||= Wiki Markup =||= Display =|| 597 {{{#!td 598 {{{ 599 TitleIndex, http://www.edgewall.com/, !NotAlink 600 }}} 601 }}} 602 {{{#!td 603 TitleIndex, http://www.edgewall.com/, !NotAlink 604 }}} 605 606 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. 572 === Complex Tables 573 574 If the possibilities offered by the simple pipe-based markup (`||`) for tables described above are not enough for your needs, you can create more elaborate tables by using [#Processors-example-tables WikiProcessor based tables]. 575 576 == Links 577 578 Hyperlinks are automatically created for WikiPageNames and URLs. !WikiPageLinks can be disabled by prepending an exclamation mark (`!`), such as `!WikiPageLink`. 579 580 ||= Wiki Markup =||= Display =|| 581 {{{#!td 582 {{{ 583 TitleIndex, https://www.edgewall.com/, !NotAlink 584 }}} 585 }}} 586 {{{#!td 587 TitleIndex, https://www.edgewall.com/, !NotAlink 588 }}} 589 590 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. 607 591 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. 608 592 … … 610 594 {{{#!td 611 595 {{{ 612 * [http ://www.edgewall.com Edgewall Software]613 * [wiki:TitleIndex Title Index] 614 * [wiki:TitleIndex] 596 * [https://www.edgewall.com Edgewall Software] 597 * [wiki:TitleIndex Title Index] 598 * [wiki:TitleIndex] 615 599 * [wiki:ISO9000] 616 600 }}} 617 601 }}} 618 602 {{{#!td 619 * [http ://www.edgewall.com Edgewall Software]620 * [wiki:TitleIndex Title Index] 621 * [wiki:TitleIndex] 603 * [https://www.edgewall.com Edgewall Software] 604 * [wiki:TitleIndex Title Index] 605 * [wiki:TitleIndex] 622 606 * [wiki:ISO9000] 623 607 }}} 624 608 625 Following the [trac:WikiCreole] trend, the descriptive title can also be specified by writing the link followed by a pipe ( '|') and a title and all this inside //double// square brackets.626 627 {{{#!td 628 {{{ 629 * [[http ://www.edgewall.com|Edgewall Software]]609 Following the [trac:WikiCreole] trend, the descriptive title can also be specified by writing the link followed by a pipe (`|`) and a title and all this inside //double// square brackets. 610 611 {{{#!td 612 {{{ 613 * [[https://www.edgewall.com|Edgewall Software]] 630 614 * [[wiki:TitleIndex|Title Index]] 631 615 or even [[TitleIndex|Title Index]] … … 636 620 }}} 637 621 {{{#!td 638 * [[http ://www.edgewall.com|Edgewall Software]]622 * [[https://www.edgewall.com|Edgewall Software]] 639 623 * [[wiki:TitleIndex|Title Index]] 640 624 or even [[TitleIndex|Title Index]] … … 644 628 }}} 645 629 646 '''Note''': the [trac:WikiCreole] style for links is quick to type and 647 certainly looks familiar as it's the one used on Wikipedia and in many 648 other wikis. Unfortunately it conflicts with the syntax for [#Macros macros]. 649 So in the rare case when you need to refer to a page which is named after 650 a macro (typical examples being TitleIndex, InterTrac and InterWiki), 651 by writing `[[TitleIndex]]` you will actually call the macro instead of linking 652 to the page. 653 654 == Trac Links == 630 '''Note''': the [trac:WikiCreole] style for links is quick to type and certainly looks familiar as it is the one used on Wikipedia and in many other wikis. Unfortunately it conflicts with the syntax for [#Macros macros]. 631 So in the rare case when you need to refer to a page which is named after a macro (typical examples being TitleIndex, InterTrac and InterWiki), by writing `[[TitleIndex]]` you will actually call the macro instead of linking to the page. 632 633 == Trac Links 655 634 656 635 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: … … 663 642 * Changesets: r1, [1] or changeset:1 664 643 * ... 665 * targeting other Trac instances, 644 * targeting other Trac instances, 666 645 so called InterTrac links: 667 646 - Tickets: #Trac1 or Trac:ticket:1 … … 673 652 * Reports: {1} or report:1 674 653 * Changesets: r1, [1] or changeset:1 675 * ... 676 * targeting other Trac instances, 654 * ... 655 * targeting other Trac instances, 677 656 so called InterTrac links: 678 657 - Tickets: #Trac1 or Trac:ticket:1 … … 682 661 There are many more flavors of Trac links, see TracLinks for more in-depth information and a reference for all the default link resolvers. 683 662 684 685 == Setting Anchors == 686 687 An anchor, or more correctly speaking, an [http://www.w3.org/TR/REC-html40/struct/links.html#h-12.2.1 anchor name] can be added explicitly at any place in the Wiki page, in order to uniquely identify a position in the document: 663 == Setting Anchors 664 665 An anchor, or more correctly speaking, an [https://www.w3.org/TR/REC-html40/struct/links.html#h-12.2.1 anchor name] can be added explicitly at any place in the Wiki page, to uniquely identify a position in the document: 688 666 689 667 {{{ … … 691 669 }}} 692 670 693 This syntax was chosen to match the format for explicitly naming the header id [#Headings documented above] . For example:671 This syntax was chosen to match the format for explicitly naming the header id [#Headings documented above]: 694 672 {{{ 695 673 == Long title == #title 696 674 }}} 697 675 698 It 's also very close to the syntax for the corresponding link to that anchor:676 It is also very close to the syntax for the corresponding link to that anchor: 699 677 {{{ 700 678 [#point1] … … 703 681 Optionally, a label can be given to the anchor: 704 682 {{{ 705 [ [=#point1 '''Point 1''']]683 [=#point1 '''Point 1'''] 706 684 }}} 707 685 … … 725 703 }}} 726 704 727 For more complex anchors (e.g. when a custom title is wanted), one can use the Span macro, e.g. `[[span(id=point2, class=wikianchor, title=Point 2, ^(2)^)]]`. 728 729 730 == Escaping Links and WikiPageNames == 731 732 You may avoid making hyperlinks out of TracLinks by preceding an expression with a single "!" (exclamation mark). 705 For more complex anchors (eg when a custom title is wanted), you can use the Span macro: `[[span(id=point2, class=wikianchor, title=Point 2, ^(2)^)]]`. 706 707 == Escaping Links, WikiPageNames and other Markup == #Escaping 708 709 You may avoid making hyperlinks out of TracLinks by preceding an expression with a single exclamation mark (`!`). 733 710 734 711 ||= Wiki Markup =||= Display =|| … … 739 716 }}} 740 717 {{{ 741 {{{-}}} minus sign at the beginning of a line doesn't start a list \\ 742 {{{1.}}} number at the beginning of a line doesn't start a list \\ 743 {{{*}}} asterisk sign at the beginning of a line doesn't start a list 718 Various forms of escaping for list markup: 719 ^^- escaped minus sign \\ 720 ^^1. escaped number \\ 721 ^^* escaped asterisk sign 744 722 }}} 745 723 }}} … … 747 725 !NoHyperLink 748 726 !#42 is not a link 749 |----------------------------------------------------------- 750 {{{-}}} minus sign at the beginning of a line doesn't start a list \\ 751 {{{1.}}} number at the beginning of a line doesn't start a list \\ 752 {{{*}}} asterisk sign at the beginning of a line doesn't start a list 753 }}} 754 755 == Images == 727 728 Various forms of escaping for list markup: 729 ^^- escaped minus sign \\ 730 ^^1. escaped number \\ 731 ^^* escaped asterisk sign 732 }}} 733 734 == Images 756 735 757 736 Urls ending with `.png`, `.gif` or `.jpg` are no longer automatically interpreted as image links, and converted to `<img>` tags. … … 777 756 See WikiMacros for further documentation on the `[[Image()]]` macro, which has several useful options (`title=`, `link=`, etc.) 778 757 779 780 == Macros == 781 782 Macros are ''custom functions'' to insert dynamic content in a page. 758 == Macros 759 760 Macros are ''custom functions'' that insert dynamic content in a page. 783 761 784 762 ||= Wiki Markup =||= Display =|| … … 794 772 See WikiMacros for more information, and a list of installed macros. 795 773 796 The detailed help for a specific macro can also be obtained more directly by appending a "?"to the macro name.774 The detailed help for a specific macro can also be obtained more directly by appending a `?` to the macro name. 797 775 798 776 ||= Wiki Markup =||= Display =|| … … 806 784 }}} 807 785 808 809 == Processors == 810 811 Trac supports alternative markup formats using WikiProcessors. For example, processors are used to write pages in 812 [wiki:WikiRestructuredText reStructuredText] or [wiki:WikiHtml HTML]. 786 == Processors 787 788 Trac supports alternative markup formats using WikiProcessors. For example, processors are used to write pages in 789 [wiki:WikiRestructuredText reStructuredText] or [wiki:WikiHtml HTML]. 813 790 814 791 ||= Wiki Markup =||= Display =|| … … 822 799 {{{#!td style="border: 0px" 823 800 {{{ 824 {{{ 825 #!html 801 {{{#!html 826 802 <h1 style="text-align: right; color: blue"> 827 803 HTML Test … … 832 808 {{{#!td valign="top" style="border: 0px" 833 809 834 {{{ 835 #!html 810 {{{#!html 836 811 <h1 style="text-align: right; color: blue">HTML Test</h1> 837 812 }}} … … 847 822 {{{#!td style="border: 0px" 848 823 {{{ 849 {{{ 850 #!python 824 {{{#!python 851 825 class Test: 852 826 853 827 def __init__(self): 854 828 print "Hello World" … … 858 832 }}} 859 833 }}} 860 {{{ 861 #!td valign="top" style="border: 0px" 862 863 {{{ 864 #!python 834 {{{#!td valign="top" style="border: 0px" 835 836 {{{#!python 865 837 class Test: 866 838 def __init__(self): … … 892 864 |---------------- 893 865 {{{#!td 894 As processors can be easily nested, 866 As processors can be easily nested, 895 867 so can be tables: 896 868 {{{#!th … … 909 881 }}} 910 882 }}} 911 {{{ 912 #!td valign="top" style="border: 0px" 883 {{{#!td valign="top" style="border: 0px" 913 884 914 885 {{{#!th rowspan=4 align=justify … … 924 895 |---------------- 925 896 {{{#!td 926 As processors can be easily nested, 897 As processors can be easily nested, 927 898 so can be tables: 928 899 {{{#!th … … 944 915 See WikiProcessors for more information. 945 916 946 947 == Comments == 917 == Comments 948 918 949 919 Comments can be added to the plain text. These will not be rendered and will not display in any other format than plain text. … … 953 923 {{{ 954 924 Nothing to 955 {{{ 956 #!comment 925 {{{#!comment 957 926 Your comment for editors here 958 927 }}} 959 see ;-)928 see. 960 929 }}} 961 930 }}} 962 931 {{{#!td 963 932 Nothing to 964 {{{ 965 #!comment 933 {{{#!comment 966 934 Your comment for editors here 967 935 }}} 968 see ;-) 969 }}} 970 971 == Miscellaneous == 972 973 An horizontal line can be used to separated different parts of your page: 974 975 ||= Wiki Markup =||= Display =|| 976 {{{#!td 977 {{{ 978 Four or more dashes will be replaced 979 by an horizontal line (<HR>) 936 see. 937 }}} 938 939 == Miscellaneous 940 941 ||= Wiki Markup =||= Display =|| 942 {{{#!td 943 Horizontal line: 944 {{{ 945 Four or more dashes will be replaced 946 by a horizontal line (<HR>) 980 947 ---- 981 948 See? … … 984 951 {{{#!td 985 952 Four or more dashes will be replaced 986 by a nhorizontal line (<HR>)953 by a horizontal line (<HR>) 987 954 ---- 988 955 See? … … 990 957 |---------------------------------- 991 958 {{{#!td 992 {{{ 993 "macro" style [[br]] line break 994 }}} 995 }}} 996 {{{#!td 997 "macro" style [[br]] line break 959 Two examples of line breaks: 960 {{{ 961 "macro" style [[BR]] line break 962 }}} 963 or: 964 {{{ 965 !WikiCreole style \\ line\\break 966 }}} 967 }}} 968 {{{#!td 969 "macro" style [[BR]] line break 970 971 !WikiCreole style \\ line\\break 998 972 }}} 999 973 |---------------------------------- 1000 {{{#!td1001 {{{1002 !WikiCreole style \\ line\\break1003 }}}1004 }}}1005 {{{#!td1006 !WikiCreole style \\ line\\break1007 }}}1008