From WikiTemp, the GBAtemp wiki
m
Line 1: Line 1:
 
{| class="collapsible collapsed" style="width:{{{w|50%}}}; background:{{{bc|#FAFAFA}}}; border:1px solid #006"
 
{| class="collapsible collapsed" style="width:{{{w|50%}}}; background:{{{bc|#FAFAFA}}}; border:1px solid #006"
!style="background:{{{fc|#E9E9E9}}}"| {{{title|Warning: Spoiler Inside}}}
+
!style="background:{{{fc|#E9E9E9}}}; padding:3px;"| {{{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>
+

Revision as of 20:18, 27 December 2010

↑ 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