No edit summary Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
| Line 1: | Line 1: | ||
<templatestyles src="Template:Box_Note/styles.css" /> | |||
<div class="infobox notification-{{{boxtype}}}" | <div class="infobox notification-{{{boxtype}}}" | ||
{{#if:{{{bgcolor|}}}|style="background:{{{bgcolor}}}"|}}> | {{#if:{{{bgcolor|}}}|style="background:{{{bgcolor}}}"|}}> | ||
| Line 20: | Line 21: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
"Note text": {}, | "Note text": {}, | ||
"boxtype": { | "boxtype": { | ||
"description": "Mögliche Werte: note, tip, warning, important, example, backgroundbox", | "description": "Mögliche Werte: note, tip, warning, important, example, backgroundbox", | ||
"example": "note", | "example": "note", | ||
"type": "string", | "type": "string", | ||
"default": "note", | "default": "note", | ||
"required": true | "required": true | ||
}, | }, | ||
"bgcolor": { | "bgcolor": { | ||
"label": "bgcolor", | "label": "bgcolor", | ||
"description": "Hintergrundfarbe der Box im Hex-format (z.B. #ececec)", | "description": "Hintergrundfarbe der Box im Hex-format (z.B. #ececec)", | ||
"type": "string" | "type": "string" | ||
} | } | ||
}, | }, | ||
"description": "Erstellt eine Infobox für Hinweise, Warnungen, Tipps, etc.", | "description": "Erstellt eine Infobox für Hinweise, Warnungen, Tipps, etc.", | ||
"paramOrder": [ | "paramOrder": [ | ||
"boxtype", | "boxtype", | ||
"Note text", | "Note text", | ||
"bgcolor" | "bgcolor" | ||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 14:24, 9 September 2020
Hinweis: {{{Note text}}}
Kopiervorlage:
{{Box_Note|Note text =|bgcolor =}}
Erstellt eine Infobox für Hinweise, Warnungen, Tipps, etc.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| boxtype | boxtype | Mögliche Werte: note, tip, warning, important, example, backgroundbox
| String | required |
| Note text | Note text | no description | Unknown | optional |
| bgcolor | bgcolor | Hintergrundfarbe der Box im Hex-format (z.B. #ececec) | String | optional |