Template:SpoilerBox: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><div class="mw-collapsible mw-collapsed" data-expandtext="Show Spoilers" data-collapsetext="Hide Spoilers" style="background: linear-gradient(to right, #443E20, #232323, #232323, #232323); align-items:center; border-radius:10px; padding: 5px;">
<includeonly><div class="mw-collapsible mw-collapsed" data-expandtext="Show Spoilers" data-collapsetext="Hide Spoilers" style="{{#switch:{{{1|}}} | nograd = background:transparent; | background: linear-gradient(to right, #443E20, #232323, #232323, #232323); align-items:center; border-radius:10px; padding: 5px;}}">


[[File:Prerequisite Icon.png|32px|link=]] ''' {{color|#ebb73f|Spoiler warning!}} This section reveals details about the story of ''Baldur's Gate 3''.'''
[[File:Prerequisite Icon.png|32px|link=]] ''' {{color|#ebb73f|Spoiler warning!}} This section reveals details about the story of ''Baldur's Gate 3''.'''
<div class="mw-collapsible-content" style="background:#232323; border-radius:10px; padding: 15px;">{{{1}}}</div>
<div class="mw-collapsible-content" style="{{#switch:{{{1|}}} | nograd = background:transparent; | background:#232323; border-radius:10px; padding: 15px;}}">{{{1}}}</div>
</div></includeonly><noinclude>
</div></includeonly><noinclude>
Usage: {{code|<nowiki>{{SpoilerBox|This text will be hidden.}}</nowiki>}}
Usage: {{code|<nowiki>{{SpoilerBox|This text will be hidden.}}</nowiki>}}


Result: {{SpoilerBox|This text will be hidden.}}
Result: {{SpoilerBox|This text will be hidden.}}
If you don't want the gradient use nograd:
Usage: {{code|<nowiki>{{SpoilerBox|nograd|This text will be hidden.}}</nowiki>}}
Result: {{SpoilerBox|nograd|This text will be hidden.}}
</noinclude>
</noinclude>

Revision as of 10:30, 28 August 2023

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

Result:

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

This text will be hidden.

If you don't want the gradient use nograd:

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

Result:

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

nograd