Jump to content

Template:Note: Difference between revisions

From SA Docs
No edit summary
No edit summary
Line 1: Line 1:
<onlyinclude>
<div style="margin: 15px; background-color: #202122; border: 1px solid #404244; padding: 10px; vertical-align:middle">
<div style="margin: 15px; background-color: #202122; border: 1px solid #404244; padding: 10px; vertical-align:middle">
{{#switch: {{{type|}}}
{{#switch: {{{type|}}}
     |info=[[File:OOjs_UI_icon_info-progressive.svg|18px]]
     |info=[[File:OOjs_UI_icon_info_big-invert.svg|40px]]
     |=[[File:OOjs_UI_icon_info-progressive.svg|18px]]
    |help=[[File:OOjs_UI_icon_help-ltr-progressive.svg|40px]]
}}|{{{text}}}
    |warn=[[File:OOjs_UI_icon_alert-yellow.svg|40px]]
    |error=[[File:OOjs_UI_icon_close-ltr-destructive.svg|40px]]
     |idea=[[File:OOjs_UI_icon_bulb-progressive.svg|40px]]
    |=[[File:OOjs_UI_icon_info_big-invert.svg|40px]]
}}  
{{{text}}}
</div>
</div>
</onlyinclude>
Usage: <pre>{{Note|type=warn|text=my cool note}}</pre>
Renders As: {{Note|text=my cool note|warn}}

Revision as of 22:44, 7 October 2025

{{{text}}}


Usage:

{{Note|type=warn|text=my cool note}}

Renders As:

my cool note