Changes

Jump to: navigation, search

Template:Spoiler

608 bytes added, 08:00, 5 October 2014
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|
<text>Sarina's clothes are not outside, but inside the [[Boarded up Basement]] dungeon.
}}
</pre>
Use this template to add a A more complex spoiler , we use definition lists because '''sectiona table can not be included inside it''' to a page (for inline text use [[Template:Hint]] instead). I made this template to replace the tag provided by the <nowikipre><spoiler></nowiki> extension, because for some reason it seems to bypass some {{Spoiler|; Utility: ''Word of the MediaWiki formattingPower: Cure Bovinity'' ... This version uses the same Javascript code, but doesn't rely on the backend php code extension for the spoiler tag, so <strike>the content of the spoiler is treated as standard MediaWiki formatting</strike>Speaking this word causes you to stop being a cow if you are one.; Teleports<span style="color:red">Actually, this still doesn't allow talbes inside the spoiler'Word of Power: Teleport to Crypt'' ... Oh well, I guess we have a little more freedom Speaking this word teleports you to style the button or make it into an image and whatnotcrypt beneath the town of Serbule.}}</spanpre>
[[Category:Formatting templates|Spoiler]]
</noinclude>
2,804
edits

Navigation menu