(Unterschied zwischen Seiten)
Keine Bearbeitungszusammenfassung Markierung: 2017-Quelltext-Bearbeitung |
Keine Bearbeitungszusammenfassung Markierung: 2017-Quelltext-Bearbeitung |
||
Zeile 1: | Zeile 1: | ||
<includeonly><templatestyles src="Hinweisbox/styles.css" /><div class="hw-messagebox notification-{{{boxtype}}} {{#switch: {{{icon}}}|yes=icon|ja=icon|}}" {{#if:{{{bgcolor|}}}|style="background:{{{bgcolor}}}"|}}>{{#switch: {{{boxtype}}}|background|Hintergrund=|<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>|#default=}}}}{{{Note text}}}</div></includeonly> | |||
<noinclude> | |||
Kopiervorlage: | |||
<pre> | |||
{{Hinweisbox|boxtype = |Note text =| bgcolor =}} | |||
</pre> | |||
<templatedata> | |||
{ | { | ||
"params": { | |||
"Note text": { | |||
"required": true, | |||
"label": { | |||
"de": "Text" | |||
} | |||
}, | |||
"boxtype": { | |||
"example": { | |||
"en": "note, tip, warning, important, example, neutral", | |||
"de": "Hinweis, Tipp, Wichtig, Warnung, Beispiel, Neutral" | |||
}, | |||
"type": "string", | |||
"default": {}, | |||
"required": true, | |||
"label": { | |||
"de": "Art von Box", | |||
"en": "Type of box" | |||
}, | |||
"description": { | |||
"en": "note, tip, warning, important, example, neutral", | |||
"de": "Hinweis, Tipp, Wichtig, Warnung, Beispiel, Neutral" | |||
} | |||
}, | |||
"bgcolor": { | |||
"label": { | |||
"de": "Hintergrundfarbe", | |||
"en": "Background color" | |||
}, | |||
"description": { | |||
"en": "Background color for neutral box in hex-format (#ececec)", | |||
"de": "Hintergrundfarbe für neutrale Box in Hex-format (#ececec)" | |||
}, | |||
"type": "string", | |||
"example": "#ececec", | |||
"suggested": true | |||
}, | |||
"icon": { | |||
"label": { | |||
"en": "Show icon", | |||
"de": "Symbol anzeigen" | |||
}, | |||
"description": { | |||
"en": "Shows icon before the label", | |||
"de": "Zeigt ein passendes Symbol " | |||
}, | |||
"example": { | |||
"en": "yes, no", | |||
"de": "ja, nein" | |||
}, | |||
"suggested": true | |||
} | |||
}, | |||
"description": { | |||
"de": "Infobox für Hinweise, Warnungen, Tipps, etc.", | |||
"en": "Infobox for notes, warnings, tips, etc." | |||
}, | |||
"paramOrder": [ | |||
"boxtype", | |||
"icon", | |||
"Note text", | |||
"bgcolor" | |||
] | |||
} | } | ||
</templatedata> | |||
</noinclude> |
Version vom 13. Dezember 2021, 17:59 Uhr
Kopiervorlage:
{{Hinweisbox|boxtype = |Note text =| bgcolor =}}