Jump to content

Template:Note: Difference between revisions

From SA Docs
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="margin: 15px; background-color: #202122; border: 1px solid #404244; padding: 10px; vertical-align:middle">
<onlyinclude>
{{#switch: {{{type|}}}
<div style="margin:15px">
    |info=[[File:OOjs_UI_icon_info-progressive.svg|18px]]
  {{#switch: {{{type|}}}
    |=[[File:OOjs_UI_icon_info-progressive.svg|18px]]
        |info=[[File:OOjs_UI_icon_info_big-invert.svg|40px]]
}}|{{{text}}}
        |help=[[File:OOjs_UI_icon_help-ltr-progressive.svg|40px]]
        |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>
{{Documentation|header=Template Usage|content=
Usage: <pre>{{Note|text=my cool note|type=warn}}</pre>
Renders As: {{Note|text=my cool note|type=warn}}
Available types:
Info: [[File:OOjs_UI_icon_info_big-invert.svg|40px]]
Help: [[File:OOjs_UI_icon_help-ltr-progressive.svg|40px]]
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]]
}}

Latest revision as of 00:43, 8 October 2025

  {{{text}}}


Template Usage

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

Renders As:

  my cool note


Available types:

Info:

Help:

Warn:

Error:

Idea: