Template:SpoilerBox: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
m (Taylan moved page Template:Spoilers to Template:SpoilerBox without leaving a redirect)
No edit summary
Line 1: Line 1:
<includeonly>{{SpoilerWarning}}
<includeonly><div class="toccolours mw-collapsible mw-collapsed" data-expandtext="Show Spoilers" data-collapsetext="Hide Spoilers">
'''Spoiler warning!  This section reveals details about the story of ''Baldur's Gate 3''.'''
<div class="mw-collapsible-content">{{{1}}}</div>
</div></includeonly><noinclude>
Usage: {{code|<nowiki>{{SpoilerBox|This text will be hidden.}}</nowiki>}}


<spoiler>{{{1}}}</spoiler></includeonly><noinclude>
Result: {{SpoilerBox|This text will be hidden.}}
Use this for spoilers, like so:
 
Usage: {{code|<nowiki>{{spoilers|This text will be hidden.}}</nowiki>}}
 
Result: {{spoilers|This text will be hidden.}}
</noinclude>
</noinclude>

Revision as of 23:50, 7 February 2023

Usage: {{SpoilerBox|This text will be hidden.}}

Result:

Spoiler warning! This section reveals details about the story of Baldur's Gate 3.

This text will be hidden.