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
TheFXexpert (talk | contribs) |
TheFXexpert (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<div class="spoiler-container"> | <div class="spoiler-container"> | ||
<span class="spoiler-text">Spoiler</span> | <span class="spoiler-text">Spoiler</span> | ||
− | <span class="mw-customtoggle-spoiler">Show</span> | + | <span class="spoiler-button mw-customtoggle-spoiler{{{id|}}}">Show</span> |
− | <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-spoiler"> | + | <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> | ||
Line 8: | Line 8: | ||
<noinclude> | <noinclude> | ||
==Documentation== | ==Documentation== | ||
− | <pre>{{spoiler|Any hidden | + | <pre>{{spoiler|Any hidden stuff you want.}}</pre> |
− | {{spoiler|Any hidden | + | {{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> | </noinclude> |
Latest revision as of 17:36, 24 March 2014
Spoiler
{{{1}}}
Documentation[edit]
{{spoiler|Any hidden stuff you want.}}
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:
{{spoiler|id=1|These spoilers will open separately.}}
{{spoiler|id=2|Unlike the ones above.}}
Spoiler
These spoilers will open separately.
Spoiler
Unlike the ones above.