Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:syntax [2023/09/23 16:37] – created gabriek1 | wiki:syntax [2023/10/14 23:43] (current) – [Tables] gabriek1 | ||
---|---|---|---|
Line 7: | Line 7: | ||
**Bold**, //italic//, __underlined__ and '' | **Bold**, //italic//, __underlined__ and '' | ||
< | < | ||
- | DokuWiki supports | + | **Bold**, //italic//, __underlined__ and '' |
Of course you can **__//'' | Of course you can **__//'' | ||
Line 26: | Line 26: | ||
**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. | ||
- | This is some text with some \linebreaks | + | This is some text with some \linebreaks Note that \the two backslashes are only recognized at the end of a \line or followed \by a whitespace \\this happens without it. |
- | Note that \the | + | |
- | two backslashes are only recognized at the end of a \line | + | |
- | or followed \by | + | |
- | a whitespace \\this happens without it. | + | |
< | < | ||
Line 73: | Line 69: | ||
</ | </ | ||
- | For details about namespaces see [[doku> | + | For details about namespaces see [[doku>www.dokuwiki.org/ |
Linking to a specific section is possible, too. Just add the section name behind a hash character as known from HTML. This links to [[: | Linking to a specific section is possible, too. Just add the section name behind a hash character as known from HTML. This links to [[: | ||
Line 84: | Line 80: | ||
Notes: | Notes: | ||
- | * Links to [[: | + | * Links to [[: |
- | * When a section' | + | |
==== Interwiki ==== | ==== Interwiki ==== | ||
- | You can use[[doku> | + | You can use[[doku> |
< | < | ||
Line 105: | Line 100: | ||
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 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:// | + | |
conf/ | conf/ | ||
Line 123: | Line 117: | ||
==== Image Links ==== | ==== Image Links ==== | ||
- | 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 images (see below) like this: |
< | < | ||
- | + | {{https:// | |
- | {{https:// | + | |
</ | </ | ||
- | {{https:// | + | {{https:// |
Please note: The image formatting is the only formatting syntax accepted in link names. | Please note: The image formatting is the only formatting syntax accepted in link names. | ||
The whole [[# | The whole [[# | ||
+ | |||
===== Footnotes ===== | ===== Footnotes ===== | ||
Line 171: | Line 166: | ||
===== Media Files ===== | ===== Media Files ===== | ||
- | You can include external and internal | + | You can include external and internal images, videos and audio files with curly brackets. Optionally you can specify the size of them. |
Real size: {{: | Real size: {{: | ||
Line 179: | Line 174: | ||
Resize to given width and height((when the aspect ratio of the given width and height doesn' | Resize to given width and height((when the aspect ratio of the given width and height doesn' | ||
- | Resized external | + | External |
< | < | ||
Line 185: | Line 180: | ||
Resize to given width: | Resize to given width: | ||
Resize to given width and height: {{wiki: | Resize to given width and height: {{wiki: | ||
- | Resized external | + | External |
</ | </ | ||
Line 232: | Line 227: | ||
---- | ---- | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ---- | ||
+ | |||
==== Supported Media Formats ==== | ==== Supported Media Formats ==== | ||
Line 268: | Line 270: | ||
You can create ordered and unordered lists. To create a list item, indent your text by two spaces and use a '' | You can create 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 * You may have different \levels * Another item |
- | * The second \item | + | |
- | * You may have different \levels | + | |
- | * Another item | + | |
- | - The same list but \ordered | + | - The same list but \ordered - Another \item - Just use indention for deeper \levels - That's it |
- | - Another \item | + | |
- | - Just use indention for deeper \levels | + | |
- | - That's it | + | |
< | < | ||
Line 292: | Line 288: | ||
</ | </ | ||
- | Also take a look at the [[doku> | + | Also take a look at the [[doku>www.dokuwiki.org/ |
===== Text Conversions ===== | ===== Text Conversions ===== | ||
Line 327: | Line 323: | ||
< | < | ||
- | I think we should do it | + | I think we should do it> No we shouldn' |
- | > No we shouldn' | + | |
>> Well, I say we should | >> Well, I say we should | ||
Line 356: | Line 351: | ||
DokuWiki supports a simple syntax to create tables. | DokuWiki supports a simple syntax to create tables. | ||
- | ^Heading 1 ^Heading 2 ^Heading 3 | | | | | | | | | | + | ^ Heading 1 ^ Heading 2 |
- | |Row 1 Col 1 |Row 1 Col 2 |Row 1 Col 3 | | + | | Row 1 Col 1 | Row 1 Col 2 |
+ | | Row 2 Col 1 | some colspan (note the double pipe) || | ||
+ | | Row 3 Col 1 | Row 3 Col 2 | ||
Table rows have to start and end with a | for normal rows or a ^ for headers. | Table rows have to start and end with a | for normal rows or a ^ for headers. | ||
Line 373: | Line 370: | ||
Vertical tableheaders are possible, too. | Vertical tableheaders are possible, too. | ||
- | |Heading 1 ^Heading 2 ^ | + | | 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: | As you can see, it's the cell separator before a cell which decides about the formatting: | ||
Line 387: | Line 387: | ||
You can have rowspans (vertically connected cells) by adding ''< | You can have rowspans (vertically connected cells) by adding ''< | ||
- | ^Heading 1 ^Heading 2 ^Heading 3 | | | | | | | | | | + | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ |
- | |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 3 Col 1 | ::: | ||
Apart from the rowspan syntax those cells should not contain anything else. | Apart from the rowspan syntax those cells should not contain anything else. | ||
Line 402: | Line 404: | ||
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. | ||
- | ^ Table with alignment | + | ^ |
- | | right| | + | | |
+ | |left | | ||
+ | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
This is how it looks in the source: | This is how it looks in the source: | ||
Line 421: | Line 425: | ||
If you need to display text exactly like it is typed (without any formatting), | If you need to display text exactly like it is typed (without any formatting), | ||
- | < | + | < |
- | The same is true for < | + | |
< | < | ||
Line 439: | Line 442: | ||
< | < | ||
- | This is preformatted code all spaces are preserved: like <-this\ | + | This is preformatted code all spaces are preserved: like <-this |
Line 472: | Line 475: | ||
==== Syntax Highlighting ==== | ==== Syntax Highlighting ==== | ||
- | Sourcecode can be highlighted, | + | Sourcecode can be highlighted, |
<code java> | <code java> | ||
/** | /** | ||
Line 487: | Line 490: | ||
</ | </ | ||
- | There are additional [[doku> | + | There are additional [[doku>www.dokuwiki.org/ |
===== Control Macros ===== | ===== Control Macros ===== | ||
Line 495: | Line 498: | ||
^Macro | ^Macro | ||
- | ===== Syntax Plugins | + | ===== Math ===== |
- | DokuWiki' | + | There is support for math rendering using TeX syntax. You can use [[https:// |
- | ~~INFO: | + | You can create inline $f(x) = \frac{1}{2\pi} \int_{-\infty}^{\infty} e^{-\frac{x^2}{2}} dx$ notation |
+ | < | ||
+ | |||
+ | You can create inline $f(x) = \frac{1}{2\pi} \int_{-\infty}^{\infty} e^{-\frac{x^2}{2}} dx$ notation | ||
+ | |||
+ | </ | ||
+ | |||
+ | And you can create block $$f(x) = \frac{1}{2\pi} \int_{-\infty}^{\infty} e^{-\frac{x^2}{2}} dx$$ notation. | ||
+ | |||
+ | < | ||
+ | And you can create block $$f(x) = \frac{1}{2\pi} \int_{-\infty}^{\infty} e^{-\frac{x^2}{2}} dx$$ notation. | ||
+ | |||
+ | </ | ||
+ | |||
+ | ---- | ||
---- | ---- | ||