Template:Spoiler/doc
⧼vector-jumptonavigation⧽
⧼vector-jumptosearch⧽
| 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.