Template:Color/doc: Difference between revisions
Jump to navigation
Jump to search
dlw>RheingoldRiver Created page with "This template creates a small color splotch with a given background color next to a plaintext color code. This is useful for previewing colors. ==Usage== {{tlx|color|<color>}} Where <code><color></code> is any valid [https://developer.mozilla.org/en-US/docs/Web/CSS/color_value CSS color]. ==Examples== <pre> My favorite color is {{color|darkgreen}} I think the current {{color|#6d8afb}} of links should be changed to a {{color|#6df4fb}} RGB is cool too, you can do {{col..." |
Verdite cat (talk | contribs) m 1 revision imported |
(No difference)
|
Latest revision as of 18:53, 12 September 2024
This template creates a small color splotch with a given background color next to a plaintext color code. This is useful for previewing colors.
Usage
{{color|<color>}}
Where <color>
is any valid CSS color.
Examples
My favorite color is {{color|darkgreen}} I think the current {{color|#6d8afb}} of links should be changed to a {{color|#6df4fb}} RGB is cool too, you can do {{color|rgb(128,255,128)}}, or even transparency with {{color|rgba(128,255,128,0.5)}}.
Produces:
My favorite color is darkgreen
I think the current #6d8afb of links should be changed to a #6df4fb
RGB is cool too, you can do rgb(128,255,128) , or even transparency with rgba(128,255,128,0.5) .