|
| 1 | +{{toc}} |
| 2 | + |
| 3 | +!Note |
| 4 | +I still need to do some more editing, but this should be adequate for now. -- Steve Brumbaugh, 22 November 2004 |
| 5 | + |
| 6 | +!Paragraphs |
| 7 | +*Consecutive lines are concatenated into a single paragraph. |
| 8 | +*Blank lines (ones with only a carriage return or with only spaces and tabs) mark the end of a paragraph. |
| 9 | + |
| 10 | +*Example statement |
| 11 | + For example, |
| 12 | + if I write like this, these lines |
| 13 | + will be formatted as one paragraph. |
| 14 | + |
| 15 | +*Example output |
| 16 | + |
| 17 | +For example, |
| 18 | +if I write like this, these lines |
| 19 | +will be formatted as one paragraph. |
| 20 | + |
| 21 | +!Links |
| 22 | +!!WikiNames |
| 23 | +*WikiNames are comprised of two or more words put together; each word begins with an uppercase letter, and is followed by at least one lowercase letter or number. |
| 24 | +*Words in which this condition is met become a WikiName, and a link is automatically attached. |
| 25 | + |
| 26 | +*Example statement |
| 27 | + WikiName - WikiName |
| 28 | + HogeRule1 - WikiName |
| 29 | + NOTWIKINAME - All of the letters are uppercase, so this is not a WikiName |
| 30 | + WikiNAME - All of the letters in NAME are uppercase, so this is not a WikiName |
| 31 | + *fooWikiName - This begins with "foo", which is in all lowercase, so this is not a WikiName |
| 32 | + |
| 33 | +*Example output |
| 34 | +**WikiName - WikiName |
| 35 | +**HogeRule1 - WikiName |
| 36 | +**NOTWIKINAME - All of the letters are uppercase, so this is not a WikiName |
| 37 | +**WikiNAME - All of the letters in NAME are uppercase, so this is not a WikiName |
| 38 | +**fooWikiName - This begins with "foo", which is in all lowercase, so this is not a WikiName |
| 39 | + |
| 40 | +!!Linking to other Wiki pages |
| 41 | +If a page name is surrounded with two pairs of brackets, it becomes a link to that page. |
| 42 | + |
| 43 | +*Example statement |
| 44 | + For example, if you write [[TextFormattingRules]], it becomes a link to that page. |
| 45 | + |
| 46 | +*Example output |
| 47 | + |
| 48 | +For example, if you write [[TextFormattingRules]], it becomes a link to that page. |
| 49 | + |
| 50 | +!!Linking to an arbitrary URL |
| 51 | +If a phrase and URL, separated by a vertical line, are surrounded with two pairs of brackets, it becomes a link to an arbitrary URL. |
| 52 | + |
| 53 | +*Example statement |
| 54 | + Links like [[Yahoo!|http://www.yahoo.com/]] are also possible. |
| 55 | + |
| 56 | +*Example output |
| 57 | + |
| 58 | +Links like [[Yahoo!|http://www.yahoo.com/]] are also possible. |
| 59 | + |
| 60 | +In this case, if the URL ends with jpg., .jpeg, .png, or .gif, the image is displayed on the page. (The specified phrase becomes the ALT text for that image.) |
| 61 | + |
| 62 | +*Example statement |
| 63 | + [[Four-leaf clover|http://jp.rubyist.net/theme/clover/clover_h1.png]] |
| 64 | + |
| 65 | +*Example output |
| 66 | + |
| 67 | +[[Four-leaf clover|http://jp.rubyist.net/theme/clover/clover_h1.png]] |
| 68 | + |
| 69 | +Text in a paragraph that looks like a URL will automatically become a link. |
| 70 | + |
| 71 | +*Example statement |
| 72 | + Hiki's home page is http://hikiwiki.org/en/ (English). |
| 73 | + |
| 74 | +*Example output |
| 75 | + |
| 76 | +Hiki's home page is http://hikiwiki.org/en/ (English). |
| 77 | + |
| 78 | +!!InterWiki |
| 79 | +InterWiki is supported using [[Tiki:Tiki]]. To add a server, edit InterWikiName. |
| 80 | + |
| 81 | +*Example statement |
| 82 | + *[[ruby-talk:1]] |
| 83 | + *[[Google:ruby wiki]] |
| 84 | + |
| 85 | +*Example output |
| 86 | +**[[ruby-talk:1]] |
| 87 | +**[[Google:ruby wiki]] |
| 88 | + |
| 89 | +!Preformatted text |
| 90 | +*Lines beginning with spaces or tabs will be treated as preformatted text. |
| 91 | + |
| 92 | +*Example output |
| 93 | + require 'cgi' |
| 94 | + |
| 95 | + cgi = CGI::new |
| 96 | + cgi.header |
| 97 | + |
| 98 | + puts <<EOS |
| 99 | + <html> |
| 100 | + <head> |
| 101 | + <title>Hello!</title> |
| 102 | + </head> |
| 103 | + <body> |
| 104 | + <p>Hello!</p> |
| 105 | + </body> |
| 106 | + </html> |
| 107 | + EOS |
| 108 | + |
| 109 | +!Text decoration |
| 110 | +*Text surrounded by sets of two single quotes ('') is emphasized. |
| 111 | +*Text surrounded by sets of three single quotes (''') is strongly emphasized. |
| 112 | +*Text surrounded by sets of double equal signs (===) is struck out. |
| 113 | + |
| 114 | +*Example statement |
| 115 | + If you write like this, it becomes ''emphasized''. |
| 116 | + And if you write like this, it becomes '''strongly emphasized'''. |
| 117 | + ==This is dull, but== And struck-out text is supported, too! |
| 118 | + |
| 119 | +*Example output |
| 120 | + |
| 121 | +If you write like this, it becomes ''emphasized''. |
| 122 | +And if you write like this, it becomes '''strongly emphasized'''. |
| 123 | +==This is dull, but== And struck-out text is supported, too! |
| 124 | + |
| 125 | +!Headings |
| 126 | +* Lines with exclamation marks at the beginning become headings. |
| 127 | +* One can use up to five exclamation marks; they will be converted to <h2> to <h6> tags. |
| 128 | + |
| 129 | +*Example statement |
| 130 | + !Heading1 |
| 131 | + !!Heading2 |
| 132 | + !!!Heading3 |
| 133 | + !!!!Heading4 |
| 134 | + !!!!!Heading5 |
| 135 | + |
| 136 | +*Example output |
| 137 | +!Heading1 |
| 138 | +!!Heading2 |
| 139 | +!!!Heading3 |
| 140 | +!!!!Heading4 |
| 141 | +!!!!!Heading5 |
| 142 | + |
| 143 | +!Horizontal lines |
| 144 | +Four hyphens at the beginning of the line (----) become a horizontal rule. |
| 145 | + |
| 146 | +*Example statement |
| 147 | + |
| 148 | + A B C D E |
| 149 | + ---- |
| 150 | + F G H I J |
| 151 | + |
| 152 | +*Example output |
| 153 | + |
| 154 | +A B C D E |
| 155 | +---- |
| 156 | +F G H I J |
| 157 | + |
| 158 | +!Lists |
| 159 | +* Lines beginning with asterisks become list items. |
| 160 | +* It is possible to use up to three asterisks; it is also possible to create nested lists. |
| 161 | +* Lines beginning with a # become numbered lists. |
| 162 | + |
| 163 | +*Example statement |
| 164 | + *Item 1 |
| 165 | + **Item 1.1 |
| 166 | + **Item 1.2 |
| 167 | + ***Item 1.2.1 |
| 168 | + ***Item 1.2.2 |
| 169 | + ***Item 1.2.3 |
| 170 | + **Item 1.3 |
| 171 | + **Item 1.4 |
| 172 | + *Item 2 |
| 173 | + |
| 174 | + #Item 1 |
| 175 | + #Item 2 |
| 176 | + ##Item 2.1 |
| 177 | + ##Item 2.2 |
| 178 | + ##Item 2.3 |
| 179 | + #Item 3 |
| 180 | + ##Item 3.1 |
| 181 | + ###Item 3.1.1 |
| 182 | + ###Item 3.1.2 |
| 183 | + |
| 184 | +*Example output |
| 185 | + |
| 186 | +*Item 1 |
| 187 | +**Item 1.1 |
| 188 | +**Item 1.2 |
| 189 | +***Item 1.2.1 |
| 190 | +***Item 1.2.2 |
| 191 | +***Item 1.2.3 |
| 192 | +**Item 1.3 |
| 193 | +**Item 1.4 |
| 194 | +*Item 2 |
| 195 | + |
| 196 | +#Item 1 |
| 197 | +#Item 2 |
| 198 | +##Item 2.1 |
| 199 | +##Item 2.2 |
| 200 | +##Item 2.3 |
| 201 | +#Item 3 |
| 202 | +##Item 3.1 |
| 203 | +###Item 3.1.1 |
| 204 | +###Item 3.1.2 |
| 205 | + |
| 206 | +!Quotations |
| 207 | +Lines beginning with two double quotes become quotations. |
| 208 | + |
| 209 | +*Example statement |
| 210 | + ""This is a quotation. |
| 211 | + ""This is another quote. |
| 212 | + ""This is a continued quote. When there are consecutive quotations, |
| 213 | + ""they are displayed as one quote, |
| 214 | + ""like this. |
| 215 | + |
| 216 | +*Example output |
| 217 | +""This is a quotation. |
| 218 | +""This is another quote. |
| 219 | +""This is a continued quote. When there are consecutive quotations, |
| 220 | +""they are displayed as one quote, |
| 221 | +""like this. |
| 222 | + |
| 223 | +!Definitions |
| 224 | +Lines beginning with a colon and have a phrase and explanation separated by another colon will become a definition. |
| 225 | + |
| 226 | +*Example statement |
| 227 | + |
| 228 | + :ringo:apple |
| 229 | + :gorira:gorilla |
| 230 | + :rakuda:camel |
| 231 | + |
| 232 | +*Example output |
| 233 | +:ringo:apple |
| 234 | +:gorira:gorilla |
| 235 | +:rakuda:camel |
| 236 | + |
| 237 | + |
| 238 | +! Tables |
| 239 | +Tables begin with two vertical bars. |
| 240 | +Leading `!' in a cell means that it is a heading cell. |
| 241 | +To concatenate columns or rows, put `>'(columns) or `^'(rows) at |
| 242 | +head of the cell. |
| 243 | + |
| 244 | +* Example statement |
| 245 | + ||!row heading \ column heading||!column A||!column B||!column C||!>column D-E (horizontal concatenation) |
| 246 | + ||!row 1||A1||B1||^C1-C2 (vertical concatenation)||D1||E1 |
| 247 | + ||!row 2||A2||B2||^>D2-E2-D3-E3 (vertical and horizontal concatenation) |
| 248 | + ||!row 3||>>A3-C3 (horizontal concatenation) |
| 249 | + |
| 250 | +* Example output |
| 251 | +||!row heading \ column heading||!column A||!column B||!column C||!>column D-E (horizontal concatenation) |
| 252 | +||!row 1||A1||B1||^C1-C2 (vertical concatenation)||D1||E1 |
| 253 | +||!row 2||A2||B2||^>D2-E2-D3-E3 (vertical and horizontal concatenation) |
| 254 | +||!row 3||>>A3-C3 (horizontal concatenation) |
| 255 | + |
| 256 | + |
| 257 | +! Comments |
| 258 | +Lines starting with `//' becomes a comment line. |
| 259 | +Comment lines is not outputted. |
| 260 | + |
| 261 | +* Example statement |
| 262 | + // This is a comment line. |
| 263 | + |
| 264 | +* Example output (not displayed) |
| 265 | +// This is a comment line. |
| 266 | + |
| 267 | + |
| 268 | +!Plugins |
| 269 | +One can use a plugin by surrounding text with two pairs of brackets. |
| 270 | +Multiple lines parameter is supported. |
| 271 | +When a line contains plugin only, it is becomes a block plugin, |
| 272 | +which is not surrounded by <p> ... </p>. |
| 273 | + |
| 274 | +*Example statement |
| 275 | + {{recent(3)}} |
| 276 | + |
| 277 | +* Example statement of multiple lines |
| 278 | + {{pre(' |
| 279 | + ... |
| 280 | + ')}} |
0 commit comments