Changes

Jump to: navigation, search

Template:Spoiler

1,131 bytes added, 13:58, 21 September 2020
m
no edit summary
<div class="spoilers"> <div class="spoilersmw-collapsible mw-buttoncollapsed"> <div class="spoilers-show">SHOWWWW</div>'''{{{1|Spoiler!}}}''' <div class="spoilersmw-hide">HIDDDDE</div> </div> <div class="spoilerscollapsible-bodycontent" style="displaypadding-left:none1em;">TESTING A SPOILER  {{{2|Spoiler text.}}}</div>
</div>
<noinclude>
==Description==
Use this template to add a spoiler box to a page (Also see [[Template:Hint]]).
<!-- 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 may or may not be formatted inside the template.</span> Suggest using definition lists as a workaround.== Description 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|Sarina's clothes are not outside, but inside the [[Boarded up Basement]] dungeon.}}This is an example of a spoiler used for a quest reward.
<pre>
{{Spoiler|<text>Reward for Contacting Melandria's Brother|Reward: {{Item|Pumpkin}} x1, 300 Councils, 50 Favor}}
</pre>
Use this template to add {{Spoiler|Reward for Contacting Melandria's Brother|{{Quote|Thank you so much for your help! Here, have a spoiler section to a page (WIP)pumpkin.}} === Parameters ===None.Reward: {{Item|Pumpkin}} x1, 300 Councils, 50 Favor}}
[[Category:Formatting templates|Spoiler]]
</noinclude>

Navigation menu