Template:Icon box

From Mainlining Wiki
Revision as of 19:38, 6 October 2024 by Adrian (talk | contribs) (Created page with "<includeonly><table role="{{{role|text container}}}" style="color: {{{color|inherit}}}; background-color: {{{background|inherit}}}; border: {{{border-width|1px}}} {{{border-style|solid}}} {{{border-color|#eaecf0}}}; margin: 4px {{#if: {{{nomargin|}}}|0|10%}}; border-collapse: collapse;"><tr> <td style="padding: 2px 0 2px 0.9em; text-align: center; line-height: 1;"><span style="white-space: nowrap;">{{{box-icons}}}</span></td> <td style="padding: {{{padding|0.35em}}} 0.9e...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Floating box with an icon and background. Used for licensing templates, Template:Note and similar boxes.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Box textbox-text

Text inside of the box.

Contentrequired
Box iconsbox-icons

Standard wikitext containing the icons to place inside of the box, see example syntax.

Contentsuggested
Disable marginnomargin

If set, removes the margin from the sides of the box.

Auto value
false
Booleansuggested
Text colorcolor

Text color in any format supported by CSS (hex, rgb(...), ...)

Auto value
inherit
Stringoptional
Background colorbackground

Background color in any format supported by CSS (hex, rgb(...), ...)

Auto value
inherit
Stringoptional
Border colorborder-color

Text color in any format supported by CSS (hex, rgb(...), ...)

Auto value
#eaecf0
Stringoptional
Border styleborder-style

CSS border-style value

Example
solid
Auto value
solid
Stringoptional
Border widthborder-width

Border width with unit

Example
1px
Auto value
1px
Stringoptional
Paddingpadding

Padding to add to the box, with the unit

Auto value
0.35em
Stringoptional
HTML rolerole

HTML accessible role parameter to add to the box.

Auto value
text container
Stringoptional