Difference between revisions of "Template:Box"
From WORST WIKI EVER
Jump to navigationJump to search (fix image overflow) |
m (move image to the top) |
||
Line 2: | Line 2: | ||
<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;"> |
<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|}}} |
{{#if: {{{icon|}}} |
||
− | | <div style="margin-right: 8px; flex-shrink: 0;">[[{{{icon}}}|48px|block]]</div> |
+ | | <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 style="flex: 1;">{{{text|Empty text!}}}</div> |
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!".