MO's Workspace

Spatula Wiki Parser

The wiki text parser supports wiki markup similar to the MediaWiki syntax, with only a few deviations. It currently only supports the more commonly used formatting, and is not as fully featured as MediaWiki.

To tell the framework to use the wiki text parser for a page, set variables.display to "wiki" in the controller.

Formatting

Text formatting is done using normal characters such as asterisks, underscores, or equal signs. The usage can vary depending on their position. For example, to format a word in bold, you include it in two pairs of asterisks. However, if you start a line with an asterisk, it will create a bullet list.

Text Markup

Description Markup Output
Inline Formatting
Emphasis
_Emphasis_
Emphasis
Strong
*Strong*
Strong
Strong Emphasis
_*Strong Emphasis*_
Strong Emphasis
Escape Wiki Markup
<nowiki>no _markup_ </nowiki>
no _markup_
Escape Wiki Markup Once
*Markup* <nowiki />*Escaped* *Markup*
Markup *Escaped* Markup
Section formatting - only at the beginning of the line
Headings of different levels
== Heading 2 ==
=== Heading 3 ===
==== Heading 4 ====
===== Heading 5 =====
====== Heading 6 ======

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
Horizontal Rule
Text above
----
Text below

Text above


Text below

Bullet List
* Start each line
* with an asterisk (*).
** More asterisks gives deeper
*** and deeper levels.
* Line breaks<br />don't break levels.
*** But jumping levels creates empty space.
Any other start ends the list.
  • Start each line
  • with an asterisk (*).
    • More asterisks gives deeper
      • and deeper levels.
  • Line breaks
    don't break levels.
      • But jumping levels creates empty space.

Any other start ends the list.

Numbered List
# Start each line
# with a number sign (#).
## More number signs gives deeper
### and deeper
### levels.
# Line breaks<br />don't break levels.
### But jumping levels creates empty space.
# Blank lines

# end the list and start another.
Any other start also
ends the list.
  1. Start each line
  2. with a number sign (#).
    1. More number signs gives deeper
      1. and deeper
      2. levels.
  3. Line breaks
    don't break levels.
      1. But jumping levels creates empty space.
  4. Blank lines
  1. end the list and start another.

Any other start also ends the list.

Definition List
;item 1
: definition 1
;item 2
: definition 2-1
: definition 2-2
item 1
definition 1
item 2
definition 2-1
definition 2-2
Indent Text
: Single indent
:: Double indent
::::: Multiple indent
Single indent
Double indent
Multiple indent
Mixture of different types of list
# one
# two
#* two point one
#* two point two
# three
#; three item one
#: three def one
# four
#: four def one
#: this looks like a continuation
#: and is often used
#: instead<br />of <br />
# five
## five sub 1
### five sub 1 sub 1
## five sub 2
  1. one
  2. two
    • two point one
    • two point two
  3. three
    three item one
    three def one
  4. four
    four def one
    this looks like a continuation
    and is often used
    instead
    of <br />
  5. five
    1. five sub 1
      1. five sub 1 sub 1
    2. five sub 2

HTML Tags

Description Markup Output
Preformatted
<pre>
Text is *preformatted*,
and markup is _ignored_.
</pre>
Text is *preformatted*,
and markup is _ignored_.

Internal Links

Description Markup Output
Internal Link
[[Main Page]]
Main Page
Piped Link
[[Main Page|different text]]
different text
Hide namespace shortcut
[[Help:Contents|]]
Contents
Word-ending links
[[Help]]s

[[Help]]ing

[[Help]]ers

[[Help]]anylettersyoulikehere

Helps

Helping

Helpers

Helpanylettersyoulikehere

Avoiding word-ending links
[[Help]]<nowiki />ful advice
Helpful advice

External Links

Description Markup Output
External link
http://google.com
http://google.com
External link with different label
[http://google.com Google]
Google
Mailto link
[mailto:info@example.org email me]
email me
Mailto named with subject line and body
[mailto:info@example.org?Subject=URL%20Encoded%20Subject&body=Body%20Text info]
info