Template:Divbox/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(I'd like to discuss this change before it is implemented. Where does it say that decoration should be avoided in other namespaces?)
Line 62: Line 62:


<includeonly>
<includeonly>
[[Category:Wikipedia formatting templates|Divbox]]
[[Category:Wikipedia formatting and function templates|Divbox]]


[[ar:قالب:صندوق]]
[[ar:قالب:صندوق]]

Revision as of 09:02, 6 September 2011

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. 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