Template:SpoilerBox: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
No edit summary
m (use vars for colors)
 
(19 intermediate revisions by 3 users not shown)
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 {{#switch: {{{unhide|}}} | 1 = mw-expanded | yes = mw-expanded | mw-collapsed}}" data-expandtext="Show Spoilers" data-collapsetext="Hide Spoilers" style="{{#if:{{{nograd|}}} | background:transparent; | background: linear-gradient(to right, var(--bg3wiki-spoiler-warning-start), var(--bg3wiki-spoiler-warning-end), var(--bg3wiki-spoiler-warning-end), var(--bg3wiki-spoiler-warning-end)); 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:{{#switch: {{{act|}}}
<div class="mw-collapsible-content" style="background:#232323; border-radius:10px; padding: 15px;">{{{1}}}</div>
| 1 = Ico_knownSpells_lvl_01.png
</div></includeonly><noinclude>
| 2 = Ico_knownSpells_lvl_02.png
| 3 = Ico_knownSpells_lvl_03.png
|Concentration Icons.png}}|24px|link=]] ''' {{color|#ebb73f|{{#switch: {{{act|}}} | 1 = Act 1 Spoilers!| 2 = Act 2 Spoilers!| 3 = Act 3 Spoilers!|Spoiler warning!}}}} This section reveals {{#if:{{{custom|}}} | {{{custom}}} |details about the story of ''Baldur's Gate 3''.}}'''
<div class="mw-collapsible-content noexcerpt" style="{{#if:{{{nograd|}}} | background:transparent; | background:#232323; border-radius:10px; padding: 15px;}}">{{{1}}}</div>
</div></includeonly><noinclude>:''Be sure to consult [[Help:Spoiler Policy]] before using this template.''<br>
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.}}
When a character reaches a certain level in a class they must select a subclass. The level that this choice is made at varies from class to class.


Subclasses allow characters to further specialize their character by imparting powerful new abilities focused around enhancing the central theme of the subclass. Choosing a subclass does not cause a character to stop gaining the normal benefits of a class when advancing in level - the benefits of a subclass are on top of the normal class abilities.
If you don't want the gradient use nograd:
}}
 
Usage: {{code|<nowiki>{{SpoilerBox|nograd=1|This text will be hidden.}}</nowiki>}}
 
Result: {{SpoilerBox|nograd=1|This text will be hidden.}}
 
Per Act spoilers: {{code|<nowiki>{{SpoilerBox|act=2|This text will be hidden.}}</nowiki>}}
 
Result: {{SpoilerBox|act=2|This text will be hidden.}}
 
It also supports custom text: {{code|<nowiki>{{SpoilerBox|custom=the dialogue options for this character.|This text will be hidden.}}</nowiki>}}
 
Result: {{SpoilerBox|custom=the dialogue options for this character.|This text will be hidden.}}
 
[[Category:Spoiler templates]]
</noinclude>
</noinclude>

Latest revision as of 21:47, 14 November 2023

Be sure to consult Help:Spoiler Policy before using this template.

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.

Per Act spoilers: {{SpoilerBox|act=2|This text will be hidden.}}

Result:

Ico knownSpells lvl 02.png Act 2 Spoilers! This section reveals details about the story of Baldur's Gate 3.

This text will be hidden.

It also supports custom text: {{SpoilerBox|custom=the dialogue options for this character.|This text will be hidden.}}

Result:

Concentration Icons.png Spoiler warning! This section reveals the dialogue options for this character.

This text will be hidden.