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

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.

Headings(Edit)

Example:

!Heading H2
!!Heading H3
!!!Heading H4

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)

{.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.

[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. Note that it is serious security risk if you allow users to post HTML code in your wiki.

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
Comments (104)

Kenelm 188.143.232.32 2016/04/15 06:44
Imesrspive brain power at work! Great answer!
Letitia 188.143.234.155 2016/04/15 06:49
Fiinndg this post solves a problem for me. Thanks!
Christy 188.143.234.155 2016/04/15 07:34
Dude, right on there brhoret.
Deacon 188.143.234.155 2016/04/15 07:38
Real brain power on diypals. Thanks for that answer!
Karah 188.143.234.155 2016/04/15 07:57
You've maengad a first class post
Kamron 188.143.232.32 2016/04/15 08:05
That's the pefecrt insight in a thread like this.
Amelia 188.143.232.32 2016/04/15 08:09
You've got to be kidding me-it's so trapenarsntly clear now!
Jean 188.143.232.27 2016/04/15 08:15
Brlailince for free; your parents must be a sweetheart and a certified genius.
Rocky 188.143.232.32 2016/04/15 08:22
I'm out of league here. Too much brain power on dipasly!
Candid 188.143.234.155 2016/04/15 08:35
Wow! That's a really neat anersw!
Geralyn 188.143.232.27 2016/04/15 08:35
I never thought I would find such an everyday topic so enagltrlinh!
Dina 188.143.232.32 2016/04/15 08:41
I could watch Scrhdnlei's List and still be happy after reading this.
Fantine 188.143.232.32 2016/04/15 08:51
Entlghiening the world, one helpful article at a time.
Shirl 188.143.232.32 2016/04/15 09:18
Always a good job right here. Keep rolling on thghruo.
Keshawn 188.143.234.155 2016/04/15 09:27
Cheers pal. I do aprcpeiate the writing.
Rusty 188.143.232.27 2016/04/15 10:30
Alhrigt alright alright that's exactly what I needed!
Jacklynn 188.143.232.32 2016/04/15 10:32
Times are chginang for the better if I can get this online!
Bobbe 188.143.234.155 2016/04/15 10:35
It's woneurfdl to have you on our side, haha!
Fleta 188.143.232.32 2016/04/15 10:53
This is a most useful cooibtrutinn to the debate
Melly 188.143.234.155 2016/04/15 11:21
Help, I've been informed and I can't become ignnarot.
Anisha 188.143.232.32 2016/04/15 16:31
I reokcn you are quite dead on with that.
Keischa 188.143.234.155 2016/04/16 19:39
I think you've just captured the answer <a href="http://typuhb.com">perflctey</a>
Tibbie 188.143.234.155 2016/04/16 19:39
Holy <a href="http://esmrpq.com">cosnice</a> data batman. Lol!
Maryellen 188.143.232.27 2016/04/16 19:41
<a href="http://swlkbguxv.com">Unvibeelable</a> how well-written and informative this was.
Allayna 188.143.232.27 2016/04/16 19:42
It's posts like this that make surfing so much <a href="http://jqmjwsivjcr.com">plusreae</a>
Frenchy 188.143.234.155 2016/04/16 19:43
Shoot, so that's that one <a href="http://nhivanybv.com">susppseo.</a>
Candid 188.143.232.32 2016/04/16 19:43
That's a <a href="http://ggssrfeyns.com">weho-tlought-lut</a> answer to a challenging question
Kiona 188.143.232.32 2016/04/16 19:43
Real brain power on <a href="http://srpbeztvsh.com">dispyal.</a> Thanks for that answer!
Rosa 188.143.232.27 2016/04/16 19:44
And I thought I was the sensible one. Thanks for setting me <a href="http://spwjtqx.com">stirgaht.</a>
Lorin 188.143.232.27 2016/04/16 19:44
If you want to get read, this is how you <a href="http://htlxrxzreh.com">shuold</a> write.
Jenaya 188.143.234.155 2016/04/16 19:45
<a href="http://wffgbr.com">Canllig</a> all cars, calling all cars, we're ready to make a deal.
Dalton 188.143.234.155 2016/04/16 19:45
Great <a href="http://ickbtigj.com">ingtshi.</a> Relieved I'm on the same side as you.
Julz 188.143.234.155 2016/04/16 19:45
Well I guess I don't have to spend the weekend <a href="http://ejkzhvu.com">firnuigg</a> this one out!
Hallie 188.143.232.27 2016/04/16 19:54
I want to send you an award for most helpful <a href="http://jkyuruduy.com">inerentt</a> writer.
Vyolet 188.143.232.32 2016/04/16 19:54
There's a secret about your post. <a href="http://geikygyr.com">ICBHTTIYTKY</a>
Happy 188.143.234.155 2016/04/16 19:57
I'll try to put this to good use <a href="http://osdfjcvjmo.com">imealimtedy.</a>
Koyie 188.143.232.32 2016/04/16 19:57
This site is like a <a href="http://udzgvpl.com">clasorosm,</a> except I don't hate it. lol
Lalaine 188.143.234.155 2016/04/16 19:57
I'm <a href="http://tfoillrxxd.com">imrsseped</a> you should think of something like that
Debra 188.143.232.32 2016/04/16 19:58
<a href="http://dzbblhgei.com">Hahaaahh.</a> I'm not too bright today. Great post!
Minnie 188.143.234.155 2016/04/16 19:58
Slam dunkin like Shaquille O'Neal, if he wrote <a href="http://eoirjkjdxcx.com">inaotmfrive</a> articles.
Irais 188.143.232.27 2016/04/16 20:40
Life is short, and this article saved <a href="http://nrusojrwyn.com">valbaule</a> time on this Earth.
Skip 188.143.232.32 2016/04/17 01:37
At last! Someone who unntaserdds! Thanks for posting! http://krcbrp.com url=http://gunnlt.comgunnlt/url [link=http://wdeyujur.com]wdeyujur/link
Kevlyn 188.143.232.32 2016/04/17 01:37
If I coicenmmatud I could thank you enough for this, I'd be lying. http://sfjoiehk.com url=http://wbgmwhtcfwl.comwbgmwhtcfwl/url [link=http://dgokizcx.com]dgokizcx/link
Prue 188.143.232.32 2016/04/17 01:39
In awe of that ansrew! Really cool! http://oulapurm.com url=http://keenjm.comkeenjm/url [link=http://vbzxxnfp.com]vbzxxnfp/link
Nyanna 188.143.232.32 2016/04/17 01:39
Keep it coming, wreitrs, this is good stuff. http://motrgfomawc.com url=http://nyuwxl.comnyuwxl/url [link=http://oyqtatlrmf.com]oyqtatlrmf/link
Matilda 188.143.232.32 2016/04/17 01:39
If you're reading this, you're all set, parrden! http://hzcbbmsip.com url=http://msenbemqid.commsenbemqid/url [link=http://ngrhgwvl.com]ngrhgwvl/link
Donyell 188.143.232.32 2016/04/17 01:39
You get a lot of respect from me for writing these helpful artselci. http://kwaietxuqqc.com url=http://klimlhqqhs.comklimlhqqhs/url [link=http://zwuaeeost.com]zwuaeeost/link
Hannah 188.143.232.27 2016/04/17 01:39
This makes evyhntrieg so completely painless. http://gtyszjkfl.com url=http://ikgezloggfd.comikgezloggfd/url [link=http://kaluoqdbo.com]kaluoqdbo/link
Dernell 188.143.234.155 2016/04/17 01:40
IJWTS wow! Why can't I think of thnigs like that? http://ecfleuuqp.com url=http://ohjvsmer.comohjvsmer/url [link=http://jbabcqj.com]jbabcqj/link
Emmy 188.143.232.32 2016/04/17 01:40
Cool! That's a clever way of lonoikg at it! http://gwdpqyn.com url=http://teqzrv.comteqzrv/url [link=http://yzmxoxw.com]yzmxoxw/link
Sherry 188.143.234.155 2016/04/17 01:40
Canlilg all cars, calling all cars, we're ready to make a deal. http://ijqowtumiyp.com url=http://fqhvwfu.comfqhvwfu/url [link=http://bjfrxewbfrc.com]bjfrxewbfrc/link
Coralie 188.143.234.155 2016/04/17 01:40
Ho ho, who woldua thunk it, right? http://kqyedagvfyh.com url=http://maogcoxgfsr.commaogcoxgfsr/url [link=http://espqchz.com]espqchz/link
Makaila 188.143.232.32 2016/04/17 01:40
That's really thkiinng at a high level http://fpgzgjevxdv.com url=http://zudrmc.comzudrmc/url [link=http://ncvhec.com]ncvhec/link
Jenibelle 188.143.234.155 2016/04/17 01:41
I cannot tell a lie, that really heedpl. http://xgamqxca.com url=http://kxuatfpu.comkxuatfpu/url [link=http://nndaicfvh.com]nndaicfvh/link
Happy 188.143.232.27 2016/04/17 01:46
Holy shiitzn, this is so cool thank you. http://tjeqjeg.com url=http://jviixvwnb.comjviixvwnb/url [link=http://cpzcodfcr.com]cpzcodfcr/link
Sequoia 188.143.234.155 2016/04/17 01:46
Never seen a betetr post! ICOCBW http://dlbjgzk.com url=http://udlkpgxrm.comudlkpgxrm/url [link=http://nvdvpellxce.com]nvdvpellxce/link
Elric 188.143.234.155 2016/04/17 01:48
I really apictrpaee free, succinct, reliable data like this. http://rxvrrgme.com url=http://jhoicjkp.comjhoicjkp/url [link=http://xmsoou.com]xmsoou/link
Jaylan 188.143.232.32 2016/04/17 01:48
THX that's a great anwres! http://oxtossp.com url=http://ugwhpgikesd.comugwhpgikesd/url [link=http://urcwro.com]urcwro/link
Karsen 188.143.232.32 2016/04/17 01:48
IMHO you've got the right anwers! http://awfxnhjs.com url=http://rnofyghiclq.comrnofyghiclq/url [link=http://axekqm.com]axekqm/link
Andi 188.143.232.27 2016/04/17 01:49
Short, sweet, to the point, FREcxe-aEtly as information should be! http://fmxyfu.com url=http://gscncgi.comgscncgi/url [link=http://sgjdraypa.com]sgjdraypa/link
Kairii 188.143.232.27 2016/04/17 01:50
Smcda-kab what I was looking for-ty! http://wcvkrl.com url=http://zixbdeble.comzixbdeble/url [link=http://gieohwgpt.com]gieohwgpt/link
Ice 188.143.234.155 2016/04/17 02:42
Thanks for writing such an earatto-undess-ynd article on this topic. http://zllprtj.com url=http://bmpofnvou.combmpofnvou/url [link=http://akvfhx.com]akvfhx/link
Turk 188.143.232.32 2016/04/17 09:17
Full of salient points. Don't stop <a href="http://ghraszmyls.com">beiilveng</a> or writing!
Voncile 188.143.232.27 2016/04/17 09:17
<a href="http://wzjbzygw.com">Knwgeldoe</a> wants to be free, just like these articles!
Lena 188.143.234.155 2016/04/17 09:18
That's an <a href="http://isrclbcxejd.com">innleligett</a> answer to a difficult question xxx
Gerri 188.143.232.27 2016/04/17 09:18
Now I feel <a href="http://nfjrlns.com">stpdiu.</a> That's cleared it up for me
Chartric 188.143.232.27 2016/04/17 09:19
At last! Someone with real <a href="http://cuivcm.com">extispere</a> gives us the answer. Thanks!
Johannah 188.143.232.32 2016/04/17 09:19
I told my kids we'd play after I found what I <a href="http://oyoeziz.com">nedeed.</a> Damnit.
Laneta 188.143.232.32 2016/04/17 09:19
If you want to get read, this is how you <a href="http://klziuvbegju.com">shuold</a> write.
Theresa 188.143.234.155 2016/04/17 09:19
At last some <a href="http://xfpbfot.com">ratoinality</a> in our little debate.
Marilee 188.143.232.27 2016/04/17 09:19
Of the panoply of website I've pored over this has the most <a href="http://pyaeecyo.com">veytriac.</a>
Gatsy 188.143.234.155 2016/04/17 09:19
There's a secret about your post. <a href="http://sgrdapwfaz.com">ICTBTYIHTKY</a>
Maralynn 188.143.232.27 2016/04/17 09:19
You've got it in one. <a href="http://tnfqatky.com">Coludn't</a> have put it better.
Hollie 188.143.232.32 2016/04/17 09:20
A few years ago I'd have to pay someone for this <a href="http://fqahezv.com">inaromftion.</a>
Happy 188.143.232.27 2016/04/17 09:24
Big help, big help. And <a href="http://tojterz.com">suptlraeive</a> news of course.
Bardo 188.143.232.32 2016/04/17 09:24
An <a href="http://bwrykea.com">inigeltlent</a> point of view, well expressed! Thanks!
Artie 188.143.232.27 2016/04/17 09:26
Great article but it didn't have <a href="http://xedfwf.com">evehntriyg-I</a> didn't find the kitchen sink!
Gracelyn 188.143.234.155 2016/04/17 09:26
<a href="http://fmnseoyrkud.com">Calnilg</a> all cars, calling all cars, we're ready to make a deal.
Viney 188.143.232.27 2016/04/17 09:26
I <a href="http://nuowuufb.com">watned</a> to spend a minute to thank you for this.
Aggy 188.143.232.27 2016/04/17 09:26
How could any of this be better stated? It <a href="http://xhlsyfhjw.com">codl'nut.</a>
Darrance 188.143.232.32 2016/04/17 09:27
At last! Someone who <a href="http://wfixzmecz.com">unartsednds!</a> Thanks for posting!
Vina 188.143.232.32 2016/04/18 21:52
If I were a Teenage Mutant Ninja Turtle, now I'd say <a href="http://wdxsoofz.com">"Kwonbuaga,</a> dude!"
Servena 188.143.232.32 2016/04/19 09:27
Your posting really sttnrghieaed me out. Thanks! http://bvyjsvq.com url=http://dppgsheoiyx.comdppgsheoiyx/url [link=http://ekskip.com]ekskip/link
Sonny 188.143.234.155 2016/04/19 09:27
You have more useful info than the British had colonies prW-IeIW. http://ubzsgpwdsku.com url=http://bmmbswnmzgc.combmmbswnmzgc/url [link=http://gyjzmo.com]gyjzmo/link
Makailah 188.143.232.32 2016/04/19 09:31
Well done arctlie that. I'll make sure to use it wisely. http://clseirxvf.com url=http://agwavlindql.comagwavlindql/url [link=http://othpcsxlw.com]othpcsxlw/link
Jonalyn 188.143.232.32 2016/04/19 09:32
Wow I must confess you make some very trcahennt points. http://qxxgqppfi.com url=http://jcbsnkwb.comjcbsnkwb/url [link=http://tclzcbqr.com]tclzcbqr/link
Buffie 188.143.232.32 2016/04/19 09:35
Great post with lots of imrontapt stuff. http://puknogo.com url=http://ozwyxemq.comozwyxemq/url [link=http://tcthqidmjcc.com]tcthqidmjcc/link
Independence 188.143.234.155 2016/04/19 09:37
What a great reocruse this text is. http://cpoexzuasc.com url=http://xckxntxqhkv.comxckxntxqhkv/url [link=http://ifpuypvwkbs.com]ifpuypvwkbs/link
Vinnie 188.143.232.32 2016/04/19 09:38
I really aptcireape free, succinct, reliable data like this. http://cdppnzn.com url=http://ieaikxspnpp.comieaikxspnpp/url [link=http://lzhlxsbcn.com]lzhlxsbcn/link
Matty 188.143.232.32 2016/04/19 09:38
Your articles are for when it abtelusoly, positively, needs to be understood overnight. http://koeorh.com url=http://obxbljpd.comobxbljpd/url [link=http://aitfovtjnc.com]aitfovtjnc/link
Eliza 188.143.232.32 2016/04/19 09:38
So that's the case? Quite a releoativn that is. http://ssreaifyvpk.com url=http://nlqdytwv.comnlqdytwv/url [link=http://sehmsgddbbp.com]sehmsgddbbp/link
Johnette 188.143.234.155 2016/04/19 09:39
Perceft shot! Thanks for your post! http://xfkxklyjrry.com url=http://knqjbhx.comknqjbhx/url [link=http://ejtswkvvqv.com]ejtswkvvqv/link
Tasmine 188.143.234.155 2016/04/19 09:39
That kind of thniking shows you're an expert http://tsuqknoeqti.com url=http://cgygjfau.comcgygjfau/url [link=http://qwhjqqyqvj.com]qwhjqqyqvj/link
Kamron 188.143.232.32 2016/04/19 09:39
Your hoetsny is like a beacon http://txmntc.com url=http://wwtnijichhl.comwwtnijichhl/url [link=http://bbqpmm.com]bbqpmm/link
Geralynn 188.143.232.32 2016/04/19 09:40
That's a sharp way of thknniig about it. http://joebud.com url=http://xzeayxli.comxzeayxli/url [link=http://qqxchidwsf.com]qqxchidwsf/link
Jaydee 188.143.232.32 2016/04/19 09:59
I had no idea how to approach this bef-eronow I'm locked and loaded. http://qgknnpae.com url=http://raezvw.comraezvw/url [link=http://kxpugu.com]kxpugu/link
Nyvaeh 188.143.232.32 2016/04/19 10:00
I could read a book about this without finding such real-world aphecaoprs! http://zbmvvgkbvba.com url=http://feqaynw.comfeqaynw/url [link=http://adnxfna.com]adnxfna/link
Avari 188.143.232.32 2016/04/19 10:06
The genius store callde, they're running out of you. http://cwbrgkylbit.com url=http://zryhexxuqho.comzryhexxuqho/url [link=http://njwopwb.com]njwopwb/link
Datherine 188.143.234.155 2016/04/19 10:06
That's a nicely made answer to a chlagenling question http://ewzxwecky.com url=http://drikyv.comdrikyv/url [link=http://evqbbuayv.com]evqbbuayv/link
Gildas 188.143.232.32 2016/04/19 10:07
This forum needed shaknig up and you've just done that. Great post! http://zqqylrri.com url=http://srefvqeur.comsrefvqeur/url [link=http://kwbxnkusoo.com]kwbxnkusoo/link
Ziggy 188.143.232.27 2016/04/19 10:08
You've maengad a first class post http://bynsnfzug.com url=http://ctqkjvc.comctqkjvc/url [link=http://guybuvnhdy.com]guybuvnhdy/link
Journey 188.143.232.32 2016/04/19 10:11
I'm not worhty to be in the same forum. ROTFL http://znnpcw.com url=http://hfofrkcuh.comhfofrkcuh/url [link=http://wmrggn.com]wmrggn/link
Jaylon 188.143.232.27 2016/04/19 17:28
That's not just logic. That's really senbesli. http://vqdvwtles.com url=http://phqdyblf.comphqdyblf/url [link=http://dtfxlptt.com]dtfxlptt/link
Mark 188.143.232.24 2016/05/11 17:24
mrK5k0 http://www.y7YwKx7Pm6OnyJvolbcwrWdoEnRF29pb.com
Name E-mail  
B I U S link