Template:Color: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>"
m Here you go, fixed your broken code formatting bro.
 
Line 1: Line 1:
Generates a standard color (in hexadecimal format), with a modifier.  Usage:
Generates a standard color (in hexadecimal format), with a modifier.  Usage:


<code><nowiki>{{Color|orange|dark}}</nowiki></syntaxhighlight> gives <{{1x|pre}} style="display:inline; display:inline-block; padding:0; border:none; background:transparent; margin:0;">{{Color|orange|dark}}</pre><br />
<syntaxhighlight><nowiki>{{Color|orange|dark}}</nowiki></syntaxhighlight> gives <{{1x|pre}} style="display:inline; display:inline-block; padding:0; border:none; background:transparent; margin:0;">{{Color|orange|dark}}</pre><br />


<code><nowiki>{{Color|purple|light}}</nowiki></syntaxhighlight> gives <{{1x|pre}} style="display:inline; display:inline-block; padding:0; border:none; background:transparent; margin:0;">{{Color|purple|light}}</pre><br />
<syntaxhighlight><nowiki>{{Color|purple|light}}</nowiki></syntaxhighlight> gives <{{1x|pre}} style="display:inline; display:inline-block; padding:0; border:none; background:transparent; margin:0;">{{Color|purple|light}}</pre><br />


<code><nowiki>{{Color|lime}}</nowiki></syntaxhighlight> gives <{{1x|pre}} style="display:inline; display:inline-block; padding:0; border:none; background:transparent; margin:0;">{{Color|lime}}</pre>
<syntaxhighlight><nowiki>{{Color|lime}}</nowiki></syntaxhighlight> gives <{{1x|pre}} style="display:inline; display:inline-block; padding:0; border:none; background:transparent; margin:0;">{{Color|lime}}</pre>





Latest revision as of 23:34, 4 May 2023

Generates a standard color (in hexadecimal format), with a modifier. Usage:

<nowiki>{{Color|orange|dark}}</nowiki>

gives

#AC6E2F


<nowiki>{{Color|purple|light}}</nowiki>

gives

#FAF5FF


<nowiki>{{Color|lime}}</nowiki>

gives

#E0F2CE


Valid colors are red

, orange

, yellow

, lime

, green

, turquoise

, cyan

, blue

, indigo

, purple

, magenta

, pink

, and gray

(default).

Valid modifiers are light, dark, and medium (default).


[#F2CECE]
[#FFF5F5]