UserGuide: Syntax cheatsheet

This revision is from 2009/02/14 23:26. You can Restore it.

Text styles

'''Bold''' → Bold (three apostrophes)

''Italic'' → Italic (two apostrophes)

'''''Bold and italic''''' → Bold and italic (five apostrophes)

'—Strikethrough—' → Strikethrough

'__Underlined__' → Underlined

{small}Small text{/small} → Small text

2{sup}10{/sup} → x10

x{sub}i{/sub} → xi

Links

[Main page] -> Main page

[Main project page|Main page] -> Main project page

http://lionwiki.0o.cz -> http://lionwiki.0o.cz

lionwiki@example.com -> lionwiki@example.com

[LionWiki|http://lionwiki.0o.cz] -> LionWiki

Relative links have to start with ./ (otherwise it will be interpreted as Wiki page)

[Interesting page|./SomeWebPage.html] -> Interesting page

[?Albert Einstein] -> ?Albert Einstein - link to the article on Wikipedia in your language

Headings

Example:

!Heading H2
!!Heading H3

Heading H2

Heading H3

Unordered list

* Fruit
** Apple
* Vegetable

  • Fruit
    • Apple
  • Vegetable

Ordered list

# First item 
## First subitem 
# Second item

  1. First item
    1. First subitem
  2. Second item

Images

[http://lionwiki.0o.cz/lion.jpg] →

You can use your image as your link: [http://lionwiki.0o.cz/lion.jpg|http://lionwiki.0o.cz/] →

← [http://lionwiki.0o.cz/lion.jpg|left]

[http://lionwiki.0o.cz/lion.jpg|http://lionwiki.0o.cz/|right] →

data/lamb_thumb.jpg

Subpages - Including page is done with keyword {include:page_to_be_included}.

Redirects - Put {redirect:page} at the very beginning of the page.

Special characters - some sequences of characters are automatically replaced:

  • Arrows : <-- : ←, --> : →, <--> : ↔
  • Dash : -- : —
  • Copyrights : (c) or (C) : ©, (r) or (R) : ®

Code - {{print "Hello",sys.argv[1]}}

print "Hello",sys.argv[1]

Horizontal line is created by ----


Suppressing wiki syntax - by using ^ character before syntax keyword or using {{something}}. If you want to insert ^ character, you have to double it, i.e. ^^

HTML code - {html}<small>some html code</small>{/html} - {html}<small>some html code</small>{/html}

Newline - LionWiki joins adjacent newlines together, if you need more than one newline, use {br}.

Internal comments - HTML-like syntax <!-- text not intended to be displayed -->