Dokuwiki - Syntax cheatsheet

By xngo on November 17, 2019

Basic text formatting

**bold**
//italic//
__underline__
''monospace''
**//''combine''//**

Output

Dokuwiki - Basic text format

Link to page

# For page name, it recommended to not use spaces.
#   Spaces will be replaced by underscore in the filesystem.
[[.:folder:nested-folder:page-name| Label of page name]]

Lists

Unordered list

  * one
    * sub item
  * two
    * sub item

Output

  • one
    • sub item
  • two
    • sub item

Ordered list

  - Step 1
    - sub-step A
      - sub-sub-step one
      - sub-sub-step two
  - Step 2
    - sub-step A
      - sub-sub-step one
      - sub-sub-step two

Output

Dokuwiki - Ordered list output

Newline / linebreak

Newline / linebreak is defined by 2 backslashes followed by a space or the end of line. I mostly use this in a list with an image.

  - Step 1\\ {{:some-screenshot.png?400|}}
  - Step 2

Code

For inline code, use '' and follow by %%.

# Inline code.
#   Add '' to set it to use monospace.
#   Then, add %% to prevent any HTML markup to be interpreted.
''%%your inline code here%%''

Output

Dokuwiki - Inline code output

For code block, use <code LANGUAGE_NAME>.

&lt;code python>
import datetime
 
today = datetime.date.today()
print(today)       # 2018-12-31
&lt;/code>

Output

import datetime
 
today = datetime.date.today()
print(today)       # 2018-12-31

Quote

>How are you?
>>I'm good.
>>>Are you sure?
>>>>Yes.

Output

Dokuwiki - Quote output

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.