Template:Box Note: Difference between revisions

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" />
<templatestyles src="Template:Box_Note/styles.css" />
<includeonly><span class="boxlabel">
<includeonly><div class="infobox notification-{{{boxtype}}}"  
<div class="infobox notification-{{{boxtype}}}" {{#if:{{{bgcolor|}}}|style="background:{{{bgcolor}}}"|}}><span class="boxlabel">
{{#if:{{{bgcolor|}}}|style="background:{{{bgcolor}}}"|}}><span class="boxlabel">{{#switch: {{{boxtype}}}
  | note = Note:
  | note = Note:
  | tip = Tip:
  | tip = Tip:
Line 28: Line 28:
"bgcolor": {
"bgcolor": {
"label": "bgcolor",
"label": "bgcolor",
"description": "Hintergrundfarbe der Box im Hex-format (z.B. #ececec)",
"description": "Background color of the box in hex value (e.g, #ececec)",
"type": "string"
"type": "string"
}
}

Latest revision as of 09:01, 16 June 2020


Source code syntax:

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

Creates an info box

Template parameters

ParameterDescriptionTypeStatus
boxtypeboxtype

Poosible values: note, tip, warning, important, example, backgroundbox

Default
note
Example
note
Stringrequired
Note textNote text

no description

Unknownoptional
bgcolorbgcolor

Background color of the box in hex value (e.g, #ececec)

Stringoptional