Changes between Version 4 and Version 5 of WikiFormatting
- Timestamp:
- May 4, 2021, 3:46:08 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiFormatting
v4 v5 1 T racGuideToc1 Tick Tock 2 2 3 3 Wiki markup is a core feature in Trac, tightly integrating all the other parts of Trac into a flexible and unified whole. … … 49 49 {{{#!td 50 50 if there's some leading 51 space the text is quoted 52 }}} 53 |----------------------------------------------------------- 54 ||= [#DiscussionCitations Discussion Citations] =||\ 55 {{{#!td 56 {{{ 57 >> ... (I said) 58 > (he replied) 59 }}} 60 }}} 61 {{{#!td 62 >>... (I said) 63 > (he replied) 64 }}} 65 |----------------------------------------------------------- 66 ||= [#Tables Tables] =||\ 67 {{{#!td 68 {{{ 69 ||= Table Header =|| Cell || 70 |||| (details below) || 71 }}} 72 }}} 73 {{{#!td 74 ||= Table Header =|| Cell || 75 |||| (details below) || 76 }}} 77 |----------------------------------------------------------- 78 {{{#!th rowspan=2 79 [#Links Links] 80 }}} 81 || `http://trac.edgewall.org` ||\ 82 || http://trac.edgewall.org || 83 || `WikiFormatting (CamelCase)` ||\ 84 || WikiFormatting (CamelCase) || 85 |----------------------------------------------------------- 86 {{{#!th rowspan=5 87 [#TracLinks TracLinks] 88 }}} 89 || `wiki:WikiFormatting`, `wiki:"WikiFormatting"` ||\ 90 || wiki:WikiFormatting, wiki:"WikiFormatting" || 91 || `#1 (ticket)`, `[1] (changeset)`, `{1} (report)` ||\ 92 || #1 (ticket), [1] (changeset), {1} (report) || 93 || `ticket:1, ticket:1#comment:1, comment:1:ticket:1` ||\ 94 || ticket:1, ticket:1#comment:1, comment:1:ticket:1 || 95 || `Ticket [ticket:1]`, `[ticket:1 ticket one]` ||\ 96 || Ticket [ticket:1], [ticket:1 ticket one] || 97 || `Ticket [[ticket:1]]`, `[[ticket:1|ticket one]]` ||\ 98 || Ticket [[ticket:1]], [[ticket:1|ticket one]] || 99 |----------------------------------------------------------- 100 {{{#!th rowspan=2 101 [#SettingAnchors Setting Anchors] 102 }}} 103 || `[=#point1 (1)] First...` ||\ 104 || [=#point1 (1)] First... || 105 || `see [#point1 (1)]` ||\ 106 || see [#point1 (1)] || 107 |----------------------------------------------------------- 108 {{{#!th rowspan=3 109 [#Escaping Escaping Markup] 110 }}} 111 || `!'' doubled quotes` ||\ 112 || !'' doubled quotes || 113 || `!wiki:WikiFormatting`, `!WikiFormatting` ||\ 114 || !wiki:WikiFormatting, !WikiFormatting || 115 || [[html(<code>`{{{-}}}` triple curly brackets</code>)]] ||\ 116 || `{{{-}}}` triple curly brackets || 117 |----------------------------------------------------------- 118 ||= [#Images Images] =|| `[[Image(`''link''`)]]` || [[Image(htdocs:../common/trac_logo_mini.png)]] || 119 |----------------------------------------------------------- 120 {{{#!th rowspan=2 121 [#Macros Macros] 122 }}} 123 || `[[MacroList(*)]]` || ''(short list of all available macros)'' || 124 || `[[Image?]]` || ''(help for the Image macro)'' || 125 |----------------------------------------------------------- 126 ||= [#Processors Processors] =||\ 127 {{{#!td 128 {{{ 129 {{{#!div style="font-size: 80%" 51 space the text is quotedDiscussionCitations Discussion Citations] =||\ 52 I decided to spend some of your money today, dear. What do you think? Do you like it? (I said) Well, I suppose I should say, yes. 53 (he replied) 54 (I said) 55 (he replied) 56 Tables Tables Table Header (details below) 57 (details below) 58 Links ~http://trac.edgewall.org/demo-1.2/WikiStart/wiki 59 http://trac.edgewall.org/demo-1.2/CamelCoco 60 (Camel) 61 Wiki Interface (CamelCoco) rowspan racLinks TracLinks 62 wiki 63 #867 (ticket), (changeset) (report) 64 #865(ticket), (changeset), (report) 65 #comment:1 oSetting Anchors--Escaping curly brackets 66 Images edocs:../common/trac_logo_mini.png 67 68 Image? Processors] 130 69 Code highlighting: 131 {{{#!python 132 hello = lambda: "world" 133 }}} 134 }}} 135 }}} 136 }}} 137 {{{#!td style="padding-left: 2em" 138 {{{#!div style="font-size: 80%" 139 Code highlighting: 140 {{{#!python 141 hello = lambda: "world" 142 }}} 143 }}} 144 }}} 145 |----------------------------------------------------------- 146 ||= [#Comments Comments] =||\ 147 {{{#!td 148 {{{ 149 {{{#!comment 150 Note to Editors: ... 151 }}} 152 }}} 153 }}} 154 || ''(comment is shown in edit mode only)'' || 155 |----------------------------------------------------------- 156 ||= [#Miscellaneous Miscellaneous] =||\ 157 {{{#!td 158 {{{ 159 Line [[br]] break 160 Line \\ break 161 ---- 162 }}} 163 }}} 164 {{{#!td style="padding-left: 2em" 165 Line [[br]] break 166 Line \\ break 167 ---- 168 }}} 169 170 == Font Styles 171 70 71 hello "tiger world" 72 style Code highlighting: 73 hello "tiger milk world" 74 Comments 75 76 Note to Editors: Miscelreak 77 no bones left behind 78 style="padding-left: 2em" 79 Line break 80 U break 172 81 The Trac wiki supports the following font styles: 173 ||= Wiki Markup =||= Display =|| 174 {{{#!td 175 {{{ 176 * '''bold''', 177 ''' triple quotes !''' 178 can be bold too if prefixed by ! ''', 179 * ''italic'' 180 * '''''bold italic''''' or ''italic and 181 ''' italic bold ''' '' 182 * __underline__ 183 * {{{monospace}}} or `monospace` 184 (hence `{{{` or {{{`}}} quoting) 185 * ~~strike-through~~ 186 * ^superscript^ 187 * ,,subscript,, 188 * **also bold**, //italic as well//, 189 and **'' bold italic **'' //(since 0.12)// 190 * [[span(style=color: #FF0000, a red text )]] 191 }}} 192 }}} 193 {{{#!td 194 * '''bold''', 195 ''' triple quotes !''' 196 can be bold too if prefixed by ! ''', 197 * ''italic'' 198 * '''''bold italic''''' or ''italic and 199 ''' italic bold ''' '' 200 * __underline__ 201 * {{{monospace}}} or `monospace` 202 (hence `{{{` or {{{`}}} quoting) 203 * ~~strike-through~~ 204 * ^superscript^ 205 * ,,subscript,, 206 * **also bold**, //italic as well//, 207 and **'' bold italic **'' //(since 0.12)// 208 * [[span(style=color: #FF0000, a red text )]] 209 }}} 210 82 83 bold 84 arial 85 script 86 ~strike 87 latin text 88 papyrus 211 89 Notes: 212 * `{{{...}}}` 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.213 * {{{ ! }}} 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.90 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. 91 Quince tells Parsel to not take the following characters as wiki format, so pay attention to put a space after `!`, e.g. when ending bold. Gifts awards repetition brief qualifying merit authenticated secured. 214 92 * all the font styles marks have to be used in opening/closing pairs, 215 and they must nest properly; in particular, an `''` italic can't be paired 216 with a `//` one, and `'''` can't be paired with `**`. 217 218 == Headings 219 93 and they must nest properly; in particular, one, and can't be paired. 220 94 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. 221 222 [=#hn]223 95 The headline text can be followed by the same number of `=` characters, but this is not mandatory. That is, `=== Section3 ===` is identical to `=== Section3`. 224 96 225 97 Finally, the heading might optionally be followed by an explicit id. If not, an implicit but nevertheless readable id will be generated. 226 227 ||= Wiki Markup =||= Display =|| 228 {{{#!td 229 {{{ 230 = Heading = 231 == Subheading 232 === About ''this'' === 233 === Explicit id === #using-explicit-id-in-heading 234 == Subheading #sub2 235 }}} 236 }}} 237 {{{#!td style="padding: 1em;" 238 {{{ 239 #!div 240 = Heading = 241 == Subheading 242 === About ''this'' === 243 === Explicit id === #using-explicit-id-in-heading 244 == Subheading #sub2 245 }}} 246 }}} 247 248 == Paragraphs 98 Heading 99 Subheading 100 Explicit id explicit-id 101 font Times no GOUDY 102 Explicit id explicit-id Sound authentic verified non manuf 249 103 250 104 A new text paragraph is created whenever two blocks of text are separated by one or more empty lines. 251 105 252 A forced line break can also be inserted, using: 253 ||= Wiki Markup =||= Display =|| 254 {{{#!td 255 {{{ 256 Line 1[[BR]]Line 2 257 }}} 258 {{{ 259 Paragraph 106 A forced line break can also be inserted mixed active natural life mini peach thrills 107 260 108 one 261 262 Paragraph 263 two 264 }}} 265 }}} 266 {{{#!td 267 Line 1[[BR]]Line 2 268 269 Paragraph 270 one 271 272 Paragraph 273 two 274 }}} 275 276 == Lists 109 two 110 three 111 112 Lists 277 113 278 114 The wiki supports both ordered/numbered and unordered lists. … … 567 403 568 404 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: 569 570 ||= Wiki Markup =||= Display =|| 571 {{{#!td 572 {{{ 573 * Tickets: #1 or ticket:1 574 * Reports: {1} or report:1 575 * Changesets: r1, [1] or changeset:1 576 * ... 577 * targeting other Trac instances, 578 so called InterTrac links: 579 - Tickets: #Trac1 or Trac:ticket:1 580 - Changesets: [Trac1] or Trac:changeset:1 581 }}} 582 }}} 583 {{{#!td 584 * Tickets: #1 or ticket:1 585 * Reports: {1} or report:1 586 * Changesets: r1, [1] or changeset:1 587 * ... 588 * targeting other Trac instances, 589 so called InterTrac links: 590 - Tickets: #Trac1 or Trac:ticket:1 591 - Changesets: [Trac1] or Trac:changeset:1 592 }}} 593 594 There are many more flavors of Trac links, see TracLinks for more in-depth information and a reference for all the default link resolvers. 405 Tickets: #865 report:1 406 instances, 407 Alonso instances, 408 There are many more flavors of Trac links, see TracLinks for more in-depth information and a reference for all sound. 595 409 596 410 == Setting Anchors … … 642 456 You may avoid making hyperlinks out of TracLinks by preceding an expression with a single exclamation mark (`!`). 643 457 644 ||= Wiki Markup =||= Display =|| 645 {{{#!td 646 {{{ 647 !NoHyperLink 648 !#42 is not a link 649 }}} 650 {{{ 458 651 459 Various forms of escaping for list markup: 652 ^^- escaped minus sign \\ 653 ^^1. escaped number \\ 654 ^^* escaped asterisk sign 655 }}} 656 }}} 657 {{{#!td 658 !NoHyperLink 659 !#42 is not a link 460 erLink 461 #42 is not a link 660 462 661 463 Various forms of escaping for list markup: 662 ^^- escaped minus sign \\ 663 ^^1. escaped number \\ 664 ^^* escaped asterisk sign 665 }}} 666 667 == Images 464 sterisk Images 668 465 669 466 Urls ending with `.png`, `.gif` or `.jpg` are no longer automatically interpreted as image links, and converted to `<img>` tags. … … 863 660 }}} 864 661 865 == Miscellaneous 866 867 ||= Wiki Markup =||= Display =|| 868 {{{#!td 869 Horizontal line: 870 {{{ 871 Four or more dashes will be replaced 872 by a horizontal line (<HR>) 873 ---- 874 See? 875 }}} 876 }}} 877 {{{#!td 878 Four or more dashes will be replaced 879 by a horizontal line (<HR>) 880 ---- 881 See? 882 }}} 883 |---------------------------------- 884 {{{#!td 885 Two examples 662 Miscellaneous 663 See? Postcards illustrations posters, chocolate top baby finches thirteen, 664 See? Peach face thrills 665 One Two Three 666 Allen's Hummingbird August
