Difference between revisions of "Template:Messagebox"

m ((username removed) (log details removed))
Tag: 2017 source edit
 
Line 1: Line 1:
<includeonly><templatestyles src="Hinweisbox/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: | 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:
 
<pre>
 
<pre>
{{Hinweisbox|boxtype = |Note text =| bgcolor =}}
+
{{Messagebox|boxtype = |Note text =| bgcolor =}}
 
</pre>
 
</pre>
 
<templatedata>
 
<templatedata>

Latest revision as of 12:21, 20 December 2021


Kopiervorlage:

{{Messagebox|boxtype = |Note text =| bgcolor =}}

Infobox for notes, warnings, tips, etc.

Template parameters

ParameterDescriptionTypeStatus
Type of boxboxtype

note, tip, warning, important, example, neutral

Example
note, tip, warning, important, example, neutral
Stringrequired
Show iconicon

Shows icon before the label

Example
yes, no
Unknownsuggested
Note textNote text

no description

Unknownrequired
Background colorbgcolor

Background color for neutral box in hex-format (#ececec)

Example
#ececec
Stringsuggested
No categories assignedEdit

Discussions