Template:Divbox/doc: Difference between revisions
(update with new usage guidelines; re-add to category) |
(I'd like to discuss this change before it is implemented. Where does it say that decoration should be avoided in other namespaces?) |
||
Line 1: | Line 1: | ||
This template can be used to create simple, flexible coloured text background. | 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 ({{tl|infobox}}), quotations {{tl|quotebox}}) or navigation boxes ({{tl|navbox}}) in articles | 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 ({{tl|infobox}}), quotations {{tl|quotebox}}) or navigation boxes ({{tl|navbox}}) in articles. This template will automatically add inappropriate uses to [[:category:articles using divbox template]] for cleanup. | ||
== Usage == | == Usage == |
Revision as of 12:59, 5 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