Notice: We are aware that many of the Chewiki’s images are still broken. We promise: we will try our best to fix it, but we don't guarantee that the fix will be trivial.

Difference between revisions of "Template:Spoiler"

From Chewiki Archive - YouChew: 1% Funny, 99% Hot Gas
(Spoilers!)
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="spoiler-text">Spoiler</div>
+
<div class="spoiler-container">
<div class="mw-collapsible mw-collapsed" data-expandtext="Show" data-collapsetext="Hide">
+
<span class="spoiler-text">Spoiler</span>
&nbsp;
+
<span class="spoiler-button mw-customtoggle-spoiler{{{id|}}}">Show</span>
 +
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-spoiler{{{id|}}}">
 
<div class="mw-collapsible-content">{{{1}}}</div>
 
<div class="mw-collapsible-content">{{{1}}}</div>
 
</div>
 
</div>
 +
</div>
 +
<noinclude>
 +
==Documentation==
 +
<pre>{{spoiler|Any hidden stuff you want.}}</pre>
 +
{{spoiler|Any hidden stuff you want.}}
 +
 +
However, if you want multiple spoilers on a page, supply an unique id to each spoiler. All spoilers will be opened at once if they have the same id. If you don't want that, use the code below:
 +
<pre>{{spoiler|id=1|These spoilers will open separately.}}</pre>
 +
<pre>{{spoiler|id=2|Unlike the ones above.}}</pre>
 +
{{spoiler|id=1|These spoilers will open separately.}}
 +
{{spoiler|id=2|Unlike the ones above.}}
 +
</noinclude>

Latest revision as of 17:36, 24 March 2014

Spoiler Show

{{{1}}}

Documentation[edit]

{{spoiler|Any hidden stuff you want.}}

Spoiler Show

Any hidden stuff you want.


However, if you want multiple spoilers on a page, supply an unique id to each spoiler. All spoilers will be opened at once if they have the same id. If you don't want that, use the code below:

{{spoiler|id=1|These spoilers will open separately.}}
{{spoiler|id=2|Unlike the ones above.}}

Spoiler Show

These spoilers will open separately.

Spoiler Show

Unlike the ones above.