Moin Wiki Syntax
Contents
1. Headings and table of contents
see: HelpOnHeadlines
Table of contents: <<TableOfContents()>> Table of contents (up to 2nd level headings only): <<TableOfContents(2)>> = heading 1st level = == heading 2nd level == === heading 3rd level === ==== heading 4th level ==== ===== heading 5th level ===== ====== no heading 6th level ======
Table of contents:
Contents
Table of contents (up to 2nd level headings only):
Contents
heading 1st level
1. heading 2nd level
1.1. heading 3rd level
1.1.1. heading 4th level
1.1.1.1. heading 5th level
1.1.1.2. no heading 6th level
2. Text Formatting
see: HelpOnFormatting
Markup |
Result |
''italic'' |
italic |
'''bold''' |
bold |
`monospace` |
monospace |
{{{code}}} |
code |
__underline__ |
underline |
^super^script |
superscript |
,,sub,,script |
subscript |
~-smaller-~ |
smaller |
~+larger+~ |
larger |
--(stroke)-- |
stroke |
3. Hyperlinks
see: HelpOnLinking
3.1. Internal Links
Markup |
Result |
FrontPage |
|
[[FrontPage]] |
|
HelpOnEditing/SubPages |
|
/SubPage |
|
../SiblingPage |
|
[[FrontPage|named link]] |
|
[[#anchorname]] |
|
[[#anchorname|description]] |
|
[[PageName#anchorname]] |
|
[[PageName#anchorname|description]] |
|
[[attachment:filename.txt]] |
3.2. External Links
Markup |
Result |
http://moinmo.in/ |
|
[[http://moinmo.in/]] |
|
[[http://moinmo.in/|MoinMoin Wiki]] |
|
[[http://static.moinmo.in/logos/moinmoin.png]] |
|
{{http://static.moinmo.in/logos/moinmoin.png}} |
|
[[http://static.moinmo.in/logos/moinmoin.png|moinmoin.png]] |
|
MeatBall:InterWiki |
|
[MeatBall:InterWiki|InterWiki page on MeatBall]] |
|
[[file://///server/share/filename%20with%20spaces.txt|link to filename.txt]] |
|
user@example.com |
3.3. Avoid or Limit Automatic Linking
Markup |
Result |
Wiki''''''Name |
WikiName |
Wiki``Name |
WikiName |
!WikiName |
WikiName |
WikiName''''''s |
|
WikiName``s |
|
`http://www.example.com` |
http://www.example.com |
[[http://www.example.com/]]notlinked |
http://www.example.com/notlinked |
4. Drawings
see: HelpOnDrawings
4.1. TWikiDraw
4.2. AnyWikiDraw
5. Blockquotes and Indentations
indented text text indented to the 2nd level
- indented text
- text indented to the 2nd level
6. Lists
see: HelpOnLists
6.1. Unordered Lists
* item 1 * item 2 (preceding white space) * item 2.1 * item 2.1.1 * item 3 . item 3.1 (bulletless) . item 4 (bulletless) * item 4.1 . item 4.1.1 (bulletless)
- item 1
- item 2 (preceding white space)
- item 2.1
- item 2.1.1
- item 2.1
- item 3
- item 3.1 (bulletless)
- item 4 (bulletless)
- item 4.1
- item 4.1.1 (bulletless)
- item 4.1
6.2. Ordered Lists
6.2.1. with Numbers
1. item 1 1. item 1.1 1. item 1.2 1. item 2
- item 1
- item 1.1
- item 1.2
- item 2
6.2.2. with Roman Numbers
I. item 1 i. item 1.1 i. item 1.2 I. item 2
- item 1
- item 1.1
- item 1.2
- item 2
6.2.3. with Letters
A. item A a. item A. a) a. item A. b) A. item B
- item A
- item A. a)
- item A. b)
- item B
6.3. Definition Lists
term:: definition object:: :: description 1 :: description 2
- term
- definition
- object
- description 1
- description 2
7. Horizontal Rules
see: HelpOnRules
---- ----- ------ ------- -------- --------- ----------
8. Tables
see: HelpOnTables
8.1. Tables
||'''A'''||'''B'''||'''C'''|| ||1 ||2 ||3 ||
A |
B |
C |
1 |
2 |
3 |
8.2. Cell Width
||minimal width ||<99%>maximal width ||
minimal width |
maximal width |
8.3. Spanning Rows and Columns
||<|2> cell spanning 2 rows ||cell in the 2nd column || ||cell in the 2nd column of the 2nd row || ||<-2> cell spanning 2 columns || ||||use empty cells as a shorthand ||
cell spanning 2 rows |
cell in the 2nd column |
cell in the 2nd column of the 2nd row |
|
cell spanning 2 columns |
|
use empty cells as a shorthand |
8.4. Alignment of Cell Contents
||<^|3> top (combined) ||<:99%> center (combined) ||<v|3> bottom (combined) || ||<)> right || ||<(> left ||
top (combined) |
center (combined) |
bottom (combined) |
right |
||
left |
8.5. Coloured Table Cells
||<#0000FF> blue ||<#00FF00> green ||<#FF0000> red || ||<#00FFFF> cyan ||<#FF00FF> magenta ||<#FFFF00> yellow ||
blue |
green |
red |
cyan |
magenta |
yellow |
8.6. HTML-like Options for Tables
||A ||<rowspan="2"> like <|2> || ||<bgcolor="#00FF00"> like <#00FF00> || ||<colspan="2"> like <-2>||
A |
like <|2> |
like <#00FF00> |
|
like <-2> |
9. Macros and Variables
9.1. Macros
see: HelpOnMacros
<<Anchor(anchorname)>> inserts a link anchor anchorname
<<BR>> inserts a hard line break
<<FootNote(Note)>> inserts a footnote saying Note
<<Include(HelpOnMacros/Include)>> inserts the contents of the page HelpOnMacros/Include inline
<<MailTo(user AT example DOT com)>> obfuscates the email address user@example.com to users not logged in
9.2. Variables
see: HelpOnVariables
@SIG@ inserts your login name and timestamp of modification
@TIME@ inserts date and time of modification
10. Smileys and Icons
see: HelpOnSmileys
11. Parsers
see: HelpOnParsers
11.1. Verbatim Display
{{{ def hello(): print "Hello World!" }}}
def hello(): print "Hello World!"
11.2. Syntax Highlighting
{{{#!highlight python def hello(): print "Hello World!" }}}
11.3. Using the wiki parser with css classes
{{{#!wiki red/solid This is wiki markup in a '''div''' with __css__ `class="red solid"`. }}}
This is wiki markup in a div with css class="red solid".
12. Admonitions
see: HelpOnAdmonitions
{{{#!wiki caution '''Don't overuse admonitions''' Admonitions should be used with care. A page riddled with admonitions will look restless and will be harder to follow than a page where admonitions are used sparingly. }}}
Don't overuse admonitions
Admonitions should be used with care. A page riddled with admonitions will look restless and will be harder to follow than a page where admonitions are used sparingly.
13. Comments
see: HelpOnComments
Click on "Comments" in edit bar to toggle the /* comments */ visibility.
Click on "Comments" in edit bar to toggle the
visibility.{{{#!wiki comment/dashed This is a wiki parser section with class "comment dashed" (see HelpOnParsers). Its visibility gets toggled the same way. }}}
This is a wiki parser section with class "comment dashed" (see HelpOnParsers).
Its visibility gets toggled the same way.