Jump to content

Template:Note: Difference between revisions

From SA Docs
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude>
<onlyinclude>
<div style="margin: 15px; background-color: #202122; border: 1px solid #404244; padding: 10px; vertical-align:middle">
<div style="margin:15px">
{{#switch: {{{type|}}}
  {{#switch: {{{type|}}}
    |info=[[File:OOjs_UI_icon_info_big-invert.svg|40px]]
        |info=[[File:OOjs_UI_icon_info_big-invert.svg|40px]]
    |help=[[File:OOjs_UI_icon_help-ltr-progressive.svg|40px]]
        |help=[[File:OOjs_UI_icon_help-ltr-progressive.svg|40px]]
    |warn=[[File:OOjs_UI_icon_alert-yellow.svg|40px]]
        |warn=[[File:OOjs_UI_icon_alert-yellow.svg|40px]]
    |error=[[File:OOjs_UI_icon_close-ltr-destructive.svg|40px]]
        |error=[[File:OOjs_UI_icon_close-ltr-destructive.svg|40px]]
    |idea=[[File:OOjs_UI_icon_bulb-progressive.svg|40px]]
        |idea=[[File:OOjs_UI_icon_bulb-progressive.svg|40px]]
    |=[[File:OOjs_UI_icon_info_big-invert.svg|40px]]
        |=[[File:OOjs_UI_icon_info_big-invert.svg|40px]]
}}  
    }} {{{text}}}
{{{text}}}
</div>
</div>
</onlyinclude>
</onlyinclude>


Usage: <pre>{{Note|type=warn|text=my cool note}}</pre>
{{Documentation|header=Template Usage|content=
Renders As: {{Note|text=my cool note|warn}}
 
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: