Template:Color: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>NXTBoy New page: Generates a standard color, with a modifier. Valid colors are pink, orange, lime, green, blue, and purple. Valid modifiers are light, dark, and medium (default). Usage: <code><nowiki>{{Co... |
m Here you go, fixed your broken code formatting bro. |
||
(21 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Generates a standard color, with a modifier. | Generates a standard color (in hexadecimal format), with a modifier. Usage: | ||
< | <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 /> | ||
<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 /> | |||
<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> | |||
< | Valid colors are red {{Color/example|red}}, | ||
light = {{switch|{{{1|}}}| | orange {{Color/example|orange}}, | ||
yellow {{Color/example|yellow}}, | |||
orange = #FFFAF5| | lime {{Color/example|lime}}, | ||
lime = #FAFFF5| | green {{Color/example|green}}, | ||
green = #F5FFFA| | turquoise {{Color/example|turquoise}}, | ||
blue = #F5FAFF| | cyan {{Color/example|cyan}}, | ||
purple = #FAF5FF| | blue {{Color/example|blue}}, | ||
indigo {{Color/example|indigo}}, | |||
purple {{Color/example|purple}}, | |||
magenta {{Color/example|magenta}}, | |||
pink {{Color/example|pink}}, and | |||
gray {{Color/example}} (default). | |||
Valid modifiers are light, dark, and medium (default). | |||
<!-- uncompressed: | |||
{{switch|{{{2|medium}}}| | |||
light = {{switch|{{{1|}}}| | |||
red = #FFF5F5| | |||
orange = #FFFAF5| | |||
yellow = #FFFFF5| | |||
lime = #FAFFF5| | |||
green = #F5FFF5| | |||
turquoise = #F5FFFA| | |||
cyan = #F5FFFF| | |||
blue = #F5FAFF| | |||
indigo = #F5F5FF| | |||
purple = #FAF5FF| | |||
magenta = #FFF5FF| | |||
pink = #FFF5FA| | |||
#F9F9F9}}| | #F9F9F9}}| | ||
medium = {{switch|{{{1|}}}| | medium = {{switch|{{{1|}}}| | ||
red = #F2CECE| | |||
orange = #F2E0CE| | orange = #F2E0CE| | ||
lime = #E0F2CE| | yellow = #F2F2CE| | ||
green = #CEF2E0| | lime = #E0F2CE| | ||
blue = #CEE0F2| | green = #CEF2CE| | ||
purple = #E0CEF2| | turquoise = #CEF2E0| | ||
cyan = #CEF2F2| | |||
blue = #CEE0F2| | |||
indigo = #CECEF2| | |||
purple = #E0CEF2| | |||
magenta = #F2CEF2| | |||
pink = #F2CEE0| | |||
#E0E0E0}}| | #E0E0E0}}| | ||
dark = {{switch|{{{1|}}}| | dark = {{switch|{{{1|}}}| | ||
red = #AC2F2F| | |||
orange = # | orange = #AC6E2F| | ||
lime = # | yellow = #ACAC2F| | ||
green = # | lime = #6EAC2F| | ||
blue = # | green = #2FAC2F| | ||
purple = # | turquoise = #2FAC6E| | ||
cyan = #2FACAC| | |||
blue = #2F6EAC| | |||
indigo = #2F2FAC| | |||
purple = #6E2FAC| | |||
magenta = #AC2FAC| | |||
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]