Πρότυπο:Spoiler: Διαφορά μεταξύ των αναθεωρήσεων

Από Wiki Grepolis GR
Jump to navigation
(Νέα σελίδα με '{|style="border-collapse:collapse;" class="collapsible collapsed" !width="{{{width}}}" style="background:{{{bckg1|#D0F0F0}}}; border:{{{bord1|1px solid #C0C0FF}}}; colo...')
 
Χωρίς σύνοψη επεξεργασίας
 
(4 ενδιάμεσες αναθεωρήσεις από τον ίδιο χρήστη δεν εμφανίζεται)
Γραμμή 1: Γραμμή 1:
{|style="border-collapse:collapse;" class="collapsible collapsed"
{|style="border-collapse:collapse;" class="collapsible expand"
!width="{{{width}}}" style="background:{{{bckg1|#D0F0F0}}}; border:{{{bord1|1px solid #C0C0FF}}}; color:{{{color1|black}}};"|{{{title|Spoiler}}}
!width="{{{width}}}" style="background:{{{bckg1|#D0F0F0}}}; border:{{{bord1|1px solid #C0C0FF}}}; color:{{{color1|black}}};"|{{{title|Spoiler}}}
|-
|-
Γραμμή 6: Γραμμή 6:
<noinclude>
<noinclude>
Spoilers use JavaScript code and if you wanna that its work in your wiki - you must copy text from [[Mediawiki:Common.js]] to analog of this page in your wiki. On this page describing JavaScript code, which you can use at all pages of your wiki...
Spoilers use JavaScript code and if you wanna that its work in your wiki - you must copy text from [[Mediawiki:Common.js]] to analog of this page in your wiki. On this page describing JavaScript code, which you can use at all pages of your wiki...
{|class="collapsible collapsed"
{|class="collapsible expand"
!Spoiler, realized on <nowiki><table class="collapsible"></nowiki>&nbsp;
!Spoiler, realized on <nowiki><table class="collapsible"></nowiki>&nbsp;
|-
|-
|<nowiki>{|class="collapsible collapsed"</nowiki><br/>
|<nowiki>{|class="collapsible expand"</nowiki><br/>
<nowiki>!Spoiler name</nowiki><br/>
<nowiki>!Spoiler name</nowiki><br/>
<nowiki>|-</nowiki><br/>
<nowiki>|-</nowiki><br/>
Γραμμή 15: Γραμμή 15:
<nowiki>|}</nowiki>
<nowiki>|}</nowiki>
|}
|}
<div class="NavFrame collapsed">
<div class="NavFrame expand
">
   <div class="NavHead">'''Spoiler, realized on <nowiki><div class="NavFrame"></nowiki>'''</div>
   <div class="NavHead">'''Spoiler, realized on <nowiki><div class="NavFrame"></nowiki>'''</div>
   <div class="NavContent">
   <div class="NavContent">
<nowiki><div class="NavFrame collapsed"></nowiki><br/>
<nowiki><div class="NavFrame expand"></nowiki><br/>
<nowiki><div class="NavHead"> Spoiler name </div></nowiki><br/>
<nowiki><div class="NavHead"> Spoiler name </div></nowiki><br/>
<nowiki><div class="NavContent"> text under spoiler </div></nowiki><br/>
<nowiki><div class="NavContent"> text under spoiler </div></nowiki><br/>

Τελευταία αναθεώρηση της 14:01, 25 Απριλίου 2016

Spoiler
no text

Spoilers use JavaScript code and if you wanna that its work in your wiki - you must copy text from Mediawiki:Common.js to analog of this page in your wiki. On this page describing JavaScript code, which you can use at all pages of your wiki...

Spoiler, realized on <table class="collapsible"> 
{|class="collapsible expand"

!Spoiler name
|-
|text under spoiler
|}

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 - Title of the spoiler
  • text - Text under the spoiler
  • bckg1 - Colour of the title
  • bckg2 - Colour of the background under the title
  • bord1 - Description of the boundaries of the title.
  • bord2 - Description of the window under the spoiler.
  • width - The width of the spoiler.

Example:

{{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
2 spoiler
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 with bug
{|style="border-collapse:collapse;" class="collapsible expand" Spoiler
something evil was happened :D

|}



Much love to our Russian wiki friends for this new toy to play with :)

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