CM
WIKI
Wiki syntax is very easy. Simply start with {wiki} and end with {/wiki} Everything within the wiki tags will be parsed based as wiki syntax. Of course you can insert a straight HTML syntax within wiki tags.
Following are available wiki tags :
{p [right|left|center]} paragraph {/p}{b} bold {/b}
{i} italic {/i}
{u} underlined {/u}
{e} emphasized {/e}
{s} strike-through {/s}
{^} superscript {/^}
{v} subscript {/v}
{0} small text {/0}
{1 [right|left|center]} heading 1 {/1}
{2 [right|left|center]} heading 2 {/2}
{3 [right|left|center]} heading 3 {/3}
{4 [right|left|center]} heading 4 {/4}
{5 [right|left|center]} heading 5 {/5}
{ol [style]} ordered list {/ol}
styles:
lower-alpha
lower-greek
lower-latin
upper-alpha
upper-latin
upper-roman
{ul [style]} unordered list {/ul}
styles:
none
disc
circle
square
{l} list element {/l}
{t} table start {/t}
{r [rowspan]} table row {/r}
{c [colspan]} table cell {/c}
{h [colspan]} table heading {/h}
{tb color} text background color {/tb}
{ts size} text size {/ts}
{tc color} text colour {/tc}
{tf font} text font {/tf}
{} break
{-} non breakable space
{hr} horizontal rule
{ua} ↑ symbol
{la} ← symbol
{ra} → symbol
{da} ↓ symbol
{micro} µ symbol
{+-} ± symbol
{deg} ° symbol
{>=} ≥ symbol
{<=} ≤ symbol
{1/2} ½ fraction
{1/3} ⅓ fraction
{3/4} ¾ fraction
{fr q,d} will show q/d
{hex hexadecimal encode string}
{ltr} left to right language e.g. English {/ltr}
{rtr} right to left language e.g. Urdu {/rtr}
Because curly brackets are parsed by the wiki syntax, you can use following to insert curly brackets.
{lb} will substitute it for {
{rb} will substitute it for }
Links can be created with the following syntax :
{k link,caption,[target]}
For local pages you can simply write the name of the page or you can give the full URL to create the link. e.g.
{k home,Home} will create a local link to home page.
{k http://google.com,Google} will create a link to google website.
{k home,Home} will create a link to home page.
Images or photos can be added with following syntax :
{f path,title,align}
For local images you can simply write the name of the media beginning with media/image.jpg or you can give the full URL to get an external image e.g.
{f media/logo.png,logo,left} will display image from local media directory to the left.
{f http://somewebsite.com/someweblogo.png,logo,right} will display image from some website aligned to the right.
Movies or Music can be added with following syntax :
{m path, title, width, height, controls (Yes|No), type (mp4|ogg|mp3)}
Will display a movie or music file with controls and play it within the web page. HTML5 video tag is used and it will not work on older browsers which do not support video tag. HTML5 only supports mp4, ogg and wmn file formats.
Styling WIKI
Most wiki tags can be styled through style sheet. e.g. following are the examples to change {1}, {k} and {hr} tag styles.
h1.wiki { font-family: verdana; font-size: 10pt; color: red; }a.wiki { color: #008000; text-decoration: none; }
hr.wiki { height: 1px; border: none; color: #d8d8d8; background-color:#d8d8d8; }