Template:Color: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>NXTBoy
No edit summary
m Here you go, fixed your broken code formatting bro.
 
(11 intermediate revisions by 2 users not shown)
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></code> 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></code> 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></code> 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>




Line 23: Line 23:


Valid modifiers are light, dark, and medium (default).
Valid modifiers are light, dark, and medium (default).
<includeonly><onlyinclude>{{switch|{{{2|medium}}}|
 
<!-- uncompressed:
 
{{switch|{{{2|medium}}}|
   light  = {{switch|{{{1|}}}|
   light  = {{switch|{{{1|}}}|
     red      = #FFF5F5|
     red      = #FFF5F5|
Line 53: Line 56:
     #E0E0E0}}|
     #E0E0E0}}|
   dark  = {{switch|{{{1|}}}|
   dark  = {{switch|{{{1|}}}|
     red      = #BFA3A3|
     red      = #AC2F2F|
     orange    = #BFB1A3|
     orange    = #AC6E2F|
     yellow    = #BFBFA3|
     yellow    = #ACAC2F|
     lime      = #B1BFA3|
     lime      = #6EAC2F|
     green    = #A3BFA3|
     green    = #2FAC2F|
     turquoise = #A3BFB1|
     turquoise = #2FAC6E|
     cyan      = #A3BFBF|
     cyan      = #2FACAC|
     blue      = #A3B1BF|
     blue      = #2F6EAC|
     indigo    = #A3A3BF|
     indigo    = #2F2FAC|
     purple    = #B1A3BF|
     purple    = #6E2FAC|
     magenta  = #BFA3BF|
     magenta  = #AC2FAC|
     pink      = #BFA3B1|
     pink      = #AC2F6E|
     #AAA}}
     #AAA}}
}}
-->
<includeonly><onlyinclude>{{switch|{{{2|medium}}}|
  light  = {{switch|{{{1|}}}|
    red      = <nowiki>#</nowiki>FFF5F5|
    orange    = <nowiki>#</nowiki>FFFAF5|
    yellow    = <nowiki>#</nowiki>FFFFF5|
    lime      = <nowiki>#</nowiki>FAFFF5|
    green    = <nowiki>#</nowiki>F5FFF5|
    turquoise = <nowiki>#</nowiki>F5FFFA|
    cyan      = <nowiki>#</nowiki>F5FFFF|
    blue      = <nowiki>#</nowiki>F5FAFF|
    indigo    = <nowiki>#</nowiki>F5F5FF|
    purple    = <nowiki>#</nowiki>FAF5FF|
    magenta  = <nowiki>#</nowiki>FFF5FF|
    pink      = <nowiki>#</nowiki>FFF5FA|
    <nowiki>#</nowiki>F9F9F9}}|
  medium = {{switch|{{{1|}}}|
    red      = <nowiki>#</nowiki>F2CECE|
    orange    = <nowiki>#</nowiki>F2E0CE|
    yellow    = <nowiki>#</nowiki>F2F2CE|
    lime      = <nowiki>#</nowiki>E0F2CE|
    green    = <nowiki>#</nowiki>CEF2CE|
    turquoise = <nowiki>#</nowiki>CEF2E0|
    cyan      = <nowiki>#</nowiki>CEF2F2|
    blue      = <nowiki>#</nowiki>CEE0F2|
    indigo    = <nowiki>#</nowiki>CECEF2|
    purple    = <nowiki>#</nowiki>E0CEF2|
    magenta  = <nowiki>#</nowiki>F2CEF2|
    pink      = <nowiki>#</nowiki>F2CEE0|
    <nowiki>#</nowiki>E0E0E0}}|
  dark  = {{switch|{{{1|}}}|
    red      = <nowiki>#</nowiki>AC2F2F|
    orange    = <nowiki>#</nowiki>AC6E2F|
    yellow    = <nowiki>#</nowiki>ACAC2F|
    lime      = <nowiki>#</nowiki>6EAC2F|
    green    = <nowiki>#</nowiki>2FAC2F|
    turquoise = <nowiki>#</nowiki>2FAC6E|
    cyan      = <nowiki>#</nowiki>2FACAC|
    blue      = <nowiki>#</nowiki>2F6EAC|
    indigo    = <nowiki>#</nowiki>2F2FAC|
    purple    = <nowiki>#</nowiki>6E2FAC|
    magenta  = <nowiki>#</nowiki>AC2FAC|
    pink      = <nowiki>#</nowiki>AC2F6E|
    <nowiki>#</nowiki>AAA}}
}}</onlyinclude></includeonly>
}}</onlyinclude></includeonly>
{{#tag:pre|[{{Color|red}}]}}
{{#tag:pre|[{{switch|red|
    red=<nowiki>#</nowiki>FFF5F5|
    orange    = aFFFAF5|
    yellow    = #FFFFF5|
    lime      = #FAFFF5|
    green    = #F5FFF5|
    turquoise = #F5FFFA|
    cyan      = #F5FFFF|
    blue      = #F5FAFF|
    indigo    = #F5F5FF|
    purple    = #FAF5FF|
    magenta  = #FFF5FF|
    pink      = #FFF5FA}}]}}
[[Category:Templates]]
[[Category:Templates]]

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]