2,804
edits
Changes
Tidying up Template documentation.
</div><noinclude>
== Description ==Use this template to add a spoiler '''section''' to a page (for inline text use [[Template:Hint]] instead). This template replaces the tag provided by the <nowiki><spoiler></nowiki> extension. Originally it was intended to allow using tables (which the extension doesn't) but it turned out the template doesn't allow for it either. Still, it is recommended to use this template as we have more freedom to restyle it or change its behaviour down the line if we want to. ====Known issues====* <span style="color:red">Tables can not be formatted inside the template.</span> Suggest using definition lists as a workaround.* Spoiler content shouldn't be too huge anyway. If you want to hide a long table of info in a page, consider adding a link to another page. ==Examples==A basic spoiler like this may be better replaced with [[Template:Hint]]:
<pre>
{{Spoiler|
}}
</pre>
[[Category:Formatting templates|Spoiler]]
</noinclude>