Sie betrachten eine alte Version der Seite. Zur neuesten Version gehen.
Vorlage:Box Note: Unterschied zwischen den Versionen
(Markierung: 2017-Quelltext-Bearbeitung) |
(Markierung: 2017-Quelltext-Bearbeitung) |
Hinweis: {{{Note text}}}
Kopiervorlage:
{{Box_Note|Note text =|bgcolor =}}
Erstellt eine Infobox für Hinweise, Warnungen, Tipps, etc.
optionalParameter | Beschreibung | Typ | Status | |
---|---|---|---|---|
Boxtype | boxtype |
Mögliche Werte: note, tip, warning, important, example, backgroundbox
|
Zeichenfolge | erforderlich |
Note text | Note text |
keine Beschreibung
|
Unbekannt | erforderlich |
bgcolor | bgcolor |
Hintergrundfarbe der Box im Hex-format (z.B. #ececec)
|
Zeichenfolge | optional |
<div class="infobox notification-{{{boxtype}}}" {{#if:{{{bgcolor|}}}|style="background:{{{bgcolor}}}"|}}> <span class="boxlabel"> {{#switch: {{{boxtype}}} | note = Hinweis: | tip = Tipp: | warning = Achtung: | example = Beispiel: | important = Wichtig! | backgroundbox = | #default = Hinweis: }} </span>{{{Note text}}} </div> <noinclude> Kopiervorlage: <pre> {{Box_Note|Note text =|bgcolor =}} </pre> <templatedata> { "params": { "Note text": { "required": true }, "boxtype": { "description": "Mögliche Werte: note, tip, warning, important, example, backgroundbox", "example": "note", "type": "string", "default": "note", "required": true }, "bgcolor": { "label": "bgcolor", "description": "Hintergrundfarbe der Box im Hex-format (z.B. #ececec)", "type": "string" } }, "description": "Erstellt eine Infobox für Hinweise, Warnungen, Tipps, etc.", "paramOrder": [ "boxtype", "Note text", "bgcolor" ] } </templatedata> </noinclude>
Zeile 21: | Zeile 21: | ||
{ | { | ||
"params": { | "params": { | ||
− | "Note text": {}, | + | "Note text": { |
+ | "required": true | ||
+ | }, | ||
"boxtype": { | "boxtype": { | ||
"description": "Mögliche Werte: note, tip, warning, important, example, backgroundbox", | "description": "Mögliche Werte: note, tip, warning, important, example, backgroundbox", |