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

Revision as of 19:34, 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