Template:Divbox/doc

From Official Kodi Wiki
< Template:Divbox
Revision as of 11:51, 5 September 2011 by >[email protected] (update with new usage guidelines; re-add to category)
Jump to navigation Jump to search

This template can be used to create simple, flexible coloured text background.

Please note that this is intended to be a decorative template and not for use on the general encyclopedia: alternatives should be used for common tasks such as information panels ({{infobox}}), quotations {{quotebox}}) or navigation boxes ({{navbox}}) in articles, while in other namespaces decoration should usually be avoided. This template will automatically add inappropriate uses to category:articles using divbox template for cleanup.

Usage

{{divbox|color of box|Headtitle|Message}}

The parameter radius may be added for rounded corners using standard units, for example radius=8px.

Available styles

amber
black
bloodred
blue
brown
forest
gold
gray
green
navy
none
orange
plain
purple
lilac
red
white
yellow
fawn
tt
greenv
grayh
email
double
wordperfect
Notes
  • The color names are case-dependent; they will not work if upper-case letters are used.
  • plain, double, tt and none inherit the page background colour whilst white forces a pure white background.

Examples

Template:Div col

Code

{{divbox|orange|Orange example|This is only an example of how this template works.}}

Result
Code

{{divbox|navy|radius=4em|Navy example|This is only an example of how this template works.}}

Result

Template:Div col end

See also

Template:Mbox templates see also