Template:ColorPreview

From //network/Library
Revision as of 02:48, 19 June 2020 by GlitchyPSI (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 .