en:wiki:syntax
Differences
This shows you the differences between two versions of the page.
en:wiki:syntax [2024/02/08 08:02] – created - external edit 127.0.0.1 | en:wiki:syntax [2025/06/19 20:18] (current) – Automatic push translation domele | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Formatting Syntax ====== | ====== Formatting Syntax ====== | ||
- | [[doku> | + | [[doku> |
===== Basic Text Formatting ===== | ===== Basic Text Formatting ===== | ||
Line 45: | Line 45: | ||
==== Internal ==== | ==== Internal ==== | ||
- | 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 [[en:wiki:pagename]] or use an additional [[en:wiki:pagename|link text]]. |
Internal links are created by using square brackets. You can either just give | Internal links are created by using square brackets. You can either just give | ||
- | a [[pagename]] or use an additional [[pagename|link text]]. | + | a [[en:wiki:pagename]] or use an additional [[en:wiki:pagename|link text]]. |
[[doku> | [[doku> | ||
Line 56: | Line 56: | ||
You can use [[some: | You can use [[some: | ||
- | For details about namespaces see [[doku> | + | For details about namespaces see [[doku> |
- | 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 [[en:wiki:syntax# |
- | This links to [[syntax# | + | This links to [[en:wiki:syntax# |
Notes: | Notes: | ||
- | * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. | + | * Links to [[en:wiki:syntax|existing pages]] are shown in a different style from [[en:wiki:nonexisting]] ones. |
* DokuWiki does not use [[wp> | * DokuWiki does not use [[wp> | ||
* When a section' | * When a section' | ||
Line 70: | Line 70: | ||
==== Interwiki ==== | ==== Interwiki ==== | ||
- | DokuWiki supports [[doku> | + | DokuWiki supports [[doku> |
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 ==== | ||
- | 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> |
Windows Shares like [[\\server\share|this]] are recognized, too. | Windows Shares like [[\\server\share|this]] are recognized, too. | ||
Line 95: | Line 95: | ||
==== 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 [[en: |
[[http:// | [[http:// | ||
Line 103: | Line 103: | ||
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 [[en: |
===== Footnotes ===== | ===== Footnotes ===== | ||
Line 131: | Line 131: | ||
You can include external and internal [[doku> | You can include external and internal [[doku> | ||
- | Real size: {{wiki: | + | Real size: {{wiki: |
- | Resize to given width: | + | Resize to given width: |
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 image: | + | Resized external image: |
- | Real size: {{wiki: | + | Real size: {{wiki: |
- | Resize to given width: | + | Resize to given width: |
Resize to given width and height: {{wiki: | Resize to given width and height: {{wiki: | ||
- | Resized external image: | + | Resized external image: |
Line 153: | Line 153: | ||
{{ wiki: | {{ wiki: | ||
- | | + | {{ wiki: |
- | {{wiki: | + | |
- | {{ wiki: | + | {{ wiki: |
Of course, you can add a title (displayed as a tooltip by most browsers), too. | Of course, you can add a title (displayed as a tooltip by most browsers), too. | ||
Line 163: | Line 163: | ||
{{ wiki: | {{ wiki: | ||
- | For linking an image to another page see [[#Image Links]] above. | + | For linking an image to another page see [[en: |
==== Supported Media Formats ==== | ==== Supported Media Formats ==== | ||
Line 178: | Line 178: | ||
By adding ''? | By adding ''? | ||
- | | + | {{wiki: |
{{wiki: | {{wiki: | ||
Line 188: | Line 188: | ||
For example consider this embedded mp4 video: | For example consider this embedded mp4 video: | ||
- | {{video.mp4|A funny video}} | + | {{en:wiki:video.mp4|A funny video}} |
When you upload a '' | When you upload a '' | ||
Line 230: | Line 230: | ||
==== Text to Image Conversions ==== | ==== Text to Image Conversions ==== | ||
- | DokuWiki converts commonly used [[wp> | + | DokuWiki converts commonly used [[wp> |
- | * 8-) %% 8-) %% | + | * 8-) %% 8-) %% |
- | * 8-O %% 8-O %% | + | * 8-O %% 8-O %% |
- | * :-( %% :-( %% | + | * :-( %% :-( %% |
- | * :-) %% :-) %% | + | * :-) %% :-) %% |
- | * =) %% =) %% | + | * =) %% = ) %% |
- | * :-/ %% :-/ %% | + | * :-/ %% :-/ %% |
- | * :-\ %% :-\ %% | + | * :-\ %% :-\ %% |
- | * :-? %% :-? %% | + | * :-? %% :-? %% |
- | * :-D %% :-D %% | + | * :-D %% :-D %% |
- | * :-P %% :-P %% | + | * :-P %% :-P %% |
- | * :-O %% :-O %% | + | * :-O %% :-O %% |
- | * :-X %% :-X %% | + | * :-X %% :-X %% |
* :-| %% :-| %% | * :-| %% :-| %% | ||
- | * ;-) %% ;-) %% | + | * ;-) %% ;-) %% |
* ^_^ %% ^_^ %% | * ^_^ %% ^_^ %% | ||
- | * m( %% m( %% | + | * m( %% m( %% |
- | * :?: %% :?: %% | + | * :?: %% :?: %% |
- | * :!: %% :!: %% | + | * :!: %% :!: %% |
- | * LOL %% LOL %% | + | * LOL %% LOL %% |
- | * FIXME %% FIXME %% | + | * FIXME %% FIXME %% |
* DELETEME %% DELETEME %% | * DELETEME %% DELETEME %% | ||
==== Text to HTML Conversions ==== | ==== Text to HTML Conversions ==== | ||
- | Typography: [[DokuWiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized characters. | + | Typography: [[en: |
-> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
Line 304: | Line 304: | ||
DokuWiki supports a simple syntax to create tables. | DokuWiki supports a simple syntax to create tables. | ||
- | ^ Heading 1 ^ Heading 2 | + | ^ Heading 1 |
- | | Row 1 Col 1 | Row 1 Col 2 | + | | Row 1 Col 1 |
- | | Row 2 Col 1 | some colspan (note the double pipe) || | + | | Row 2 Col 1 |
- | | Row 3 Col 1 | Row 3 Col 2 | + | | Row 3 Col 1 |
Table rows have to start and end with a '' | Table rows have to start and end with a '' | ||
- | ^ Heading 1 ^ Heading 2 | + | ^ Heading 1 |
- | | Row 1 Col 1 | Row 1 Col 2 | + | | Row 1 Col 1 |
- | | Row 2 Col 1 | some colspan (note the double pipe) || | + | | Row 2 Col 1 |
- | | Row 3 Col 1 | Row 3 Col 2 | + | | Row 3 Col 1 |
To connect cells horizontally, | To connect cells horizontally, | ||
Line 320: | Line 320: | ||
Vertical tableheaders are possible, too. | Vertical tableheaders are possible, too. | ||
- | | ^ Heading 1 ^ Heading 2 ^ | + | | ^ Heading 1 |
- | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | + | ^ Heading 3 |
- | ^ Heading 4 | no colspan this time | | | + | ^ Heading 4 |
- | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | + | ^ Heading 5 |
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 1 ^ Heading 2 ^ | + | | ^ Heading 1 |
- | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | + | ^ Heading 3 |
- | ^ Heading 4 | no colspan this time | | | + | ^ Heading 4 |
- | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | + | ^ Heading 5 |
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 |
- | | Row 1 Col 1 | this cell spans vertically | Row 1 Col 3 | | + | | Row 1 Col 1 |
- | | Row 2 Col 1 | ::: | Row 2 Col 3 | | + | | Row 2 Col 1 |
- | | Row 3 Col 1 | ::: | Row 2 Col 3 | | + | | 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. | ||
- | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | + | ^ Heading 1 |
- | | Row 1 Col 1 | this cell spans vertically | Row 1 Col 3 | | + | | Row 1 Col 1 |
- | | Row 2 Col 1 | ::: | Row 2 Col 3 | | + | | Row 2 Col 1 |
- | | Row 3 Col 1 | ::: | Row 2 Col 3 | | + | | Row 3 Col 1 |
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 | ^ Table with alignment | ||
- | | | + | | |
- | |left | | + | |left | |
| xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
Line 356: | Line 356: | ||
^ Table with alignment | ^ Table with alignment | ||
- | | | + | | |
- | |left | | + | |left | |
| xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
Line 404: | Line 404: | ||
==== Syntax Highlighting ==== | ==== Syntax Highlighting ==== | ||
- | [[wiki:DokuWiki]] can highlight sourcecode, which makes it easier to read. It uses the [[http:// | + | [[en:wiki:dokuwiki]] can highlight sourcecode, which makes it easier to read. It uses the [[http:// |
<code java> | <code java> | ||
Line 439: | Line 439: | ||
===== RSS/ATOM Feed Aggregation ===== | ===== RSS/ATOM Feed Aggregation ===== | ||
- | [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http:// | + | [[en: |
^ Parameter | ^ Parameter | ||
Line 445: | Line 445: | ||
| reverse | | reverse | ||
| author | | author | ||
- | | date | + | | date | show item dates | |
| description| show the item description. All HTML tags will be stripped | | | description| show the item description. All HTML tags will be stripped | | ||
| nosort | | nosort | ||
| //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | | //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | ||
- | The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[wiki:DokuWiki]] will generally try to supply a cached version of a page, obviously this is inappropriate when the page contains dynamic external content. The parameter tells [[wiki:DokuWiki]] to re-render the page if it is more than //refresh period// since the page was last rendered. | + | The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[en:wiki:dokuwiki]] will generally try to supply a cached version of a page, obviously this is inappropriate when the page contains dynamic external content. The parameter tells [[en:wiki:dokuwiki]] to re-render the page if it is more than //refresh period// since the page was last rendered. |
By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' | ||
Line 465: | Line 465: | ||
Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble: | Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble: | ||
- | ^ Macro | + | ^ Macro |
| %%~~NOTOC~~%% | | %%~~NOTOC~~%% | ||
| %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%< | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%< |
en/wiki/syntax.txt · Last modified: by domele