Zuletzt bearbeitet vor einem Jahr
von Margit

Vorlage:Hinweisbox: Unterschied zwischen den Versionen

K (1 Version importiert)
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}}}"|}}><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>{{{Note text}}}</div></includeonly>
<includeonly><templatestyles src="Textbox/styles.css" />
<div class="cd-textbox cd-textbox-{{{boxtype}}}>
<div class="icon-col {{#switch: {{{icon}}}|yes=icon|ja=icon}}"></div>
<div class="text-col">
<span class="boxheader">{{{header}}}</span>
<span class="boxtext>{{{text}}}</span>
</div>
</div></includeonly>
<noinclude>
<noinclude>
Kopiervorlage:
Kopiervorlage:
<pre>
<pre>
{{Hinweisbox|boxtype = |Note text =| bgcolor =}}
{{Textbox|boxtype = |icon=|header =| text =}}
</pre>
</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>
</noinclude>

Version vom 13. April 2023, 10:14 Uhr


Kopiervorlage:

{{Textbox|boxtype = |icon=|header =| text =}}