Difference between revisions of "Template:Box"
Jump to navigation
Jump to search
(Template updates) |
m (Added min-height property) |
||
Line 32: | Line 32: | ||
|highlight=#4DFF00 |
|highlight=#4DFF00 |
||
}} |
}} |
||
− | </noinclude><includeonly><div style='background-color: {{{background|#D9D1FF}}}; border: solid 2px {{{highlight|#4A80FF}}}; border-left: solid 5px {{{highlight|#4A80FF}}}; padding: 2px 5px;'> |
+ | </noinclude><includeonly><div style='background-color: {{{background|#D9D1FF}}}; border: solid 2px {{{highlight|#4A80FF}}}; border-left: solid 5px {{{highlight|#4A80FF}}}; padding: 2px 5px; min-height: 48px;'> |
[[File:{{{icon|Messagebox_info.png}}}|left|48px]]<div style='font-size:1.15em; font-weight: bold;'>{{{caption}}}</div>{{{text}}}</div></includeonly> |
[[File:{{{icon|Messagebox_info.png}}}|left|48px]]<div style='font-size:1.15em; font-weight: bold;'>{{{caption}}}</div>{{{text}}}</div></includeonly> |
Revision as of 16:39, 24 August 2021
Template:Box is a general-purpose template meant to display Wikipedia-style boxes with information such as warnings about the content of a page.
See the Template:Outdated template for an example of its usage.
To use this template, use {{Box|caption=...|text=...|icon=...|background=...|highlight=...}}
on the target page.
caption
(optional) is the box caption;text
(required) is the box contents;icon
(optional) is the icon displayed by the text ("Messagebox_info.png" by default);background
(optional) is the background color (#D9D1FF by default);highlight
(optional) is the highlight color (#4A80FF by default).
Using this template on a page results in a box being placed.