Template:ColorPreview

From //network/Library
Jump to navigation Jump to search


Documentation Info.png


This template allows you to insert a specific hex color (With colored text preview). Useful for character descriptions and stuff that requires exact colors for reference.


Usage

The syntax of the template is

{{ColorPreview|
color=rrggbb|
}}

where rr would be 0-255 for the Red color, gg would be 0 - 255 for the Green color, and bb would be 0 - 255 for the Blue color.

For example, A preview for Nazure would be written as:

{{ColorPreview|
color=366FFF|
}}

And its output would be: #366FFF .

The color preview is now just a small rounded square next to the copyable color with a dark outline, which means even bright colors can be displayed properly.

#FFF

#DEDEDE .