Template:Spoiler: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Added default messages when parameters are not specified, documentation) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<div class="spoiler-container"> | <div class="spoiler-container"> | ||
<div class="button">{{{button-text}}}</div> | <div class="button">{{{button-text|No button text provided}}}</div> | ||
<div class="text">{{{message}}}</div> | <div class="text hidden">{{{message|No spoiler text provided}}}</div> | ||
</div> | </div> | ||
<noinclude>{{Documentation}}</noinclude> |
Latest revision as of 22:36, 6 September 2016
[View] [Edit] [Page history]
DocumentationThis is a template to be used to hide spoilers.
Syntax
{{Spoiler|button-text=Click me|message=spoiler here}}
The above generates:
Parameters
- button-text
- The text to be displayed on the button.
- message
- The actual spoiler itself.