No edit summary Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<templatestyles src="Template: | <templatestyles src="Template:Box_Note/styles.css" /> | ||
<includeonly> | <includeonly><div class="infobox notification-{{{boxtype}}}" | ||
<div class="infobox notification-{{{boxtype}}}" | {{#if:{{{bgcolor|}}}|style="background:{{{bgcolor}}}"|}}><span class="boxlabel">{{#switch: {{{boxtype}}} | ||
{{#if:{{{bgcolor|}}}|style="background:{{{bgcolor}}}"|}}> | |||
<span class="boxlabel"> | |||
| note = Note: | | note = Note: | ||
| tip = Tip: | | tip = Tip: | ||
Line 11: | Line 9: | ||
| backgroundbox = | | backgroundbox = | ||
| #default = Note: | | #default = Note: | ||
}} | }}</span>{{{Note text}}}</div></includeonly> | ||
</span>{{{Note text}}} | |||
</div></includeonly> | |||
<noinclude> | <noinclude> | ||
Source code syntax: | |||
<pre> | |||
{{Box_Note|Note text =|bgcolor =}} | |||
</pre> | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
"Note text": {}, | |||
"boxtype": { | "boxtype": { | ||
"description": " | "description": "Poosible values: note, tip, warning, important, example, backgroundbox", | ||
"example": "note", | "example": "note", | ||
"type": "string", | "type": "string", | ||
Line 25: | Line 26: | ||
"required": true | "required": true | ||
}, | }, | ||
" | "bgcolor": { | ||
"label": "bgcolor", | |||
"description": "Background color of the box in hex value (e.g, #ececec)", | |||
"type": "string" | |||
} | |||
}, | }, | ||
"description": " | "description": "Creates an info box", | ||
"paramOrder": [ | |||
"boxtype", | |||
"Note text", | |||
"bgcolor" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </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 |