Remove outlines |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><span title="{{{1|}}}" style="width:10px;height:10px;background-color:{{{1|}}};display:inline-block;"></span></includeonly><noinclude>{{doc}}</noinclude> | <includeonly><span title="{{{1|}}}" style="width:10px;height:10px;background-color:{{{1|}}};display:inline-block;"></span></includeonly><noinclude>{{doc}}[[zh:Template:Color block]]</noinclude> |
This template use for displaying the color with a little color block.
There is a version with outlines: {{color_block/wl}}
Parameters | Default values | Optional values | Descriptions |
---|---|---|---|
1 |
(NULL) | HTML color code | The 1st parameter without name, to set the color you want to display by HTML color code. |
w or width |
13px | CSS style width |
Set the width of the color block, don't change it easily. |
h or height |
13px | CSS style height |
Set the height of the color block, don't change it easily. |
Code | Result | Code | Result |
---|---|---|---|
{{color block|#0F0}}#00FF00 |
#00FF00 |
{{color block|#FACD89}}Mayuri Gold |
Mayuri Gold |
{{color block|green}}green |
green[1] |
{{color block|rgb(227,107,182)}}Mayuri Pink |
Mayuri Pink |