Template:Spoiler: Difference between revisions

From Wiki Grepolis EN
Jump to navigation
No edit summary
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 40: Line 40:
{{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}}
{{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}}


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


Spoiler-in-spoiler construction may be used, but with some bugs... for example:
Spoiler-in-spoiler construction may be used, but with some bugs... for example:
{{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}} }} }}
Much love to our Russian wiki friends for this new toy to play with :)
'''SYNTAX:'''
<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>
[[Category:Template]]
</noinclude>
</noinclude>

Latest revision as of 13:41, 27 December 2011

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

Manual

In order that would implement a template to a page write


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



Spoiler-in-spoiler construction may be used, but with some bugs... for example:

|}



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