Template:Color block/doc

From Moegirlpedia
< Template:Color block
Revision as of 07:10, 31 August 2021 by 桂の脌 (talk | contribs) (Doc)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This template use for displaying the color with a little color block.

Parameters

Parameters Default values Optional values Descriptions
Template:Code (NULL) HTML color code The 1st parameter without name, to set the color you want to display by HTML color code.
Template:Code or Template:Code 13px CSS style Template:Code Set the width of the color block, don't change it easily.
Template:Code or Template:Code 13px CSS style Template:Code 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}}Mayuri Gold
Mayuri Gold
{{color block|green}}green
green[1]
{{color block|rgb(227,107,182)}}Mayuri Pink
Mayuri Pink

References

  1. In fact it's #008000 in our wiki.