Vorlage:Box

Aus EGIS Wiki
Version vom 5. Juli 2021, 12:44 Uhr von imported>DrBlackError (Die Seite wurde neu angelegt: „<div class="infobox notification-{{{boxtype}}}" {{#if:{{{bgcolor|}}}|style="background:{{{bgcolor}}}"|}}> <span class="boxlabel"> {{#switch: {{{boxtype}}} |…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

{{#switch: {{{boxtype}}}

| note = Hinweis:
| tip = Tipp:
| warning = Achtung:
| example = Beispiel:
| important = Wichtig!
| backgroundbox = 
| #default = Hinweis:

}} {{{Note text}}}

Kopiervorlage:

{{Box_Note|Note text =|bgcolor =}}

<templatedata> { "params": { "Note text": {}, "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>