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)
(This one needs more work than the others probably)
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=notice|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
|may contain story 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}}]]}}</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.
| 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.
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.
{{SpoilerWarning|nograd=1}}


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

Revision as of 11:33, 29 December 2023

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

You can use {{SpoilerWarning|act = 2}} for per-act spoiler warnings.