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.
Parameter | 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! | Hinweis = Hinweis: | tip = Tipp: | Tipp = Tipp: | warning = Achtung: | Warnung = Achtung: | example = Beispiel: | Beispiel = Beispiel: | important = Wichtig! | Wichtig = 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 4: | Zeile 4: | ||
{{#switch: {{{boxtype}}} | {{#switch: {{{boxtype}}} | ||
| note = Hinweis: | | note = Hinweis: | ||
+ | | Hinweis = Hinweis: | ||
| tip = Tipp: | | tip = Tipp: | ||
+ | | Tipp = Tipp: | ||
| warning = Achtung: | | warning = Achtung: | ||
+ | | Warnung = Achtung: | ||
| example = Beispiel: | | example = Beispiel: | ||
+ | | Beispiel = Beispiel: | ||
| important = Wichtig! | | important = Wichtig! | ||
+ | | Wichtig = Wichtig! | ||
| backgroundbox = | | backgroundbox = | ||
| #default = Hinweis: | | #default = Hinweis: |