From Valve Developer Community
Jump to navigation
Jump to search

Available doc translations
…
English
A template for coloring text with colors that match the wiki.
Parameters and Examples
Parameter
|
Description
|
Example
|
Preview
|
{{{color}}}
|
Defined text color. The default color is white. The other colors can be found below.
Important:Custom HSL, HEX, RGB and others are not supported. This is necessary to standardize syntax highlighting.
|
{{Tint|color=yellow|Hello, World!}}
|
Hello, World!
|
{{{italic}}}
|
Italic text.
|
{{Tint|italic=1|Hello, World!}}
|
Hello, World!
|
{{{bold}}}
|
Bold text.
|
{{Tint|bold=1|Hello, World!}}
|
Hello, World!
|
{{{underline}}}
|
Sets the underlining of the text.
|
{{Tint|underline=1|Hello, World!}}
|
Hello, World!
|
{{{strikethrough}}}
|
Applies strikethrough to text.
|
{{Tint|strikethrough=1|Hello, World!}}
|
Hello, World!
|
Avaliable Colors
The following describes the color names you can use in {{{color}}}.
Color name
|
Color code
|
orange
|
#E67E22rgb(230,126,34)
|
green
|
#C3E88Drgb(195,232,141)
|
darkgreen
|
#9FCE3Brgb(159,206,59)
|
purple
|
#C792FFrgb(199,146,255)
|
pink
|
#EF9B9Brgb(239,155,155)
|
red
|
#E74C3Crgb(231,76,60)
|
yellow
|
#FFCB6Brgb(255,203,107)
|
gold
|
#EBB917rgb(235,185,23)
|
blue
|
#3A9BF0rgb(58,155,240)
|
olive
|
#CEC93Brgb(206,201,59)
|
gray
|
#CFCFCFrgb(207,207,207)
|
comment
|
#5F6469rgb(95,100,105)
|
default
|
#FFFFFFrgb(255,255,255)
|
See also