Wiki Formatting Guide
Note: Anything between 2 sets of double-quotes is not formatted.
Also see: Wikka Documentation
1. Text Formatting
**I'm bold**
I'm bold
I'm bold
//I'm italic text!//
I'm italic text!
I'm italic text!
And I'm __underlined__!
And I'm underlined!
And I'm underlined!
##monospace text##
monospace text
monospace text
''highlight text'' (using 2 single-quotes)
highlight text
highlight text
++Strike through text++
Strike through text
Strike through text
Press #%ANY KEY#%
Press ANY KEY
Press ANY KEY
@@Center text@@
Center text
2. Headers
Use between six = (for the biggest header) and two = (for the smallest header) on both sides of a text to render it as a header.
====== Really big header ======
Really big header
===== Rather big header =====
Rather big header
==== Medium header ====
Medium header
=== Not-so-big header ===
Not-so-big header
== Smallish header ==
Smallish header
3. Horizontal separator
----
4. Forced line break
---
5. Lists and indents
You can indent text using a ~, a tab or 4 spaces (which will auto-convert into a tab).
~This text is indented
~~This text is double-indented
This text is also indented
This text is indented
This text is double-indented
This text is also indentedTo create bulleted/ordered lists, use the following markup (you can always use 4 spaces instead of a ~):
Bulleted lists
~- Line one
~- Line two
- Line one
- Line two
Numbered lists
~1) Line one
~1) Line two
- Line one
- Line two
Ordered lists using uppercase characters
~A) Line one
~A) Line two
- Line one
- Line two
Ordered lists using lowercase characters
~a) Line one
~a) Line two
- Line one
- Line two
Ordered lists using roman numerals
~I) Line one
~I) Line two
- Line one
- Line two
Ordered lists using lowercase roman numerals
~i) Line one
~i) Line two
- Line one
- Line two
6. Inline comments
To format some text as an inline comment, use an indent ( ~, a tab or 4 spaces) followed by a &.
Example:
~& Comment
~~& Subcomment
~~~& Subsubcomment
- Comment
- Subcomment
- Subsubcomment
- Subcomment
7. Images
To place images on a Wiki page, you can use the image action.
Example:
{{image class="center" alt="DVD logo" title="An Image Link" url="images/dvdvideo.gif" link="RecentChanges"}}


Links can be external, or internal Wiki links. You don't need to enter a link at all, and in that case just an image will be inserted. You can use the optional classes left and right to float images left and right. You don't need to use all those attributes, only url is required while alt is recommended for accessibility.
8. Links
To create a link to a wiki page you can use any of the following options:
- type a WikiName:
FormattingRules
FormattingRules
- add a forced link surrounding the page name by [[ and ]] (everything after the first space will be shown as description):
[[SandBox Test your formatting skills]]
Test your formatting skills
[[SandBox 沙箱]]
沙箱
- add an image with a link (see instructions above).
To link to external pages, you can do any of the following:
- type a URL inside the page:
http://www.example.com
http://www.example.com
- add a forced link surrounding the URL by [[ and ]] (everything after the first space will be shown as description):
[[http://example.com/jenna/ Jenna's Home Page]]
Jenna's Home Page
[[mail@example.com Write me!]]
Write me!
- add an image with a link (see instructions above);
- add an interwiki link (browse the list of available interwiki tags):
WikiPedia:WikkaWiki
WikiPedia:WikkaWiki
Google:CSS
Google:CSS
Thesaurus:Happy
Thesaurus:Happy
9. Tables
The table action has been deprecated as of Wikka version 1.2 and has been replaced with the syntax that follows. Please visit the Wikka documentation server for information about the older table action.
Tables can be created using two pipe (||) symbols. Everything in a single line is rendered as a table row.
Example:
||Cell 1||Cell 2||
Cell 1 | Cell 2 |
Header cells can be rendered by placing an equals sign between the pipes.
Example:
|=|Header 1|=|Header 2||
||Cell 1||Cell 2||
Header 1 | Header 2 |
---|---|
Cell 1 | Cell 2 |
Row and column spans are specified with x: and y: in parentheses just after the pipes.
Example:
|=| |=|(x:2)Columns||
|=|(y:2) Rows||Cell 1||Cell 2||
||Cell 3||Cell 4||
Columns | ||
---|---|---|
Rows | Cell 1 | Cell 2 |
Cell 3 | Cell 4 |
Many additional features are available using table markup. A more comprehensive table markup guide is available on this server's TableMarkup page. A complete syntax reference is available on this server's TableMarkupReference page.
10. Colored Text
Colored text can be created using the color action:
Example:
{{color c="blue" text="This is a test."}}
This is a test.
This is a test.
You can also use hex values:
Example:
{{color hex="#DD0000" text="This is another test."}}
This is another test.
This is another test.
Alternatively, you can specify a foreground and background color using the fg and bg parameters (they accept both named and hex values):
Examples:
{{color fg="#FF0000" bg="#000000" text="This is colored text on colored background"}}
This is colored text on colored background
This is colored text on colored background
{{color fg="yellow" bg="black" text="This is colored text on colored background"}}
This is colored text on colored background
This is colored text on colored background
11. Floats
To create a left floated box, use two < characters before and after the block.
Example:
<<Some text in a left-floated box hanging around<< Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler.
Some text in a left-floated box hanging around
Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler.Example:
>>Some text in a right-floated box hanging around>> Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler.
Some text in a right-floated box hanging around
Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler.12. Code formatters
You can easily embed code blocks in a wiki page using a simple markup. Anything within a code block is displayed literally.
To create a generic code block you can use the following markup:
%% This is a code block %%.
This is a code block
To create a code block with syntax highlighting, you need to specify a code formatter (see below for a list of available code formatters).
%%(php)
<?php
echo "Hello, World!";
?>
%%
<?php
echo "Hello, World!";
?>
%%
You can also specify an optional starting line number.
%%(php;15)
<?php
echo "Hello, World!";
?>
%%
<?php
echo "Hello, World!";
?>
%%
- <?php
- echo "Hello, World!";
- ?>
If you specify a filename, this will be used for downloading the code.
%%(php;15;test.php)
<?php
echo "Hello, World!";
?>
%%
<?php
echo "Hello, World!";
?>
%%
test.php (line 15)
- <?php
- echo "Hello, World!";
- ?>
List of available code formatters:
LANGUAGE | FORMATTER | LANGUAGE | FORMATTER | LANGUAGE | FORMATTER |
ABAP | abap | Actionscript | actionscript | ADA | ada |
Apache Log | apache | AppleScript | applescript | ASM | asm |
ASP | asp | AutoIT | autoit | Axapta/Dynamics Ax X++ | xpp |
Bash | bash | BlitzBasic | blitzbasic | BNF | bnf |
C | c | C for Macs | c_mac | c# | csharp |
C++ | cpp | C++ (QT extensions) | cpp-qt | CAD DCL | caddcl |
CadLisp | cadlisp | CFDG | cfdg | ColdFusion | cfm |
CSS | css | D | d | Delphi | delphi |
Diff-Output | diff | DIV | div | DOS | dos |
dot | dot | Eiffel | eiffel | Fortran | fortran |
FOURJ's Genero 4GL | genero | FreeBasic | freebasic | GML | gml |
Groovy | groovy | Haskell | haskell | HTML | html4strict |
INI | ini | IO | io | Inno Script | inno |
Java 5 | java5 | Java | java | Javascript | javascript |
LaTeX | latex | Lisp | lisp | Lua | lua |
Matlab | matlab | Microchip Assembler | mpasm | Microsoft Registry | reg |
mIRC | mirc | Motorola 68000 Assembler | m68k | MySQL | mysql |
NSIS | nsis | Objective C | objc | OpenOffice BASIC | oobas |
Objective Caml | ocaml | Objective Caml (brief) | ocaml-brief | Oracle 8 | oracle8 |
Pascal | pascal | Per (forms) | per | Perl | perl |
PHP | php | PHP (brief) | php-brief | PL/SQL | plsql |
Python | phyton | Q(uick)BASIC | qbasic | robots.txt | robots |
Ruby | ruby | Ruby on Rails | rails | SAS | sas |
Scheme | scheme | sdlBasic | sdlbasic | SmallTalk | smalltalk |
Smarty | smarty | SQL | sql | TCL/iTCL | tcl |
T-SQL | tsql | Text | text | thinBasic | thinbasic |
Unoidl | idl | VB.NET | vbnet | VHDL | vhdl |
Visual BASIC | vb | Visual Fox Pro | visualfoxpro | WinBatch | winbatch |
XML | xml | ZiLOG Z80 | z80 |
13. Mindmaps
Wikka has native support for mindmaps. There are two options for embedding a mindmap in a wiki page.
Option 1: Upload a FreeMind file to a webserver, and then place a link to it on a wikka page:
http://yourdomain.com/freemind/freemind.mm
No special formatting is necessary.
Option 2: Paste the FreeMind data directly into a wikka page:
- Open a FreeMind file with a text editor.
- Select all, and copy the data.
- Browse to your Wikka site and paste the Freemind data into a page.
14. Embedded HTML
You can easily paste HTML in a wiki page by wrapping it into two sets of doublequotes.
""[html code]""
Examples:
""y = x<sup>n+1</sup>""
y = xn+1
y = xn+1
""<acronym title="Cascade Style Sheet">CSS</acronym>""
CSS
CSS
By default, some HTML tags are removed by the SafeHTML parser to protect against potentially dangerous code. The list of tags that are stripped can be found on the SafeHTML documentation page.
It is possible to allow all HTML tags to be used, see Docs:UsingHTML for more information.
15: LaTeX Equations
(Plugin by Christopher Vo) You can embed images of LaTeX equations in the code using the latexrender environment.
Basics:
To start the LaTeX equation rendering environment, use:
%%(latexrender)
and to end the LaTeX equation rendering environment, use:
%%
Inside the LaTeX equation rendering environment, you can mix text and equations, to inline formulas in your explanations. To insert an equation, enclose it with the tex tag:
[tex] and [/tex]
Example output:
This is an example LaTeX equation:


How to make matrices in the latexrender environment:
![a=\left[\begin {array}{ccc}
9&13&17\\
14&18&22
\end {array} \right]
a=\left[\begin {array}{ccc}
9&13&17\\
14&18&22
\end {array} \right]](http://turing.cs.gmu.edu/wiki/images/latex/pictures/006b2338c76b52c3363369660eb26b5f.png)
How to make case statements in the latexrender environment:
![c[i,j] =
\begin{cases}
0 & \text{if $i=0$ or $j=0$}\\
c[i-1][j-1]+1 & \text{if $i,j>0$ and $x_i = y_i$}\\
max(c[i,j-1],c[i-1,j]) & \text{if $i,j>0$ and $x_i \neq y_j$}
\end{cases}
c[i,j] =
\begin{cases}
0 & \text{if $i=0$ or $j=0$}\\
c[i-1][j-1]+1 & \text{if $i,j>0$ and $x_i = y_i$}\\
max(c[i,j-1],c[i-1,j]) & \text{if $i,j>0$ and $x_i \neq y_j$}
\end{cases}](http://turing.cs.gmu.edu/wiki/images/latex/pictures/89f302b2e0fff760a1b33b2a08fd2221.png)
Code for example (from above):
%%(latexrender)
This is an example LaTeX equation: [tex]\sqrt{e^{\frac{1}{2}}}[/tex], and another:
[tex]
a \Leftrightarrow 2\pi a\sum\limits_{k = - \infty }^\infty
{\delta (\omega + 2\pi k)} ,( - \infty < n < \infty )
[/tex]
How to make matrices in the latexrender environment:
[tex]
a=\left[\begin {array}{ccc}
9&13&17\\
14&18&22
\end {array} \right]
[/tex]
How to make case statements in the latexrender environment:
[tex]
c[i,j] =
\begin{cases}
0 & \text{if $i=0$ or $j=0$}\\
c[i-1][j-1]+1 & \text{if $i,j>0$ and $x_i = y_i$}\\
max(c[i,j-1],c[i-1,j]) & \text{if $i,j>0$ and $x_i \neq y_j$}
\end{cases}
[/tex]
16. Directed Graphs (dot)
(Plugin by Christopher Vo) See the official GraphViz documentation for syntax. In the wiki, it works like the LaTeX environment (see above). Start up the "graphviz" environment and start putting blocks of code within [dot][/dot] tags.
Example:

Produced By:
%%(graphviz)
[dot]
digraph finite_state_machine {
rankdir=LR;
size="8,5"
node [shape = doublecircle]; LR_0 LR_3 LR_4 LR_8;
node [shape = circle];
LR_0 -> LR_2 [ label = "SS(B)" ];
LR_0 -> LR_1 [ label = "SS(S)" ];
LR_1 -> LR_3 [ label = "S($end)" ];
LR_2 -> LR_6 [ label = "SS(b)" ];
LR_2 -> LR_5 [ label = "SS(a)" ];
LR_2 -> LR_4 [ label = "S(A)" ];
LR_5 -> LR_7 [ label = "S(b)" ];
LR_5 -> LR_5 [ label = "S(a)" ];
LR_6 -> LR_6 [ label = "S(b)" ];
LR_6 -> LR_5 [ label = "S(a)" ];
LR_7 -> LR_8 [ label = "S(b)" ];
LR_7 -> LR_5 [ label = "S(a)" ];
LR_8 -> LR_6 [ label = "S(b)" ];
LR_8 -> LR_5 [ label = "S(a)" ];
}size="8,5"
node [shape = doublecircle]; LR_0 LR_3 LR_4 LR_8;
node [shape = circle];
LR_0 -> LR_2 [ label = "SS(B)" ];
LR_0 -> LR_1 [ label = "SS(S)" ];
LR_1 -> LR_3 [ label = "S($end)" ];
LR_2 -> LR_6 [ label = "SS(b)" ];
LR_2 -> LR_5 [ label = "SS(a)" ];
LR_2 -> LR_4 [ label = "S(A)" ];
LR_5 -> LR_7 [ label = "S(b)" ];
LR_5 -> LR_5 [ label = "S(a)" ];
LR_6 -> LR_6 [ label = "S(b)" ];
LR_6 -> LR_5 [ label = "S(a)" ];
LR_7 -> LR_8 [ label = "S(b)" ];
LR_7 -> LR_5 [ label = "S(a)" ];
LR_8 -> LR_6 [ label = "S(b)" ];
LR_8 -> LR_5 [ label = "S(a)" ];
[/dot]
%%
17. Undirected Graphs (neato)
(Plugin by Christopher Vo) See the official GraphViz documentation for syntax. In the wiki, it works like the LaTeX environment (see above). Start up the "graphviz" environment and start putting blocks of code within [neato][/neato] tags.
Example:

Produced By:
%%(graphviz)
[neato]
graph ER {
node [shape=box]; course; institute; student;
node [shape=ellipse]; {node [label="name"] name0; name1; name2;}
code; grade; number;
node [shape=diamond,style=filled,color=lightgrey]; "C-I"; "S-C"; "S-I";
name0 -- course;
code -- course;
course -- "C-I" [label="n",len=1.00];
"C-I" -- institute [label="1",len=1.00];
institute -- name1;
institute -- "S-I" [label="1",len=1.00];
"S-I" -- student [label="n",len=1.00];
student -- grade;
student -- name2;
student -- number;
student -- "S-C" [label="m",len=1.00];
"S-C" -- course [label="n",len=1.00];
}node [shape=ellipse]; {node [label="name"] name0; name1; name2;}
code; grade; number;
node [shape=diamond,style=filled,color=lightgrey]; "C-I"; "S-C"; "S-I";
name0 -- course;
code -- course;
course -- "C-I" [label="n",len=1.00];
"C-I" -- institute [label="1",len=1.00];
institute -- name1;
institute -- "S-I" [label="1",len=1.00];
"S-I" -- student [label="n",len=1.00];
student -- grade;
student -- name2;
student -- number;
student -- "S-C" [label="m",len=1.00];
"S-C" -- course [label="n",len=1.00];
[/neato]
%%
18. Flash Video Action
(Plugin by Christopher Vo) Flash video from popular sites (currently, Youtube, Google Video, Blip.tv and Vimeo) can be embedded using the flashvideo action and the typical url of the video as in these examples:
{{flashvideo url="http://www.youtube.com/watch?v=1uwOL4rB-go"}}
{{flashvideo url="http://vimeo.com/1747316"}}
{{flashvideo url="http://video.google.com/videoplay?docid=5680530360797443942"}}
{{flashvideo url="http://blip.tv/file/1319931"}}
{{flashvideo url="http://vimeo.com/1747316"}}
{{flashvideo url="http://video.google.com/videoplay?docid=5680530360797443942"}}
{{flashvideo url="http://blip.tv/file/1319931"}}
By default, the video is 480 x 385. You can also specify the width and height of the video manually:
{{flashvideo url="http://www.youtube.com/watch?v=1uwOL4rB-go" width="480" height="385"}}
Playlist also supported:
{{flashvideo url="https://www.youtube.com/watch?v=-ADLy0j3Gag&list=PLLuMmzMTgVK5d63L3M4tOUHFQH6p1nEeT&index=2"}}
19. Flowplayer (FLV Videos) Action
(Plugin by Christopher Vo) This lets you include arbitrary FLV files that are not on a hosted site like Youtube. It accepts FLV (Preferred), MP4, and H.264 formats.
{{flv url="http://flowplayer.org/video/flowplayer-700.flv"}}
By default, the video is 425 x 300. You can also specify the width and height of the video manually:
{{flv url="http://flowplayer.org/video/flowplayer-700.flv" width="425" height="300"}}
Encoding Tips: You will get the best results using FLV files, encoded with Adobe Media Encoder (usually bundled with Adobe Premiere CS4 or Flash CS4). On Mac OS X, you can use a free graphical tool called ffmpegX. Also see: Basic conversion tutorial for flowplayer videos, Using FFMPEG on command line, Using Mencoder.
For streaming, you will need to make sure the FLV file has sufficient meta-data generated to allow the user to skip around in the file: this can be done with a tool called flvtool2 with the command:
flvtool2 -U .flv
19. BibTeX Formatting
(Plugin by ChristopherVo)
Note the addition of the "wikiurls" attribute which allows you to add links to your paper or web site. Just list the links in the wiki format as shown above. Don't worry, this attribute will not display in the generated BibTeX snippet. There's also a "note" attribute which will be appended to your entry (for things like "to appear" or "also in tech report").
Just use a code block with the "bibtex" type like this:
%%(bibtex)
@INPROCEEDINGS{vo-panait-luke-09
, author = {Christopher Vo and Liviu Panait and Sean Luke}
, title = {Cooperative Coevolution and Univariate Estimation of Distribution Algorithms}
, booktitle = {Proceedings of the 10th International Workshop on Foundations of Genetic Algorithms (FOGA 2009)}
, editor = {Thomas Jansen and Ivan Garibay and R. Paul Weigand and Annie S. Wu}
, year = {2009}
, publisher = {ACM Press}
, note = {To appear.}
, wikiurls = {[[ChristopherVo Wiki Site]][[http://google2.com External Link (google)]]}
}%%, title = {Cooperative Coevolution and Univariate Estimation of Distribution Algorithms}
, booktitle = {Proceedings of the 10th International Workshop on Foundations of Genetic Algorithms (FOGA 2009)}
, editor = {Thomas Jansen and Ivan Garibay and R. Paul Weigand and Annie S. Wu}
, year = {2009}
, publisher = {ACM Press}
, note = {To appear.}
, wikiurls = {[[ChristopherVo Wiki Site]][[http://google2.com External Link (google)]]}
Which produces this output:
Cooperative Coevolution and Univariate Estimation of Distribution Algorithms, Christopher Vo and Liviu Panait and Sean Luke, Proceedings of the 10th International Workshop on Foundations of Genetic Algorithms (FOGA 2009), ACM Press, 2009, To appear.
Wiki Site / External Link (google) / BibTeX
Wiki Site / External Link (google) / BibTeX
The plugin support some small subset of BibTeX accents, kind of like this:
%%(bibtex)
@INPROCEEDINGS{test-bibtex
, author = {John Do\'{e} and An\~{n}ie Smith and Franz M\"uller}
, title = {Les Moulins de Mon C\oeur}
, booktitle = {\"Uber Sesamstra\sse}
, year = {2100}
, publisher = {\Angstr\"om Publishing}
}%%, title = {Les Moulins de Mon C\oeur}
, booktitle = {\"Uber Sesamstra\sse}
, year = {2100}
, publisher = {\Angstr\"om Publishing}
Which produces:
Les Moulins de Mon Cur, John Doé and Anñie Smith and Franz Müller, Über Sesamstraße, Ångström Publishing, 2100
BibTeX
BibTeX
20. BibTeX Inclusion
You can also include an entire BibTeX file using syntax like this:
{{bibtex file="uploads/SandBox/stuff.bib"}}
If you would like to show only a few citations, you can add a comma-delimited list of them in the tags parameter. For example:
{{bibtex file="uploads/SandBox/stuff.bib" tags="vo-panait-luke-09, vo-harrison-lien-09"}}
If you would like to highlight an author, you can use the syntax like this: (added by ZhonghuaXi 7/22/2013)
{{bibtex file="uploads/hgbib/masc.bib" tags="Lu:2013a" highlight="Zhonghua Xi"}}
If you would like to show the citations with specific authors, you can use the syntax like this: (added by ZhonghuaXi 7/23/2013)
{{bibtex file="uploads/hgbib/masc.bib" authors="Yanyan Lu"}}
Notice: filters on authors are in OR relationship, below link will show the papers written by "Yanyan Lu" OR "Christopher Vo"
{{bibtex file="uploads/hgbib/masc.bib" authors="Yanyan Lu, Christopher Vo"}}
BTW, it will highlight the first author in 'authors' tag if 'highlight' tag is not specified.
If you would like to show the citations in specific years , you can use the syntax like this: (added by ZhonghuaXi 7/23/2013)
{{bibtex file="uploads/hgbib/masc.bib" years="2013,2012,2011,2010"}}
If you would like to show the citations with specific keywords, you can use the syntax like this: (added by ZhonghuaXi 8/21/2013)
{{bibtex file="uploads/bib/masc.bib" keywords="ACD"}}
If you would like to show the citations with specific entry type, you can use the syntax like this: (added by ZhonghuaXi 2/9/2015)
{{bibtex file="uploads/hgbib/masc.bib" types="inproceedings"}}
{{bibtex file="uploads/hgbib/masc.bib" types="techreport, unpublished"}}
If you would like to show the summary of the paper, you can use the syntax like this: (added by ZhonghuaXi 2/12/2015)
{{bibtex file="uploads/hgbib/origami.bib" tags="zhou2014boxelization,balkcom2008robotic,song2004motion", summary="true"}}
21. Obj Viewer
(Plugin by ZhonghuaXi)ObjViewer allow you to display a 3D model online.
Syntax:
{{objviewer url="http://masc.cs.gmu.edu/wiki/uploads/ObjViewer/flight.obj" width="600" height="480" dropable="true"}}
Notice: an absolute url is preferred here, or using "/wiki/uploads/..."
if dropable is set to true, you can drop any local obj file onto canvas
default width and height will be both 360px
CategoryWiki