Difference between revisions of "Template:Color block/doc"

From Moegirlpedia
Jump to: navigation, search
(Doc)
 
m (Parameters: debug)
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
! Parameters !! Default values !! Optional values !! Descriptions
 
! Parameters !! Default values !! Optional values !! Descriptions
 
|-
 
|-
| {{code|1}} || (NULL) || HTML color code || The 1st parameter without name, to set the color you want to display by HTML color code.
+
| <code>1</code> || (NULL) || HTML color code || The 1st parameter without name, to set the color you want to display by HTML color code.
 
|-
 
|-
| {{code|w}} or {{code|width}} || 13px || CSS style {{code|width}} || Set the width of the color block, don't change it easily.
+
| <code>w</code> or <code>width</code> || 13px || CSS style <code>width</code> || Set the width of the color block, don't change it easily.
 
|-
 
|-
| {{code|h}} or {{code|height}} || 13px || CSS style {{code|height}} || Set the height of the color block, don't change it easily.
+
| <code>h</code> or <code>height</code> || 13px || CSS style <code>height</code> || Set the height of the color block, don't change it easily.
 
|}
 
|}
  

Latest revision as of 07:14, 31 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}}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.