Template:Divbox/doc: Difference between revisions
Jump to navigation
Jump to search
>Fæ@en.wikipedia.org |
>Fæ@en.wikipedia.org (update) |
||
Line 4: | Line 4: | ||
<nowiki>{{divbox|color of box|Headtitle|Message}}</nowiki> | <nowiki>{{divbox|color of box|Headtitle|Message}}</nowiki> | ||
The parameter ''radius'' may be added for rounded corners. This parameter is considered a complex style and is unsuitable for articles. | |||
== Examples == | |||
{{div col|2}} | |||
;Code | |||
<code><nowiki>{{divbox|orange|Orange example|This is only an example of how this template works.}}</nowiki></code> | |||
;Result | |||
{{divbox|orange|Orange example|This is only an example of how this template works.}} | |||
;Code | |||
<code><nowiki>{{divbox|greenv|radius=4em|Navy example|This is only an example of how this template works.}}</nowiki></code> | |||
;Result | |||
{{divbox|navy|radius=4em|Navy example|This is only an example of how this template works.}} | |||
{{div col end}} | |||
The color names are case-dependent; they will not work if upper-case letters are used. | The color names are case-dependent; they will not work if upper-case letters are used. | ||
Revision as of 13:05, 12 November 2010
This template is used to create coloured text background.
Usage
{{divbox|color of box|Headtitle|Message}}
The parameter radius may be added for rounded corners. This parameter is considered a complex style and is unsuitable for articles.
Examples
- Code
{{divbox|orange|Orange example|This is only an example of how this template works.}}
- Result
- Code
{{divbox|greenv|radius=4em|Navy example|This is only an example of how this template works.}}
- Result
Template:Div col end The color names are case-dependent; they will not work if upper-case letters are used.
Available styles
amber
black
bloodred
blue
brown
forest
gold
gray
green
navy
none
orange
plain
purple
lilac
red
white
yellow
fawn
greenv
grayh
tt
double
wordperfect
- plain, double, tt and none inherit the page background colour whilst white forces a pure white background.
- Note that complex styles should only be used on user pages, essays and project pages.
See also
- {{divhide}} (for hiding things)
Template:Mbox templates see also