Difference between revisions of "Template:Spoiler/doc"
From WikiTemp, the GBAtemp wiki
m (New page: <noinclude>{{Docpage}}</noinclude><!-- Add Documentation below this line --> This template allows you to add Spoiler tags in Wiki pages. Note that the contents will only be hidden once the...) |
|||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
Advanced options: | Advanced options: | ||
− | * | + | * width - Change the width |
− | * | + | * foreground - Change the color of the Title box |
− | * | + | * background - Change color of contents |
* title - Change the title | * title - Change the title | ||
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.