Template:Color block/doc: Difference between revisions
Appearance
en>桂月August Doc to introduce this template. |
en>桂月August m →Example |
||
| Line 34: | Line 34: | ||
| | | | ||
<pre> | <pre> | ||
{{color block|rgb(227,107,182)}} | {{color block|rgb(227,107,182)}}Mayuri Pink | ||
</pre> | </pre> | ||
| {{color block|rgb(227,107,182)}} | | {{color block|rgb(227,107,182)}}Mayuri Pink | ||
|} | |} | ||
==References== | ==References== | ||
<references/> | <references/> | ||
Revision as of 08:58, 24 August 2021
This template use for displaying the color with a little color block.
Parameters
| 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. |
Example
| Code | Result | Code | Result |
|---|---|---|---|
{{color block|#0F0}}#00FF00
|
#00FF00 |
{{color block|#FACD89}}#FACD89
|
#FACD89 |
{{color block|green}}green
|
green[1] |
{{color block|rgb(227,107,182)}}Mayuri Pink
|
Mayuri Pink |
References
- ↑ In fact it's #008000 in our wiki.