(Created page with "<templatestyles src="Template:Box_Note/styles.css" />") Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<templatestyles src="Template:Box_Note/styles.css" /> | <templatestyles src="Template:Box_Note/styles.css" /> | ||
<includeonly><div class="infobox notification-{{{boxtype}}}" | |||
{{#if:{{{bgcolor|}}}|style="background:{{{bgcolor}}}"|}}><span class="boxlabel">{{#switch: {{{boxtype}}} | |||
| note = Note: | |||
| tip = Tip: | |||
| warning = Warning: | |||
| example = Example: | |||
| important = Important! | |||
| backgroundbox = | |||
| #default = Note: | |||
}}</span>{{{Note text}}}</div></includeonly> | |||
<noinclude> | |||
Source code syntax: | |||
<pre> | |||
{{Box_Note|Note text =|bgcolor =}} | |||
</pre> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"Note text": {}, | |||
"boxtype": { | |||
"description": "Poosible values: note, tip, warning, important, example, backgroundbox", | |||
"example": "note", | |||
"type": "string", | |||
"default": "note", | |||
"required": true | |||
}, | |||
"bgcolor": { | |||
"label": "bgcolor", | |||
"description": "Background color of the box in hex value (e.g, #ececec)", | |||
"type": "string" | |||
} | |||
}, | |||
"description": "Creates an info box", | |||
"paramOrder": [ | |||
"boxtype", | |||
"Note text", | |||
"bgcolor" | |||
] | |||
} | |||
</templatedata> | |||
</noinclude> |
Latest revision as of 09:01, 16 June 2020
Source code syntax:
{{Box_Note|Note text =|bgcolor =}}
Creates an info box
Parameter | Description | Type | Status | |
---|---|---|---|---|
boxtype | boxtype | Poosible values: note, tip, warning, important, example, backgroundbox
| String | required |
Note text | Note text | no description | Unknown | optional |
bgcolor | bgcolor | Background color of the box in hex value (e.g, #ececec) | String | optional |