Template:ColorSample

From Wikimedia Commons, the free media repository
Jump to: navigation, search

This template creates a box filled with a color of choice, optionally followed by a label. It may prove useful when listing colors used in a hand-made computer drawing, saving readers/users from having to use a color picker-like tool in their favorite picture editor.

Examples[edit]

This code... Yields...
{{ColorSample|purple|This is the purplest purple ever}}   This is the purplest purple ever: purple
{{ColorSample|#E00|Warnings are usually colored like this}}   Warnings are usually colored like this: #E00

{{ColorSample|#000}} {{ColorSample|#006}} {{ColorSample|#039}} {{ColorSample|#36C}} {{ColorSample|#69F}} {ColorSample|#9CF}}{{ColorSample|#CEF}} {{ColorSample|#DFF}} {{ColorSample|#FFF}}