Template:SpoilerBox: Difference between revisions

From Baldur's Gate 3 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="{{#if:{{{nograd|}}} | background:transparent; | 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="{{#if:{{{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:Concentration Icons.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="{{#if:{{{nograd|}}} | background:transparent; | background:#232323; border-radius:10px; padding: 15px;}}">{{{1}}}</div>
<div class="mw-collapsible-content" style="{{#if:{{{nograd|}}} | background:transparent; | background:#232323; border-radius:10px; padding: 15px;}}">{{{1}}}</div>
</div></includeonly><noinclude>
</div></includeonly><noinclude>

Revision as of 14:14, 28 August 2023

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

Result:

Concentration Icons.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=1|This text will be hidden.}}

Result:

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

This text will be hidden.