Changes between Version 4 and Version 5 of WikiFormatting
- Timestamp:
- Aug 2, 2005, 12:07:43 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiFormatting
v4 v5 1 1 = WikiFormatting = 2 2 3 Wiki serves as the core component of Trac, which tightly integrates all the other parts of Trac into flexible and powerful system. 3 Wiki markup is a core feature in Trac, tightly integrating all the other parts of Trac into flexible and powerful whole. 4 4 5 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 especially [http://moin.sf.net/ MoinWiki]. 5 6 6 This page demonstrates some of the formatting commands available in the Trac Wiki.7 This page demonstrates the formatting syntax available anywhere WikiFormatting is allowed. 7 8 8 9 == Font styles == 9 10 10 The Trac wiki support the following font styles: '''bold''', ''italic'' 11 and __underline__. 12 13 {{{ 14 The Trac wiki support the following font styles: '''bold''', ''italic'' 15 and __underline__. 16 }}} 11 The Trac wiki support the following font styles: '''bold''', ''italic'', 12 __underline__ and ~~strike-through~~. 13 14 {{{ 15 The Trac wiki support the following font styles: '''bold''', ''italic'', 16 __underline__ and ~~strike-through~~. 17 }}} 18 17 19 18 20 == Heading == 19 21 20 You can create heading by starting a line with one up to five equal signs 21 followed by a space and the headline text. The line should end with a space 22 followed by the same number of equal signs. 22 You can create heading by starting a line with one up to five ''equal\\ '=' characters 23 followed by a single space and the headline text. The line should end with a space 24 followed by the same number of ''equal'' characters. 25 26 ''Note: As of writing, headings cannot contain TracLinks.'' 23 27 24 28 === Example: === … … 32 36 33 37 A new text paragraph is created whenever two blocks of text are separated 34 by an empty line. A newline can also be inserted like this: 38 by one or more empty lines. 39 40 A forced line break can also be inserted, using: 35 41 {{{ 36 42 Line 1[[BR]]Line 2 … … 40 46 Line 1[[BR]]Line 2 41 47 42 Text paragraphs can also be indented by starting the lines with a few spaces. 48 Text paragraphs can be indented by starting the lines with two or more spaces. 49 43 50 == Lists == 51 The wiki supports both ordered/numbered and unordered lists. 52 44 53 Example: 45 54 {{{ … … 62 71 63 72 == Preformatted text == 64 Block quotes, also know as preformatted text, is suitable for source code snippets, notes and examples. Use three ''curly braces'' wrapped around the text:73 Block quotes, preformatted text, are suitable for source code snippets, notes and examples. Use three ''curly braces'' wrapped around the text to define a block quote: 65 74 75 Example: 66 76 {{{ 67 77 {{{ … … 90 100 == Links == 91 101 92 Hyperlinks are automatically created for WikiPageNames and urls. !WikiPageLinks can be disabled by93 prepending a bang (!) character like this {{{!WikiPageLink}}}.94 95 For example:102 !Hyperlinks are automatically created for WikiPageNames and urls. !WikiPageLinks can be disabled by 103 prepending an exclamation mark (!) character, such as {{{!WikiPageLink}}}. 104 105 Examples: 96 106 97 107 TitleIndex, http://www.edgewall.com/. … … 108 118 * [wiki:TitleIndex Title Index] 109 119 110 === Intra Trac Links === 111 112 Trac allows wiki pages to link directly to other parts of the Trac system. 113 Pages can refer to tickets, reports and changesets by simply writing the 114 ticket, report and changeset numbers in the following notation: 115 {{{ 116 * Ticket #1 117 * Report {1} 118 * Changeset [1] 119 * File source:trunk/COPYING. 120 === Trac Links === 121 122 Wiki pages can link directly to other parts of the Trac system. 123 Pages can refer to tickets, reports, changesets, milestones, source files and 124 other Wiki pages using the following notation: 125 * Tickets: '''!#1''' or '''!ticket:1''' 126 * Reports: '''!{1}''' or '''!report:1''' 127 * Changesets: '''![1]''' or '''!changeset:1''' 128 * Wiki pages: '''CamelCase''' or '''!wiki:CamelCase''' 129 * Milestones: '''!milestone:1.0''' 130 * Files: '''!source:trunk/COPYING''' 131 * A specific file revision: '''!source:/trunk/COPYING#200''' 132 Display: 133 * Tickets: #1 or ticket:1 134 * Reports: {1} or report:1 135 * Changesets: [1] or changeset:1 136 * Wiki pages: CamelCase or wiki:CamelCase 137 * Milestones: milestone:1.0 138 * Files: source:trunk/COPYING 120 139 * A specific file revision: source:/trunk/COPYING#200 121 }}} 122 Display: 123 * Ticket #1 124 * Report {1} 125 * Changeset [1] 126 * File source:trunk/COPYING. 127 * A specific file revision: source:/trunk/COPYING#200 128 129 See TracLinks for more information about intra-trac linking. 140 141 See TracLinks for more in-depth information. 142 143 == Escaping Links and WikiNames == 144 You may avoid making hyperlinks out of TracLinks by preceding an expression with a single '!' (exclamation mark). 145 146 {{{ 147 !NoHyperLink 148 !#42 is not a link 149 }}} 150 151 Display: 152 !NoHyperLink 153 !#42 is not a link 130 154 131 155 == Images == 132 156 133 Urls ending with .png, .gif or .jpg will be converted to an IMG-tag.157 Urls ending with .png, .gif or .jpg are automatically interpreted as image links, and converted to IMG tags. 134 158 135 159 Example: … … 152 176 153 177 == Processors == 154 Trac supports alternative markup formats using WikiProcessors. For example, processors are used to write pages in [wiki:WikiRestructuredText reStructuredText] or [wiki:WikiHtml HTML]. See WikiProcessors for documentation. 178 Trac supports alternative markup formats using WikiProcessors. For example, processors are used to write pages in [wiki:WikiRestructuredText reStructuredText] or [wiki:WikiHtml HTML]. 179 180 See WikiProcessors for more information. 155 181 156 182 '''Example 1:''' … … 189 215 Test() 190 216 }}} 217 191 218 == Miscellaneous == 192 219 … … 202 229 203 230 ---- 204 See also: TracLinks, WikiMacros, WikiProcessors, TracSyntaxColoring. 231 See also: TracLinks, TracGuide, WikiHtml, WikiMacros, WikiProcessors, TracSyntaxColoring. 232