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;...") |
m (move image to the top) |
||
(One intermediate revision by the same user not shown) | |||
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;align-self: flex-start;">[[{{{icon}}}|48px|block]]</div> |
|
− | + | }} |
|
− | + | <div style="flex: 1;">{{{text|Empty text!}}}</div> |
|
− | + | </div> |
|
</onlyinclude> |
</onlyinclude> |
||
== Usage == |
== Usage == |
Latest revision as of 08:09, 5 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!".