Šablona:Spoiler: Porovnání verzí
mBez shrnutí editace |
mBez shrnutí editace |
||
Řádek 41: | Řádek 41: | ||
Spoiler-in-spoiler | Konstrukce Spoiler-in-spoiler mohou být použity, ale s určitými chybami... například: | ||
{{spoiler|title=1 spoiler|text=spoiler-in-spoiler{{spoiler|title=2 spoiler|text=looks like good}}but it's crashing, if first element of '''text''' parametr is spoiler again. At first you must print some words or may be picture, and after that spoiler. Bug example:{{spoiler|title=spoiler with bug|text={{spoiler|text=something evil was happened :D}} }} }} | {{spoiler|title=1 spoiler|text=spoiler-in-spoiler{{spoiler|title=2 spoiler|text=looks like good}}but it's crashing, if first element of '''text''' parametr is spoiler again. At first you must print some words or may be picture, and after that spoiler. Bug example:{{spoiler|title=spoiler with bug|text={{spoiler|text=something evil was happened :D}} }} }} | ||
Verze z 20. 6. 2011, 16:16
Spoiler |
---|
no text |
Spoilery používají JavaScript kód a pokud chcete, aby pracoval ve vaší wiki, musíte zkopírovat text z Mediawiki:Common.js to analog na stránku ve vaší wiki. Na této stránce popisují JavaScript kód, který můžete používat na celé wiki...
Spoiler, realized on <table class="collapsible"> |
---|
{|class="collapsible collapsed" !Spoiler name |
<div class="NavFrame collapsed">
<div class="NavHead"> Spoiler name </div>
<div class="NavContent"> text under spoiler </div>
</div>
Manual
In order that would implement a template to a page write
Spoiler |
---|
no text |
x , x must be put in place certain parameters. The parameters are:
- title - Titulek spoileru
- text - Text pod spoilerem
- bckg1 - Barva titulku
- bckg2 - Barva pozadí pod titulkem
- bord1 - Popis hranice titulku
- bord2 - Popis okna pod spoilerem
- width - Šířka spoileru
Například:
{{Spoiler| title=My spoiler| text=text under spoiler| bckg1=black| bckg2=white| color1=white| color2=blue| bord1=1px #CCFF00 solid| bord2=1px black solid| width=300px}}
My spoiler |
---|
text under spoiler |
Konstrukce Spoiler-in-spoiler mohou být použity, ale s určitými chybami... například:
1 spoiler | ||||||
---|---|---|---|---|---|---|
spoiler-in-spoiler
but it's crashing, if first element of text parametr is spoiler again. At first you must print some words or may be picture, and after that spoiler. Bug example:
|
|}
SYNTAX: {{Spoiler|title=title of spoiler|text=text of spoiler|bckg1=Background of title|bckg2=Background of text|color1=Text colour of title|color2=Text colour of text|bord1=Border Top; Pixels, Color, Solid|bord2=Border Bottom|width=width of spoiler}}