Template:Tint: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Replaced deprecated font tag with span)
 
Line 1: Line 1:
<onlyinclude><includeonly><!--
<onlyinclude><includeonly><!--


--><font style="color:rgb({{#switch:{{{color|}}}
--><span style="color:rgb({{#switch:{{{color|}}}
| orange = 230,126,34
| orange = 230,126,34
| green = 195,232,141
| green = 195,232,141
Line 14: Line 14:
| gray = 207,207,207
| gray = 207,207,207
| comment = 95,100,105
| comment = 95,100,105
| #default = 255,255,255 }}); {{#if:{{{italic|}}}|font-style:italic;}} {{#if:{{{bold|}}}|font-weight:bold;}} {{#if:{{{underline|}}}|text-decoration:underline;}} {{#if:{{{strikethrough|}}}|text-decoration: line-through;}}">{{{1|}}}</font><!--
| #default = 255,255,255 }}); {{#if:{{{italic|}}}|font-style:italic;}} {{#if:{{{bold|}}}|font-weight:bold;}} {{#if:{{{underline|}}}|text-decoration:underline;}} {{#if:{{{strikethrough|}}}|text-decoration: line-through;}}">{{{1|}}}</span><!--


--></includeonly></onlyinclude>{{doc}}
--></includeonly></onlyinclude>{{doc}}

Latest revision as of 18:34, 10 May 2023

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

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.
Icon-Important.pngImportant: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 #E67E22
green #C3E88D
darkgreen #9FCE3B
purple #C792FF
pink #EF9B9B
red #E74C3C
yellow #FFCB6B
gold #EBB917
blue #3A9BF0
olive #CEC93B
gray #CFCFCF
comment #5F6469
default #FFFFFF