Difference between revisions of "Template:Box"
From WORST WIKI EVER
Jump to navigationJump to searchEmilydaemon (talk | contribs) (Created page with "<onlyinclude> <div style="border: 1px solid #aaaaaa;border-left: 10px solid {{{col|#7291d8}}};padding: 0.50em;margin: 1px 10% 0px;background: {{{bgc|#fbfbfb}}};color:#000000;...") |
(fix image overflow) |
||
Line 1: | Line 1: | ||
<onlyinclude> |
<onlyinclude> |
||
− | + | <div style="border: 1px solid #aaaaaa; border-left: 10px solid {{{col|#7291d8}}}; padding: 0.50em; margin: 1px 10% 0px; background: {{{bgc|#fbfbfb}}}; color: #000000; display: flex; align-items: center;"> |
|
− | + | {{#if: {{{icon|}}} |
|
− | + | | <div style="margin-right: 8px; flex-shrink: 0;">[[{{{icon}}}|48px|block]]</div> |
|
− | + | }} |
|
− | + | <div style="flex: 1;">{{{text|Empty text!}}}</div> |
|
− | + | </div> |
|
</onlyinclude> |
</onlyinclude> |
||
== Usage == |
== Usage == |
Revision as of 17:59, 3 January 2025
Empty text!
Usage
{{Box}} is a template for creating a box with an icon and text. It is intended to be used in other templates, and is not intended to be used directly in articles.
Parameters
- col: The color of the border. Defaults to #7291d8.
- bgc: The background color of the box. Defaults to #fbfbfb.
- icon: The icon to display. Defaults to no icon.
- text: The text to display. Defaults to "Empty text!".