Template:Colored box: Difference between revisions

From Bondix Wiki
(Created page with ".mw-tpl-colorbox { box-sizing: border-box; margin: 0.5em 0.5em 1em 0.5em; border-radius: 0.2em; background: #FFC300; box-shadow: 0 0 0.2em #999999; }")
 
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
.mw-tpl-colorbox {
<noinclude>
box-sizing: border-box;
This is the "colored box" template.
margin: 0.5em 0.5em 1em 0.5em;
It should be called in the following format:
border-radius: 0.2em;
<pre>
  background: #FFC300;
{{Colored_box|Text=The text you need in a box.}}
box-shadow: 0 0 0.2em #999999;
</pre>
}
Edit the page to see the template text.
</noinclude>
<includeonly>{| class="mw-tpl-colorbox"
! ⚠️  
| {{{Text}}}
|}
</includeonly>

Latest revision as of 15:42, 15 February 2023

This is the "colored box" template. It should be called in the following format:

{{Colored_box|Text=The text you need in a box.}}

Edit the page to see the template text.