Template:Divbox/doc: Difference between revisions
(I'd like to discuss this change before it is implemented. Where does it say that decoration should be avoided in other namespaces?) |
m (Robot: change redirected category Wikipedia formatting templates to Wikipedia formatting and function templates) |
||
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
- 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
- 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
See also
- {{divhide}} (for hiding things)
Template:Mbox templates see also