Šablona:Spoiler: Porovnání verzí

Z Wiki Grepolis CZ
Jump to navigation
mBez shrnutí editace
(Uprava)
 
(Není zobrazeno 14 mezilehlých verzí od 3 dalších uživatelů.)
Řádek 1: Řádek 1:
{|style="border-collapse:collapse;" class="collapsible collapsed"
{|style="border-collapse:collapse;" class="collapsible collapsed"
!width="{{{width}}}" style="background:{{{bckg1|#D0F0F0}}}; border:{{{bord1|1px solid #C0C0FF}}}; color:{{{color1|black}}};"|{{{title|Spoiler}}}
!width="{{{width}}}" style="background:{{{bckg1|{{NavalColor}}}}}; border:{{{bord1|1px solid black}}}; color:{{{color1|#FFFFFF}}};"|{{{title|{{{1|Spoiler}}}}}}
|-
|-
|style="background:{{{bckg2|#C0C0C0}}}; border:{{{bord2|1px solid #B0B0B0}}}; color:{{{color2|black}}}; text-align:center"|{{{text|no text}}}
|style="background:{{{bckg2|{{LightColor}}}}}; border:{{{bord2|1px solid black}}}; color:{{{color2|black}}}; text-align:{{{align|center}}}"|{{{text|{{{2|'''Štandardné nastavenia:'''
|}
 
<noinclude>
 
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...
{1}title = ''Spoiler''
{|class="collapsible collapsed"
 
!Spoiler, realized on <nowiki><table class="collapsible"></nowiki>&nbsp;
{2}text = tento text
|-
 
|<nowiki>{|class="collapsible collapsed"</nowiki><br/>
width = ''auto''
<nowiki>!Spoiler name</nowiki><br/>
 
<nowiki>|-</nowiki><br/>
 
<nowiki>|text under spoiler</nowiki><br/>
bckg1 = ''[[Šablona:LightColor|<nowiki>{{NavalColor}}</nowiki>]]''
<nowiki>|}</nowiki>
 
|}
bord1 = ''1px solid black''
<div class="NavFrame collapsed">
 
  <div class="NavHead">'''Spoiler, realized on <nowiki><div class="NavFrame"></nowiki>'''</div>
color1 = ''#FFFFFF''
  <div class="NavContent">
 
<nowiki><div class="NavFrame collapsed"></nowiki><br/>
 
<nowiki><div class="NavHead"> Spoiler name </div></nowiki><br/>
bckg2 = ''[[Šablona:LightColor|<nowiki>{{LightColor}}</nowiki>]]''
<nowiki><div class="NavContent"> text under spoiler </div></nowiki><br/>
<nowiki></div></nowiki>
  </div>
</div>
<div style="margin:20px 0px 20px 0px; padding:15px 15px 15px 15px; background:#d0d0ff;">
=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:
*'''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:


<nowiki>{{Spoiler| title=Můj spoiler| text=text under spoiler| bckg1=black| bckg2=white| color1=white| color2=blue| bord1=1px #CCFF00 solid| bord2=1px black solid| width=300px}}</nowiki>
bord2 = ''1px solid black''
<br/>
{{Spoiler|title=Můj spoiler|text=text under spoiler|bckg1=black|bckg2=white|color1=white|color2=blue|bord1=1px #CCFF00 solid|bord2=1px black solid|width=300px}}


color2 = ''black''


Konstrukce Spoiler-in-spoiler mohou být použity, ale s určitými chybami... například:
align = ''center''
{{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}} }} }}


{{Template|Spoiler}}}}}}}}
|}<noinclude>


'''SYNTAX:'''
[[Category:Technické]]
<nowiki>
{{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}}
</nowiki>
</noinclude>
</noinclude>

Aktuální verze z 11. 8. 2013, 10:41