Template:Tint/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 40: Line 40:
== Avaliable Colors ==
== Avaliable Colors ==
{{Capsule|
{{Capsule|
{{Color|r=230|g=126|b=34}} {{Code|style=3|{{Tint|color=orange|orange}}}}
{{Code|style=3|{{Tint|color=orange|orange}}}} {{Color|r=230|g=126|b=34}}


{{Color|r=195|g=232|b=141}} {{Code|style=3|{{Tint|color=green|green}}}}
{{Code|style=3|{{Tint|color=green|green}}}} {{Color|r=195|g=232|b=141}}


{{Color|r=159|g=206|b=59}} {{Code|style=3|{{Tint|color=darkgreen|darkgreen}}}}
{{Code|style=3|{{Tint|color=darkgreen|darkgreen}}}} {{Color|r=159|g=206|b=59}}


{{Color|r=199|g=146|b=255}} {{Code|style=3|{{Tint|color=purple|purple}}}}
{{Code|style=3|{{Tint|color=purple|purple}}}} {{Color|r=199|g=146|b=255}}


{{Color|r=239|g=155|b=155}} {{Code|style=3|{{Tint|color=pink|pink}}}}
{{Code|style=3|{{Tint|color=pink|pink}}}} {{Color|r=239|g=155|b=155}}


{{Color|r=231|g=76|b=60}} {{Code|style=3|{{Tint|color=red|red}}}}
{{Code|style=3|{{Tint|color=red|red}}}} {{Color|r=231|g=76|b=60}}


{{Color|r=255|g=203|b=107}} {{Code|style=3|{{Tint|color=yellow|yellow}}}}
{{Code|style=3|{{Tint|color=yellow|yellow}}}} {{Color|r=255|g=203|b=107}}


{{Color|r=235|g=185|b=23}} {{Code|style=3|{{Tint|color=gold|gold}}}}
{{Code|style=3|{{Tint|color=gold|gold}}}} {{Color|r=235|g=185|b=23}}


{{Color|r=58|g=155|b=240}} {{Code|style=3|{{Tint|color=blue|blue}}}}
{{Code|style=3|{{Tint|color=blue|blue}}}} {{Color|r=58|g=155|b=240}}


{{Color|r=206|g=201|b=59}} {{Code|style=3|{{Tint|color=olive|olive}}}}
{{Code|style=3|{{Tint|color=olive|olive}}}} {{Color|r=206|g=201|b=59}}


{{Color|rgb=207}} {{Code|style=3|{{Tint|color=gray|gray}}}}
{{Code|style=3|{{Tint|color=gray|gray}}}} {{Color|rgb=207}}


{{Color|r=95|g=100|b=105}} {{Code|style=3|{{Tint|color=comment|comment}}}}
{{Code|style=3|{{Tint|color=comment|comment}}}} {{Color|r=95|g=100|b=105}}


{{Color|rgb=255}} {{Code|style=3|{{Tint|default}}}}
{{Code|style=3|{{Tint|default}}}} {{Color|rgb=255}}
}}
}}



Revision as of 23:49, 8 May 2025

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)
Edit-copy.png
This is a documentation subpage for Template:Tint.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

This template is currently experimental. It is used on some pages, but it is recommended to avoid using this template for now, as it may be reworked later.

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

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

Test

{{Tint|color=#FFFFFF|Hello, World!}}

{{{color|}}}