Template:Spoiler warning: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(Spoiler warnings now are exempt from popup previews and search results)
(Make it an actual warning (orange) in terms of style.)
 
(21 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div class="noexcerpt navigation-not-searchable" style="background: linear-gradient(to right, #443E20, #232323); align-items:center; border-radius:10px; padding: 5px; display: flex; flex-wrap: wrap;">[[File:Prerequisite Icon.png|32px|link=]] {{color|#ebb73f|'''Spoiler warning:'''}} <span style="padding-left: 3px;">The following content may contain story spoilers. Read at your own risk.</span></div>
<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|}}}
| 1 = contains {{em|unhidden spoilers}} for Act 1.
| 2 = contains {{em|unhidden spoilers}} for Act 2.
| 3 = contains {{em|unhidden spoilers}} for Act 3.
|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=
 
<pre>{{SpoilerWarning|act = 2}}</pre>
 
{{SpoilerWarning|act=2}}
 
<pre>{{SpoilerWarning|act=2|small=left}}</pre>
 
{{SpoilerWarning|act=2|small=left}}
 
 
[[Category:Spoiler templates]]
[[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}}