Template:Icon box
Check out all pages using this template and feel free to discuss it in the gitlab issues.
This is a template for a box with an icon, largely inspired by Wikipedia's Template:Mbox. It's mainly used for license boxes.
This is an example of the icon box. I can also use HTML tags and MediaWiki syntax, like links. |
{{Icon box | box-icons = [[File:Icon-numix-light-start-here.svg|28px|link=|Icon]] | box-text = This is an example of the icon box.<br>I can also use HTML tags and [[Templates|MediaWiki syntax, like links]]. }}
This is an example license box. |
{{Icon box | box-icons = [[File:Icon-numix-light-start-here.svg|28px|link=|Icon]] | box-text = This is an example license box. | border-color = #88a | border-width = 3px | background = #f7f8ff }}
This is a box with no side margins. |
{{Icon box | box-icons = [[File:Icon-numix-light-start-here.svg|20px|link=|Note]] | box-text = This is a box with no side margins. | border-color = #ac6600 | border-width = 1px | background = #f6efe5 | nomargin = yes }}
Warning: Make sure to set your icon's size (like in the examples above). |
Floating box with an icon and background. Used for licensing templates, Template:Note and similar boxes.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Box text | box-text | Text inside of the box. | Content | required |
Box icons | box-icons | Standard wikitext containing the icons to place inside of the box, see example syntax. | Content | suggested |
Disable margin | nomargin | If set, removes the margin from the sides of the box.
| Boolean | suggested |
Text color | color | Text color in any format supported by CSS (hex, rgb(...), ...)
| String | optional |
Background color | background | Background color in any format supported by CSS (hex, rgb(...), ...)
| String | optional |
Border color | border-color | Text color in any format supported by CSS (hex, rgb(...), ...)
| String | optional |
Border style | border-style | CSS border-style value
| String | optional |
Border width | border-width | Border width with unit
| String | optional |
Padding | padding | Padding to add to the box, with the unit
| String | optional |
HTML role | role | HTML accessible role parameter to add to the box.
| String | optional |
HTML class | class | HTML class/classes to add to the box. | String | optional |