Template:Color box/doc
Jump to navigation
Jump to search
Produces a simple colored box.
Usage
{{ color box | <color> | border = <color> | width = <box width> | height = <box height> | size = <box size> | text = y/yes }}
- First unnamed parameter
Sets the background color of the box.
- border (optional)
Sets the color of the border around the box. Defaults to text color.
- size/width/height (optional)
Size will override the width/height parameter. Width and height default to 1.25em
.
- text (optional)
Appends the color value from the first unnamed parameter.
Examples
Code | Output |
---|---|
{{color box|#FF00FF}}
|
|
{{color box|orange}}
|
|
{{color box|orange|text=y}}
|
orange
|
{{color box|#FF0000|width=40px}}
|
|
{{color box|#FF0000|height=40px}}
|
|
{{color box|#FF0000|size=40px}}
|
|
{{color box|#FF0000|size=40px|width=1000px}}
|
|
{{color box|#FF0000|size=40px|text=y}}
|
#FF0000
|