Template:Spoiler warning: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(only add drop shadow for prereq icon)
(Make it an actual warning (orange) in terms of style.)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{hatnote|Be sure to consult [[Help:Spoiler Policy]] before using this template.}}<br>
<noinclude>{{hatnote|Be sure to consult [[Help:Spoiler Policy]] before using this template.}}</noinclude><onlyinclude>{{ambox|type=warning|image=[[File:Instinctive_Charm_Unaffected_Condition_Icon.webp|35px|link=]]|text={{#if: {{{act|}}} | }} {{strong|Spoiler warning}}: <span style="padding-left: 3px;">The following content {{#switch: {{{act|}}}  
</noinclude><div class="noexcerpt navigation-not-searchable bg3wiki-spoiler-warning {{#if:{{{nograd|}}}|bg3wiki-spoiler-warning-no-grad}}">[[File:{{#switch: {{{act|}}}
| 1 = contains {{em|unhidden spoilers}} for Act 1.
| 1 = Ico_knownSpells_lvl_01.png
| 2 = contains {{em|unhidden spoilers}} for Act 2.
| 2 = Ico_knownSpells_lvl_02.png
| 3 = contains {{em|unhidden spoilers}} for Act 3.
| 3 = Ico_knownSpells_lvl_03.png
|contains {{em|unhidden spoilers}}. Read at your own risk.}}| {{#if: {{{act|}}} |imageright}}=[[{{#switch: {{{act|}}} | 1 = File:Ico_knownSpells_lvl_01.png | 2 = File:Ico_knownSpells_lvl_02.png | 3 = File:Ico_knownSpells_lvl_03.png | none }}|24px|link={{#if:{{{act|}}}||{{!}}class=bg3wiki-lightmode-drop-shadow}}]]|small={{{small|}}}}}</onlyinclude><noinclude>{{documentation|content=
|Prerequisite Icon.png}}|24px|link={{#if:{{{act|}}}||{{!}}class=bg3wiki-lightmode-drop-shadow}}]] <strong class="emphasized">Spoiler warning:</strong></span> <span style="padding-left: 3px;">The following content {{#switch: {{{act|}}}  
 
| 1 = contains <strong class="emphasized">unhidden</strong> spoilers for Act 1.
<pre>{{SpoilerWarning|act = 2}}</pre>
| 2 = contains <strong class="emphasized">unhidden</strong> spoilers for Act 2.
| 3 = contains <strong class="emphasized">unhidden</strong> spoilers for Act 3.
|may contain story spoilers.}} Read at your own risk.</span></div><noinclude>
You can use {{InfoBlob|<nowiki>{{SpoilerWarning|act = 2}}</nowiki>}} for per-act spoiler warnings.


{{SpoilerWarning|act=2}}
{{SpoilerWarning|act=2}}


You can add {{InfoBlob|<nowiki>|nograd=1</nowiki>}} to remove gradient.
<pre>{{SpoilerWarning|act=2|small=left}}</pre>
 
{{SpoilerWarning|act=2|small=left}}


{{SpoilerWarning|nograd=1}}


[[Category:Spoiler templates]]
[[Category:Spoiler templates]]
</noinclude>
[[Category:Templates]]
[[Category:Message box templates]]
}}</noinclude>

Latest revision as of 16:40, 2 April 2024

Be sure to consult Help:Spoiler Policy before using this template.
Template documentation
{{SpoilerWarning|act = 2}}
{{SpoilerWarning|act=2|small=left}}