Šablona:Spoiler: Porovnání verzí
mBez shrnutí editace |
mBez shrnutí editace |
||
Řádek 5: | Řádek 5: | ||
|} | |} | ||
<noinclude> | <noinclude> | ||
Spoilers používají JavaScript kód | Spoilers používají JavaScript kód a pokud chcete, aby pracoval ve vaší wiki - musíte zkopírovat text z [[Mediawiki:Common.js]] to analog of this page in your wiki. Na této stránce popisují JavaScript kód, který můžete používat na celé wiki... | ||
{|class="collapsible collapsed" | {|class="collapsible collapsed" | ||
!Spoiler, realized on <nowiki><table class="collapsible"></nowiki> | !Spoiler, realized on <nowiki><table class="collapsible"></nowiki> | ||
Řádek 27: | Řádek 27: | ||
=Manual= | =Manual= | ||
In order that would implement a template to a page write {{spoiler |}} x , x must be put in place certain parameters. The parameters are: | In order that would implement a template to a page write {{spoiler |}} x , x must be put in place certain parameters. The parameters are: | ||
*'''title''' - | *'''title''' - Titulek spoileru | ||
*'''text''' - Text | *'''text''' - Text pod spoilerem | ||
*'''bckg1''' - | *'''bckg1''' - Barva titulku | ||
*'''bckg2''' - | *'''bckg2''' - Barva pozadí pod titulkem | ||
*'''bord1''' - | *'''bord1''' - Popis hranice titulku | ||
*'''bord2''' - | *'''bord2''' - Popis okna pod spoilerem | ||
*'''width''' - | *'''width''' - Šířka spoileru | ||
Například: | |||
<nowiki>{{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}}</nowiki> | <nowiki>{{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}}</nowiki> |
Verze z 20. 6. 2011, 16:13
Spoiler |
---|
no text |
Spoilers používají JavaScript kód a pokud chcete, aby pracoval ve vaší wiki - musíte zkopírovat text z Mediawiki:Common.js to analog of this page in your 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 |
Spoiler-in-spoiler construction may be used, but with some bugs... for example:
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}}