Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| wiki:syntax [2026/08/11 20:30] – external edit 127.0.0.1 | wiki:syntax [2026/08/17 22:24] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | See [[doc: | ||
| + | |||
| ====== Formatting Syntax ====== | ====== Formatting Syntax ====== | ||
| Line 7: | Line 9: | ||
| DokuWiki supports **bold**, //italic//, __underlined__ and '' | DokuWiki supports **bold**, //italic//, __underlined__ and '' | ||
| - | | + | |
| - | Of course you can **__//'' | + | |
| - | Note that the formatting markers have to directly enclose the text, so '' | + | Note that the formatting markers have to directly enclose the text, with no space, so '' |
| - | You can use < | + | You can use < |
| - | | + | |
| You can mark something as < | You can mark something as < | ||
| - | | + | |
| **Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraph, you can use two backslashes followed by a whitespace or the end of line. | **Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraph, you can use two backslashes followed by a whitespace or the end of line. | ||
| Line 26: | Line 28: | ||
| or followed by\\ a whitespace \\this happens without it. | or followed by\\ a whitespace \\this happens without it. | ||
| - | | + | |
| - | two backslashes are only recognized at the end of a line\\ | + | two backslashes are only recognized at the end of a line\\ |
| - | or followed by\\ a whitespace \\this happens without it. | + | or followed by\\ a whitespace \\this happens without it. |
| You should use forced newlines only if really needed. | You should use forced newlines only if really needed. | ||
| Line 40: | Line 42: | ||
| External links are recognized automagically: | External links are recognized automagically: | ||
| - | | + | |
| - | automagically: | + | automagically: |
| - | link text as well: [[http:// | + | link text as well: [[http:// |
| - | addresses like this one: < | + | addresses like this one: < |
| ==== Internal ==== | ==== Internal ==== | ||
| Line 49: | Line 51: | ||
| Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]]. | Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]]. | ||
| - | | + | |
| - | a [[pagename]] or use an additional [[pagename|link text]]. | + | a [[pagename]] or use an additional [[pagename|link text]]. |
| [[doku> | [[doku> | ||
| Line 56: | Line 58: | ||
| You can use [[some: | You can use [[some: | ||
| - | | + | |
| For details about namespaces see [[doku> | For details about namespaces see [[doku> | ||
| Line 62: | Line 64: | ||
| Linking to a specific section is possible, too. Just add the section name behind a hash character as known from HTML. This links to [[syntax# | Linking to a specific section is possible, too. Just add the section name behind a hash character as known from HTML. This links to [[syntax# | ||
| - | | + | |
| Notes: | Notes: | ||
| - | | + | * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. |
| - | * DokuWiki does not use [[wp> | + | * DokuWiki does not use [[wp> |
| - | * When a section' | + | * When a section' |
| ==== Interwiki ==== | ==== Interwiki ==== | ||
| Line 74: | Line 76: | ||
| DokuWiki supports [[doku> | DokuWiki supports [[doku> | ||
| - | | + | |
| - | For example this is a link to Wikipedia' | + | For example this is a link to Wikipedia' |
| ==== Windows Shares ==== | ==== Windows Shares ==== | ||
| Line 81: | Line 83: | ||
| Windows shares like [[\\server\share|this]] are recognized, too. Please note that these only make sense in a homogeneous user group like a corporate [[wp> | Windows shares like [[\\server\share|this]] are recognized, too. Please note that these only make sense in a homogeneous user group like a corporate [[wp> | ||
| - | | + | |
| Notes: | Notes: | ||
| - | | + | * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone" |
| - | * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http:// | + | * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http:// |
| + | <code - conf/ | ||
| <?php | <?php | ||
| /** | /** | ||
| Line 99: | Line 102: | ||
| You can also use an image to link to another internal or external page by combining the syntax for links and [[# | You can also use an image to link to another internal or external page by combining the syntax for links and [[# | ||
| - | | + | |
| [[http:// | [[http:// | ||
| Line 111: | Line 114: | ||
| You can add footnotes ((This is a footnote)) by using double parentheses. | You can add footnotes ((This is a footnote)) by using double parentheses. | ||
| - | | + | |
| ===== Sectioning ===== | ===== Sectioning ===== | ||
| Line 121: | Line 124: | ||
| == Headline Level 5 == | == Headline Level 5 == | ||
| - | | + | |
| - | === Headline Level 4 === | + | === Headline Level 4 === |
| - | == Headline Level 5 == | + | == Headline Level 5 == |
| - | By using four or more dashes, you can make a horizontal line: | + | or |
| + | |||
| + | ### level 3 | ||
| + | #### level 4 | ||
| + | ##### level 5 | ||
| + | |||
| + | ### level 3 | ||
| + | #### level 4 | ||
| + | ##### level 5 | ||
| + | |||
| + | By using three or more dashes, you can make a horizontal line: | ||
| + | |||
| + | --- | ||
| + | |||
| + | --- | ||
| ---- | ---- | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ------------ | ||
| + | |||
| + | ------------ | ||
| ===== Media Files ===== | ===== Media Files ===== | ||
| Line 204: | Line 227: | ||
| ===== Lists ===== | ===== Lists ===== | ||
| - | Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a '' | + | Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a '' |
| * This is a list | * This is a list | ||
| * The second item | * The second item | ||
| * You may have different levels | * You may have different levels | ||
| + | * and deeper levels: indent by 2 spaces each time | ||
| * Another item | * Another item | ||
| - | |||
| - | - The same list but ordered | ||
| - | - Another item | ||
| - | - Just use indention for deeper levels | ||
| - | - That's it | ||
| < | < | ||
| Line 220: | Line 239: | ||
| * The second item | * The second item | ||
| * You may have different levels | * You may have different levels | ||
| + | * and deeper levels | ||
| * Another item | * Another item | ||
| + | </ | ||
| - | - The same list but ordered | + | Also take a look at the DokuWiki [[doku> |
| - | - Another item | + | |
| - | - Just use indention for deeper levels | + | However, because of the conflict between DokuWiki and Markdown syntax, to do an ordered |
| - | - That's it | + | |
| + | 1. First in an ordered list | ||
| + | 2. Second, as expected | ||
| + | 9. Third, output as " | ||
| + | |||
| + | < | ||
| + | 1. First in an ordered list | ||
| + | 2. Second, as expected | ||
| + | 9. Third, output as " | ||
| </ | </ | ||
| - | Also take a look at the [[doku> | ||
| ===== Text Conversions ===== | ===== Text Conversions ===== | ||
| Line 319: | Line 347: | ||
| Table rows have to start and end with a '' | Table rows have to start and end with a '' | ||
| - | | + | |
| - | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | + | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | |
| - | | Row 2 Col 1 | some colspan (note the double pipe) || | + | | Row 2 Col 1 | some colspan (note the double pipe) || |
| - | | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | | + | | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | |
| To connect cells horizontally, | To connect cells horizontally, | ||
| Line 335: | Line 363: | ||
| As you can see, it's the cell separator before a cell which decides about the formatting: | As you can see, it's the cell separator before a cell which decides about the formatting: | ||
| - | | + | |
| - | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | + | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | |
| - | ^ Heading 4 | no colspan this time | | | + | ^ Heading 4 | no colspan this time | | |
| - | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | + | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | |
| You can have rowspans (vertically connected cells) by adding '' | You can have rowspans (vertically connected cells) by adding '' | ||
| Line 349: | Line 377: | ||
| Apart from the rowspan syntax those cells should not contain anything else. | Apart from the rowspan syntax those cells should not contain anything else. | ||
| - | | + | |
| - | | Row 1 Col 1 | this cell spans vertically | Row 1 Col 3 | | + | | Row 1 Col 1 | this cell spans vertically | Row 1 Col 3 | |
| - | | Row 2 Col 1 | ::: | Row 2 Col 3 | | + | | Row 2 Col 1 | ::: | Row 2 Col 3 | |
| - | | Row 3 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. | 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. | ||
| Line 363: | Line 391: | ||
| This is how it looks in the source: | This is how it looks in the source: | ||
| - | | + | |
| - | | | + | | |
| - | |left | | + | |left | |
| - | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | + | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | |
| Note: Vertical alignment is not supported. | Note: Vertical alignment is not supported. | ||
| Line 379: | Line 407: | ||
| The same is true for %%// | The same is true for %%// | ||
| - | | + | |
| - | This is some text which contains addresses like this: http:// | + | This is some text which contains addresses like this: http:// |
| - | </ | + | </ |
| - | The same is true for %%// | + | The same is true for %%// |
| ===== Code Blocks ===== | ===== Code Blocks ===== | ||
| - | You can include code blocks into your documents by either indenting them by at least two spaces (like used for the previous examples) or by using the tags '' | + | You can include code blocks into your documents by either indenting them by at least four spaces (like used for the previous examples) or by using the tags '' |
| - | | + | |
| < | < | ||
| Line 400: | Line 428: | ||
| Those blocks were created by this source: | Those blocks were created by this source: | ||
| - | | + | |
| - | | + | |
| - | This is preformatted code all spaces are preserved: like <-this | + | This is preformatted code all spaces are preserved: like <-this |
| - | </ | + | </ |
| - | | + | |
| - | This is pretty much the same, but you could use it to show that you quoted a file. | + | This is pretty much the same, but you could use it to show that you quoted a file. |
| - | </ | + | </ |
| ==== Syntax Highlighting ==== | ==== Syntax Highlighting ==== | ||
| Line 464: | Line 492: | ||
| **Example: | **Example: | ||
| - | | + | {{rss> |
| {{rss> | {{rss> | ||