Template:Icon box: Difference between revisions
More actions
Created page with "<noinclude> {{Template}} This is a template for a box with an icon, largely inspired by Wikipedia's {{wikipedia|Template:Mbox}}. It's mainly used for license boxes. {{Icon box | box-icons = 28px|link=|Icon | box-text = This is an example of the icon box.<br>I can also use HTML tags and MediaWiki syntax, like links. }} <pre> {{Icon box | box-icons = 28px|link=|Icon | box-text..." |
(No difference)
|
Revision as of 19:43, 3 May 2025
This is a template for a box with an icon, largely inspired by Wikipedia's Template:Wikipedia. It's mainly used for license boxes.
| Icon | 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]].
}}
| Icon | 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
}}
| Note | 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
}}
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 |