Difference between revisions of "Template:Spoiler/doc"
From WikiTemp, the GBAtemp wiki
Line 13: | Line 13: | ||
Example: | Example: | ||
− | :<pre>{{Spoiler|Contents| | + | :<pre>{{Spoiler|Contents|width=60%|foreground=#ABC|background=#123|title=Hidden}}</pre> |
+ | Result: | ||
+ | {{Spoiler|Contents|width=60%|foreground=#ABC|background=#123|title=Hidden}} | ||
===Browser Compatibility=== | ===Browser Compatibility=== | ||
Javascript must be enabled for this template to work. | Javascript must be enabled for this template to work. |
Latest revision as of 19:38, 21 September 2015
This is the documentation page of Template:Spoiler. Please add the documentation for this Template below. |
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.