No edit summary Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
<includeonly><templatestyles src="Messagebox/styles.css" /><div class="hw-messagebox notification-{{{boxtype}}} {{#switch: {{{icon}}}|yes=icon|ja=icon}}" {{#if:{{{bgcolor|}}}|style="background:{{{bgcolor}}}"|}}><span class="boxlabel">{{#switch: {{{boxtype}}} | note = Note: | Hinweis = Hinweis: | tip = Tip: | Tipp = Tipp: | warning = Warning! | Warnung = Achtung! | example = Example: | Beispiel = Beispiel: | important = Important! | Wichtig = Wichtig! | neutral = | Neutral = }}</span>{{{Note text}}}</div></includeonly> | <includeonly><templatestyles src="Messagebox/styles.css" /><div class="hw-messagebox notification-{{{boxtype}}} {{#switch: {{{icon}}}|yes=icon|ja=icon}}" {{#if:{{{bgcolor|}}}|style="background:{{{bgcolor}}}"|}}><span class="boxlabel">{{#switch: {{{boxtype}}} | note = Note: | Hinweis = Hinweis: | Hint = Hint: | tip = Tip: | Tipp = Tipp: | warning = Warning! | Warnung = Achtung! | example = Example: | Beispiel = Beispiel: | important = Important! | Wichtig = Wichtig! | neutral = | Neutral = }}</span>{{{Note text}}}</div></includeonly> | ||
<noinclude> | <noinclude> | ||
Kopiervorlage: | Kopiervorlage: | ||
Line 20: | Line 20: | ||
}, | }, | ||
"type": "string", | "type": "string", | ||
"default": | "default": "Hint", | ||
"required": true, | "required": true, | ||
"label": { | "label": { |
Latest revision as of 16:14, 3 August 2023
Kopiervorlage:
{{Messagebox|boxtype = |Note text =| bgcolor =}}
Infobox for notes, warnings, tips, etc.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Type of box | boxtype | note, tip, warning, important, example, neutral
| String | required |
Show icon | icon | Shows icon before the label
| Unknown | suggested |
Note text | Note text | no description | Unknown | required |
Background color | bgcolor | Background color for neutral box in hex-format (#ececec)
| String | suggested |