Template:Spoiler warning: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
No edit summary
(Make it an actual warning (orange) in terms of style.)
 
(31 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<div id="mw-content-text" class="mw-body-content"><div id="wikiPreview" class="ontop"><div class="previewnote"> <div class="warningbox"><p><strong>WARNING:</strong></span>
<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|}}}
</p></div></div>
| 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=


This can be used as "warnings" (like, to inform readers of incoming spoilers). This template is not the most optimal one, but it's the one I could create quickly. If anyone can code a better one, edit this. Click "edit" on this page to see the source code and copy-paste it wherever you need it or just call the template.
<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}}