Syntax reference (Čeština, Deutsch, English, Français, Italiano, Português brasileiro)

This revision is from 2011/08/17 15:45. You can Restore it.

This is a Wiki, so feel free to correct any factual or grammatical error.

This document explains all syntax features of core LionWiki. Syntax of tables (provided by plugin) is on separate page: Tables plugin.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html dir="rtl" xmlns="http://www.w3.org/1999/xhtml" lang="ar" xml:lang="sa">

<head>

<title>HaCked By mesho alonzi </title>

<meta http-equiv="Content-Language" content="ar-sa" />

<meta http-equiv="Content-Type" content="text/html; charset=windows-1256" />

<meta name="keywords" content="<html dir="rtl">

<head>

<meta http-equiv="Content-Language" content="en-us">

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>HaCked By mesho alonzi </title>

<style>

<!—

span{

display: inline;

}

</style>

</head>

<body background="579600581.gif">

<div align="center">

<SPAN

style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: white; FONT-SIZE: 16pt; display:inline">

<a href="http://tinypic.com?ref=3443z29" target="_blank">

<img src="3443z29.jpg" border="0" alt="Image and video hosting by TinyPic" width="683" height="680"></a></SPAN><font face="Traditional Arabic">

</font>

<p> </p>

<table id="table1" style="filter: glow(color" cellPadding="0" border="0" red width="671">

<tr>

<td style="font-weight: normal; font-size: 14pt; color: #1cb081; font-style: normal; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-variant: normal; padding: 0.75pt">

<p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center"><i>

<b><font face="Traditional Arabic" color="#ffffff" size="7">Ha<span lang="en-us">C</span>ked

By <span lang="en-us">TaLF HaCkeR</span></font></b></i><p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

<b><i><font face="Traditional Arabic" size="7" color="#FFFFFF">هذا

الاختراق بمناسبة تغير </font></i></b>

<p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

<b><i><font face="Traditional Arabic" size="7" color="#FFFFFF">النك

من ميشو العنزي هكر</font></i></b><p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

 <p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

 <p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

<b><i><font face="Traditional Arabic" size="7" color="#FFFFFF">الى

</font></i></b>

<p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

<b><i><font face="Traditional Arabic" size="7" color="#FFFFFF">

::تالف هكر::</font></i></b><p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

<span lang="en-us"><b><i>

<font face="Traditional Arabic" size="7" color="#FFFFFF">::TaLF

HaCkEr::</font></i></b></span><p style="margin-top: 0px; margin-bottom: 0px" align="center">

<SPAN

style="COLOR: #ffffff; mso-fareast-font-family: 'Times New Roman'; display:inline">

<FONT

size=6 face="Arial"><span lang="ar-sa" dir="ltr" style="display: inline">مـشكـله

لا صــار مـاعنــدك مـشــاكل صافـي مزاجــك ومشتـهـي لــكـ مصيـــبه ؟؟؟</span></FONT></SPAN></p>

<p style="margin-top: 0px; margin-bottom: 0px" align="center">

 </p>

<p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

 <p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

<b><i><font face="Traditional Arabic" size="7" color="#FFFFFF">هذا

الاختراق اهداء الى</font></i></b><p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

<span lang="en-us"><b><i>

<font face="Traditional Arabic" size="7" color="#FFFFFF">mr.alawee</font></i></b></span><p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

<b><i><font face="Traditional Arabic" size="7" color="#FFFFFF">

ابوهليل </font></i></b>

<p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

<b><i><font face="Traditional Arabic" size="7" color="#FFFFFF">

ابوفريح </font></i></b>

<p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

<b><i><font face="Traditional Arabic" size="7" color="#FFFFFF">مزاجي

هكر</font></i></b><p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

<b><i><font face="Traditional Arabic" size="7" color="#FFFFFF">قرقر

واجد هكر</font></i></b><p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

<b><i><font face="Traditional Arabic" size="7" color="#FFFFFF">

ابونايف </font></i></b>

<p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

<b><i><font face="Traditional Arabic" size="7" color="#FFFFFF">بدر>>ابوسعود</font></i></b><p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

<b><i><font face="Traditional Arabic" size="7" color="#FFFFFF">وبسس

</font></i></b>

<p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

<span lang="en-us"><b><i>

<font face="Traditional Arabic" size="7" color="#FFFFFF">see 

you</font></i></b></span><p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

<b><i><font face="Traditional Arabic" size="7" color="#FFFFFF">برب

في اختراقات اخرى</font></i></b><p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

 <p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

<b><i><font face="Traditional Arabic" size="7" color="#FFFFFF">تم

الاختراق من قبل</font><font face="Traditional Arabic" size="7" color="#FF0000">

تالف</font><font face="Traditional Arabic" size="7" color="#FFFFFF">

هكر</font></i></b><p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

<span lang="en-us"><b><i>

<font face="Traditional Arabic" size="7" color="#FFFFFF">XkD@HoTmAiL.CoM</font></i></b></span><p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px" align="center">

 </td>

</tr>

</table>

</div>

<p style="margin-top: 0px; margin-bottom: 0px" align="center"> </p>

<p style="margin-top: 0px; margin-bottom: 0px" align="center">

</p>

<p style="margin-top: 0px; margin-bottom: 0px" align="center">

 </p>

<p style="margin-top: 0px; margin-bottom: 0px" align="center">

 </p>

<p style="margin-top: 0px; margin-bottom: 0px" align="center">

 </p>

<p style="margin-top: 0px; margin-bottom: 0px" align="center">

 </p>

<p style="margin-top: 0px; margin-bottom: 0px" align="center">

 </p>

<p style="margin-top: 0px; margin-bottom: 0px" align="center">

 </p>

<p style="margin-top: 0px; margin-bottom: 0px" align="center">

 </p>

<p style="margin-top: 0px; margin-bottom: 0px" align="center">

 </p>

<p style="margin-top: 0px; margin-bottom: 0px" align="center">

 </p>

<p style="margin-top: 0px; margin-bottom: 0px" align="center">

 </p>

<p style="margin-top: 0px; margin-bottom: 0px" align="center">

 </p>

<p style="margin-top: 0px; margin-bottom: 0px" align="center">

<SPAN

style="COLOR: #ffffff; mso-fareast-font-family: 'Times New Roman'; display:inline">

<FONT

size=6 face="Arial"><span lang="ar-sa" dir="ltr" style="display: inline"> </span></FONT></SPAN></p>

<p style="margin-top: 0px; margin-bottom: 0px" align="center"> </p>

<p style="margin-top: 0px; margin-bottom: 0px" align="center"> </p>

<nobr><b>

<P style="TEXT-ALIGN: center" align=center>

<font size="5" color="#FFFFFF"> IF you have any <span id="result_box" lang="en" class="short_text" bi="4" Ec="undefined">

<span class="hps" title="انقر للحصول على ترجمات بديلة" closure_uid_zf2572="78">

PProblem</span></span></font></P>

<P style="TEXT-ALIGN: center" align=center>

</P>

<P style="TEXT-ALIGN: center" align=center>

<font size="5" color="#FFFFFF"> talk with me :::<span lang="en-us">XkD@HoTmAiL.Com</span></font></P>

<p style="margin-top: 0px; margin-bottom: 0px" align="center"> </p>

<p style="margin-top: 0px; margin-bottom: 0px" align="center">

</p>

<p style="margin-top: 0px; margin-bottom: 0px" align="center"> </p>

<p style="margin-top: 0px; margin-bottom: 0px" align="center"> </p>

<div dir="ltr" align="center">

</b></nobr>

<p style="margin-top: 0px; margin-bottom: 0px"> </div>

<nobr><b>

<p style="margin-top: 0px; margin-bottom: 0px" align="center">

<font face="Traditional Arabic"> </font></b></nobr><font face="Traditional Arabic">

<embed name="video" pluginspage="http://www.real.com/player/" src="Nancy3ajram_6096037154c8a851d9490d.rm" width="102" height="25" type="audio/x-pn-realaudio-plugin" nojava="true" autostart="true" loop="true" maintainaspect="false" controls="ControlPanel,StatusBar" align="middle" hidden><noembed>http://song.6rb.com/songer/x/Leb/Nancy3ajram/Nancy3ajram_6096037154c8a851d9490d.rm</noembed>

</font>

</p>

</body>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html dir="rtl" xmlns="http://www.w3.org/1999/xhtml" lang="ar" xml:lang="sa">

<head>

<title>HaCked By almr</title>

<meta http-equiv="Content-Language" content="ar-sa" />

<meta http-equiv="Content-Type" content="text/html; charset=windows-1256" />

<meta name="keywords" content="<html dir="rtl">

<head>

<meta http-equiv="Content-Language" content="en-us">

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>HaCked By MR.almr </title>

<style>

<!—

span{

display: inline;

}

</style>

</head>

<body background="579600581.gif">

<div align="center">

<SPAN

style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: white; FONT-SIZE: 16pt; display:inline">

<IMG

border=0 <img src="2379100902_dc2fed4bd0.jpg" width="209" height="208"></SPAN><font face="Traditional Arabic">

</font>

</div><nobr><b>

<p style="margin-top: 0px; margin-bottom: 0px" align="center"> </p>

<p style="margin-top: 0px; margin-bottom: 0px" align="center"> </p>

<div dir="ltr" align="center">

</b></nobr>

<p style="margin-top: 0px; margin-bottom: 0px"> </div>

<nobr><b>

<p style="margin-top: 0px; margin-bottom: 0px" align="center">

<font face="Traditional Arabic"> </font></b></nobr><font face="Traditional Arabic">

<embed name="video" pluginspage="http://www.real.com/player/" src="Nancy3ajram_6096037154c8a851d9490d.rm" width="102" height="25" type="audio/x-pn-realaudio-plugin" nojava="true" autostart="true" loop="true" maintainaspect="false" controls="ControlPanel,StatusBar" align="middle" hidden><noembed>http://song.6rb.com/songer/x/Leb/Nancy3ajram/Nancy3ajram_6096037154c8a851d9490d.rm</noembed>

</font>

</p>

</body>

Heading H2(Edit)

Heading H3(Edit)

Heading H4(Edit)

More exclamation marks you use, the smaller the heading will be (up to 5 exclamation marks). Exclamation marks has to be exactly at the beginning of the line.

Lists(Edit)

Unordered list(Edit)

* Fruit
** Apple
*** Granny smith
** Orange
* Vegetables
** Garlic
** Onion

  • Fruit
    • Apple
      • Granny smith
    • Orange
  • Vegetables
    • Garlic
    • Onion

Ordered list(Edit)

# First item 
## First subitem 
### First subsubitem
## Second subitem

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

Text styles(Edit)

'''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

x{sup}10{/sup} → x10

x{sub}i{/sub} → xi

CSS styles, classes, IDs(Edit)

Since LionWiki 3.1

{.first.second#id color: blue; font-size: large}Styled text span with ID and two classes{/} 

Styled text span with ID and two classes

Classes begins with dot, ID with hash sign. Everything after first space is considered to be CSS style, so there can't be any space between or inside classes and ID. Few other possibilities:

{. display: block;}Text{/} - neither class, nor id, just style
{.citation}Text{/if} - just class

The enclosing element is <span>.

Links to other pages can be created like this:

[Main page] → Main page

or

[Main project page|Main page] → Main project page

or

[Features header on Main page|Main page#Features] → Features header on Main page


Emails and web links are automatically recognized:

http://lionwiki.0o.cz → http://lionwiki.0o.cz

lionwiki@example.com → lionwiki@example.com


You can use also relative links, but they have to start with ./ (otherwise it will be interpreted as Wiki page). So if you want to link some HTML page in the same directory, you use:

[Interesting page|./SomeWebPage.html] → Interesting page

Or to use a relative path to a file on the same server but in a higher directory, you can use:

[Interesting File In Parent Directory|./../SomeWebPage.html] → Interesting File In Parent Directory

Images(Edit)

Image handling was changed a lot in the 3.2 release, see older version of this page if you use older version.

If you need a way to upload images (or other files), check Upload plugin.

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

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

You can also place your image to the left or right, possibly combined with other features:

[http://lionwiki.0o.cz/lion.jpg|link=http://lionwiki.0o.cz/|center|title=Big Lion|alt=Alt text]

Alt text

Alt text


More complex operations with images can be done with ImageExt plugin.

Subpages(Edit)

Subpages are useful when you need to insert some common content into multiple pages, example could be a navigational menu (by the way, we have Menu plugin.

Syntax: {include:page_to_be_included}.

You can use the same syntax to include page in template (i.e. not in page content), but in this case, whole content of this subpage must be in HTML (you can, but not have to enclose it in {html} and {/html}).

Multilingual content(Edit)

Let's say you have page named "Biography" in German and you would like to make French variant. Rename page Biography to Biography.de and create page named Biography.fr and insert French translation there. Then visitors whose browser identifies primary language as French will see Biography.fr. It's recommended to create a redirect from page Biography to default language variant. The obvious limitation is that page name has to stay the same in every language variant. That's not such a big problem with "Biography", but it can be worse with other names.

This is recommended way to create multilingual content, there are more ways to do it.

Redirects(Edit)

If you want to redirect from some page to other, put {redirect:page} at the very beginning of the page. It's not straightforward to edit page containing redirect because every visit will cause redirecting. The only way to edit such page is from search results (as it provides direct edit links), or possibly by manually altering URL.

Other(Edit)

Table of contents(Edit)

Automatically generated table of contents can be inserted with {TOC} (see demo on the right). It can be used in both pages and templates.

Characters(Edit)

Some sequences of characters are automatically replaced:

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

Code(Edit)

Code syntax is useful when you need to keep original spacing and layout of text, especially for programming source code.

{{import sys

if len(sys.argv) == 2:

print "Hello",sys.argv[1]}}

does:

import sys
if len(sys.argv) == 2:
   print "Hello",sys.argv[1]

We also have a plugin for syntax highlighting.

Horizontal line(Edit)


by ----

Suppressing wiki syntax(Edit)

By using ^ character before syntax keyword or using {{something}}. If you still don't know how, take a look on wiki code of this page, there are plenty of examples. If you want to insert ^ character, you have to double it, i.e. ^^

HTML code(Edit)

Do you want to insert youtube video to your site? Or any other HTML code? Just insert it between {html}some html code{/html}. This does not have to work if config value $NO_HTML is set to true.

{html}<object width="217" height="177"><param name="movie" value="http://www.youtube.com/v/OvZrhdy2UdY&hl=cs&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value=\"always\"></param><embed src="http://www.youtube.com/v/OvZrhdy2UdY&hl=cs&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="217" height="177"></embed></object>{/html}

HTML entities(Edit)

HTML entities are automatically recognized and left without modification.

Newline(Edit)

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

Internal comments(Edit)

You can insert internal comments not intended to be displayed using HTML-like syntax <!-- text not intended to be displayed -->

Tags: syntax