You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "Template:Box Note"
(Tag: 2017 source edit) |
(Tag: 2017 source edit) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <div class="infobox notification-{{{boxtype}}}"> | + | <templatestyles src="Template:Box_Note/styles.css" /> |
+ | <div class="infobox notification-{{{boxtype}}}" | ||
+ | {{#if:{{{bgcolor|}}}|style="background:{{{bgcolor}}}"|}}> | ||
+ | <span class="boxlabel"> | ||
{{#switch: {{{boxtype}}} | {{#switch: {{{boxtype}}} | ||
− | + | | note = Hinweis: | |
− | + | | tip = Tipp: | |
− | + | | warning = Achtung: | |
− | + | | example = Beispiel: | |
− | + | | important = Wichtig! | |
− | + | | backgroundbox = | |
− | + | | #default = Hinweis: | |
− | + | }} | |
</span>{{{Note text}}} | </span>{{{Note text}}} | ||
</div> | </div> | ||
+ | <noinclude> | ||
+ | Kopiervorlage: | ||
+ | <pre> | ||
+ | {{Box_Note|Note text =|bgcolor =}} | ||
+ | </pre> | ||
+ | <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> | ||
+ | </noinclude> |
Latest revision as of 14:24, 9 September 2020
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>