Changes

Jump to: navigation, search

Template:Spoiler

453 bytes removed, 13:58, 21 September 2020
m
no edit summary
<div class="spoilers ggmw-spoiler"><span class="spoilerscollapsible mw-buttoncollapsed"><span class="spoilers-show" style="display:inline"><strong>'''{{{21|Spoiler!}}}</strong></span>'''<span div class="spoilersmw-collapsible-hidecontent" style="display:none">Hide</span></span><div class="spoilerspadding-body" style="displayleft:none1em;">{{{12|Spoiler text.}}}</div>
</div>
</div><noinclude> 
==Description==
Use this template to add a spoiler '''section''' box to a page (for inline text use Also see [[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 behavior down the line if we want to.
<!-- 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 behavior down the line if we want to. -->
This template allows for formatting of spoiler content.
====Known issues====
* <span style="color:red">Tables can may or may 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.== Alternate method ==While the examples suggested in this template work in most areas, the Template tag works if you wish to display alternative text than "Spoiler"<spoiler show="Text for the spoiler box goes here">Type things here. Quotes and Tables do not display correctly.</spoiler> 
==Examples==
A basic spoiler like this may be better replaced with [[Template:Hint]]:
<pre>
{{Spoiler|Spoiler|
Sarina's clothes are not outside, but inside the [[Boarded up Basement]] dungeon.
}}
</pre>
{{Spoiler|Spoiler|A more complex spoiler, we use definition lists because 'Sarina''a table can s clothes are not be included outside, but inside it''':the [[Boarded up Basement]] dungeon.}}This is an example of a spoiler used for a quest reward.
<pre>
{{Spoiler|; Utility: ''Word of Power: Cure Bovinity'Reward for Contacting Melandria' ... Speaking this word causes you to stop being a cow if you are one.; Teleportss Brother|Reward: ''Word of Power: Teleport to Crypt'' ... Speaking this word teleports you to the crypt beneath the town of Serbule.{{Item|Pumpkin}} x1, 300 Councils, 50 Favor}}
</pre>
{{Spoiler|Reward for Contacting Melandria's Brother|
{{Quote|Thank you so much for your help! Here, have a pumpkin.}}
Reward: {{Item|Pumpkin}} x1, 300 Councils, 50 Favor}}
[[Category:Formatting templates|Spoiler]]
</noinclude>

Navigation menu