Template:Color box
<templatestyles src="Legend/styles.css" />
Template documentation
The {{color box}} template places a box with the specified fill color on a page.
The template is copied from https://dev.miraheze.org/wiki/Template:Color_box under Creative Commons CC-BY-SA 4.0. It was created by Miraheze user Silicona.
Usage
Basic usage: {{color box|1}}
Parameters
Parameter | Description | Type | Status | Notes |
---|---|---|---|---|
1 color |
Box fill color | String | Required | The parameter name is optional |
border-width |
Box border width | String | Optional | Default is 1px |
border-style |
Box border style | String | Optional | Default is solid |
border-color |
Box border color | String | Optional | Default is black |
style |
Other box styles | String | Optional |
Examples
{{color box|red}}
or{{color box|color=red}}
→ <templatestyles src="Legend/styles.css" />{{color box|yellow|border-width=3px}}
→ <templatestyles src="Legend/styles.css" />{{color box|#90EE90|border-style=dashed}}
→ <templatestyles src="Legend/styles.css" />{{color box|orange|border-color-blue}}
→ <templatestyles src="Legend/styles.css" />{{color box|magenta|style=border-radius:50%;}} → <templatestyles src="Legend/styles.css" />