This page contains basic information about MoinMin's formatting capabilities. It covers only a small amount of the formatting features but these are possibly covering about 99% of every-day problems. If you need more detailed information start with HelpOnEditing or HelpOnMoinWikiSyntax .
Basics
White space
Show
Hide
the details
the details
Note that white space most of the time is ignored. This:
The only exception is white space at the beginning of a line.
This is not another line.leads to this:
The only exception is white space at the beginning of a line. This is not another line.
For details how white space at the beginning of a line is processed see Indentation
Line breaks
Show
Hide
the details
the details
Insert a line break with the <<BR>> . This:
This goes onto the first line<<BR>>This goes onto the second line.leads to this:
This goes onto the first line
This goes onto the second line
Indentation
Show
Hide
the details
the details
This:
no space
Line 1
Line 2
Line 3
Line 4leads to this:
no space
Titles
Show
Hide
the details
the details
The different levels depend on the number of "=" signs:
= level 1 =
== level 2 ==
=== level 3 ===
==== level 4 ====Notes:
The first "=" char must be the first character on a line. To the right of the very last "=" char their must not be any white space. A word of advice: try to avoid using level 4 headers, and never use headers of level 5 and 6!
Numbered Lists
Show
Hide
the details
the details
1. level1-1
1. level1-2
1. level2-1
1. level2-2
Normally this interrupts and therefore restart the numbering
1.#3 level1-3leads to this:
level1-1 level1-2 level2-1 level2-1 Normally this interrupts and therefore restart the numbering level1-3
Bulleted Lists
Show
Hide
the details
the details
* level1-1
* level1-2
* level2-1
* level2-2
* level1-3leads to this:
level1-1 level1-2 level1-3
Tables
Show
Hide
the details
the details
This:
|| '''col1''' || '''col2''' || '''col3''' ||
|| cell A1 || cell B1 || cell C1 ||
|| cell A2 || cell B2 || cell C2 ||
|| cell A2 || cell B2 || cell C2 ||leads to this:
col1
col2
col3
cell A1
cell B1
cell C1
cell A2
cell B2
cell C2
cell A2
cell B2
cell C2
Notes:
The first "|" char must be the first character on a line. To the right of the very last "|" char their must not be any white space.
APL Code
Show
Hide
the details
the details
This:
{⍵/⍳⍴,⍵}
{{⍵/⍨2=+⌿0=⍵∘.|⍵}⍳⍵}leads to what you are looking at!
Links
Page names or CamelCasing or internal links
Show
Hide
the details
the details
Names of pages in a wiki more often than not use CamelCasing as in the name of this page: HelpOnBasicFormatting. CamelCase names are automatically converted into links within the realm of the current wiki.
If a page name contains blanks surround them with [[ and ]] . Therefore this:
[[Page name]]leads to this: Page name
Of course sometimes you don't want certain names to be converted into links. You can achieve that by prefixing the name with a "!" as in
!JavaScriptThat leads to JavaScript
Note that a link to a non-existent page is shown in italic: ThisPageDoesNotExist
External links
Show
Hide
the details
the details
Links within a page
Show
Hide
the details
the details
You can link to another part of a page, but only to titles. For example, on a page "MyPage " with a level 3 title "My address" you could create a link somewhere on that page with
[[ MyPage#My address]]which leads to MyPage#My address .
Change the link text
Show
Hide
the details
the details
Sometimes you want the text presented to the user not to be just a page name or a url but what is called a link text in Moin speak. For example, to make "Link to the APL Wiki's sandbox" appear as a link:
[[ http://sandbox.aplwiki.com | Link to the APL Wiki's sandbox ]]That leads to this: Link to the APL Wiki's sandbox .
internal link to a section
[[SomePage#subsection|subsection of Some Page]]
See #Anchors section below
internal link with linktext & parameter
[[SomePage|some Page|target="_blank"]]
see below for parameter configurations
internal link using a graphic as button
[[SomePage|{{attachment:imagefile.png}}]]
internal link using graphic button, open new window
[[SomePage|{{attachment:samplegraphic.png}}|target="_blank"]]
link to attachment
[[attachment:image.png]]
links to attachment image
link to attachment of another page
[[attachment:SomePage/image.png]]
links to image attached to a different page
external link with linktext
[[http://example.net/|example site]]
external link with linktext, open new window
[[http://example.net/|example site|target="_blank"]]
see below for parameter configurations
external link using a graphic as button
[[http://example.net/|{{attachment:samplegraphic.png}}]]
external link using graphic button, open new window
[[http://example.net/|{{attachment:samplegraphic.png}}|target="_blank"]]
border of internal link
WikiName``s
2 backticks - for when a WikiName ends in the middle of a word
avoid an internal link
!WikiName
configurable function
}}}}
Images
Attachments
Table of contents
Show
Hide
the details
the details
Insert this right after the = title = part of your page:
<<TableOfContents>>