From WikiTemp, the GBAtemp wiki
m
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="collapsible collapsed" style="width:{{{w|50%}}}; background:{{{bc|#FAFAFA}}}; border:1px solid #006"
+
{| class="mw-collapsible mw-collapsed" data-collapsetext="Hide" data-expandtext="Show" style="width:{{{width|50%}}}; background:{{{background|#FAFAFA}}}; border:1px solid {{{border|#006}}}"
!style="background:{{{fc|#E9E9E9}}}"| {{{title|Warning: Spoiler Inside}}}
+
!style="background:{{{foreground|#E9E9E9}}}; padding:3px; text-align: left;"| {{{title|Warning: Spoiler Inside}}}
 
|-
 
|-
| {{{1}}}
+
|style="padding:3px;"|{{{1}}}
|}
+
|}<noinclude>
  
<noinclude>
+
{{Documentation}}
==Documentation==
+
[[Category:Templates]]</noinclude>
 
+
===General Info===
+
This template allows you to add Spoiler tags in Wiki pages. Note that the contents will only be hidden once the page is fully loaded.
+
 
+
===Usage===
+
Basic version:
+
:<pre>{{Spoiler|Contents of spoiler}}</pre>
+
Advanced options:
+
* w - Change the width
+
* fc - Change the color of the Title box
+
* bc - Change color of contents
+
* title - Change the title
+
Example:
+
:<pre>{{Spoiler|Contents|w=60%|fc=#678|bc=#123|title=Hidden}}</pre>
+
 
+
===Browser Compatibility===
+
This template may not work for Chrome Beta (the contents will not be hidden).
+
 
+
__NOTOC__<!--Prevent TOC creation --> </noinclude>
+

Latest revision as of 19:36, 21 September 2015

Warning: Spoiler Inside
{{{1}}}
↑ Template Documentation ↓ [EditReload]

This template allows you to add Spoiler tags in Wiki pages. Note that the contents will only be hidden once the page is fully loaded.

Usage

Basic version:

{{Spoiler|Contents of spoiler}}

Advanced options:

  • width - Change the width
  • foreground - Change the color of the Title box
  • background - Change color of contents
  • title - Change the title

Example:

{{Spoiler|Contents|width=60%|foreground=#ABC|background=#123|title=Hidden}}

Result:

Hidden
Contents

Browser Compatibility

Javascript must be enabled for this template to work.

The above documentation was Transcluded from the /doc subpage