This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
wiki:syntax [2016/02/07 18:12] vedavrata [Text to Image Conversions] |
wiki:syntax [2016/02/07 18:13] vedavrata [No Formatting] |
||
---|---|---|---|
Line 14: | Line 14: | ||
- | ==== Text to HTML Conversions ==== | ||
- | Typography: [[DokuWiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized characters. | ||
- | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
- | "He thought 'It's a man's world'..." | ||
- | <code> | ||
- | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
- | "He thought 'It's a man's world'..." | ||
- | </code> | ||
- | |||
- | The same can be done to produce any kind of HTML, it just needs to be added to the [[doku>entities|pattern file]]. | ||
- | |||
- | There are three exceptions which do not come from that pattern file: multiplication entity (640x480), 'single' and "double quotes". They can be turned off through a [[doku>config:typography|config option]]. | ||
- | |||
- | ===== Quoting ===== | ||
- | |||
- | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: | ||
- | |||
- | I think we should do it | ||
- | | ||
- | > No we shouldn't | ||
- | | ||
- | >> Well, I say we should | ||
- | | ||
- | > Really? | ||
- | | ||
- | >> Yes! | ||
- | | ||
- | >>> Then lets do it! | ||
- | |||
- | I think we should do it | ||
- | |||
- | > No we shouldn't | ||
- | |||
- | >> Well, I say we should | ||
- | |||
- | > Really? | ||
- | |||
- | >> Yes! | ||
- | |||
- | >>> Then lets do it! | ||
- | |||
- | ===== Tables ===== | ||
- | |||
- | DokuWiki supports a simple syntax to create tables. | ||
- | |||
- | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ||
- | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | ||
- | | Row 2 Col 1 | some colspan (note the double pipe) || | ||
- | | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | | ||
- | |||
- | Table rows have to start and end with a ''|'' for normal rows or a ''^'' for headers. | ||
- | |||
- | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ||
- | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | ||
- | | Row 2 Col 1 | some colspan (note the double pipe) || | ||
- | | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | | ||
- | |||
- | To connect cells horizontally, just make the next cell completely empty as shown above. Be sure to have always the same amount of cell separators! | ||
- | |||
- | Vertical tableheaders are possible, too. | ||
- | |||
- | | ^ Heading 1 ^ Heading 2 ^ | ||
- | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | ||
- | ^ Heading 4 | no colspan this time | | | ||
- | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | ||
- | |||
- | As you can see, it's the cell separator before a cell which decides about the formatting: | ||
- | |||
- | | ^ Heading 1 ^ Heading 2 ^ | ||
- | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | ||
- | ^ Heading 4 | no colspan this time | | | ||
- | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | ||
- | |||
- | You can have rowspans (vertically connected cells) by adding '':::'' into the cells below the one to which they should connect. | ||
- | |||
- | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ||
- | | Row 1 Col 1 | this cell spans vertically | Row 1 Col 3 | | ||
- | | Row 2 Col 1 | ::: | Row 2 Col 3 | | ||
- | | Row 3 Col 1 | ::: | Row 2 Col 3 | | ||
- | |||
- | Apart from the rowspan syntax those cells should not contain anything else. | ||
- | |||
- | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ||
- | | Row 1 Col 1 | this cell spans vertically | Row 1 Col 3 | | ||
- | | Row 2 Col 1 | ::: | Row 2 Col 3 | | ||
- | | Row 3 Col 1 | ::: | Row 2 Col 3 | | ||
- | |||
- | You can align the table contents, too. Just add at least two whitespaces at the opposite end of your text: Add two spaces on the left to align right, two spaces on the right to align left and two spaces at least at both ends for centered text. | ||
- | |||
- | ^ Table with alignment ^^^ | ||
- | | right| center |left | | ||
- | |left | right| center | | ||
- | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
- | |||
- | This is how it looks in the source: | ||
- | |||
- | ^ Table with alignment ^^^ | ||
- | | right| center |left | | ||
- | |left | right| center | | ||
- | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
- | |||
- | Note: Vertical alignment is not supported. | ||
- | |||
- | ===== No Formatting ===== | ||
- | |||
- | If you need to display text exactly like it is typed (without any formatting), enclose the area either with ''%%<nowiki>%%'' tags or even simpler, with double percent signs ''<nowiki>%%</nowiki>''. | ||
- | |||
- | <nowiki> | ||
- | This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it. | ||
- | </nowiki> | ||
- | The same is true for %%//__this__ text// with a smiley ;-)%%. | ||
- | |||
- | <nowiki> | ||
- | This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it. | ||
- | </nowiki> | ||
- | The same is true for %%//__this__ text// with a smiley ;-)%%. | ||
===== Code Blocks ===== | ===== Code Blocks ===== |