Jump to content

Template:Color Tile

From UNIVER.SYS Wiki
Revision as of 08:42, 2 April 2025 by Rizzonen (talk | contribs) (Created page with "<includeonly><onlyinclude><span style="display:inline-block; height: {{#if:{{{3|}}}|{{{3}}}|0.6}}em; width: {{#if:{{{3|}}}|{{{3}}}|0.6}}em; background: {{{1}}}; border: 1px solid rgba(255, 255, 255, 0.25);" title="{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}"></span></onlyinclude></includeonly> Displays a small square colored in accordance with the first argument, which must be a valid value for the CSS property <code>background</code>. Hovering will show the second argument (or the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Displays a small square colored in accordance with the first argument, which must be a valid value for the CSS property background. Hovering will show the second argument (or the first one instead if not set). Notably useful to illustrate colors in character descriptions and give precise references for fan drawings, especially if no image exist yet.

Examples

Red {{Color Tile|#FF0000}} + Green {{Color Tile|#00FF00}} + Blue {{Color Tile|#0000FF}} = White {{Color Tile|#FFFFFF}}

Red + Green + Blue = White

{{Color Tile|rgba(255, 255, 255, 0)|100% White, 0% Opacity}}{{Color Tile|rgba(255, 255, 255, 0.25)|100% White, 25% Opacity}}{{Color Tile|rgba(255, 255, 255, 0.5)|100% White, 50% Opacity}}{{Color Tile|rgba(255, 255, 255, 0.75)|100% White, 75% Opacity}}{{Color Tile|rgba(255, 255, 255, 1)|100% White, 100% Opacity}}