Template:Tint/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 35: Line 35:
== Avaliable Colors ==
== Avaliable Colors ==
{{Capsule|
{{Capsule|
{{tint|color=orange|orange}}
{{Code|style=3|select=1|{{tint|color=orange|orange}}}}


{{tint|color=green|green}}
{{Code|style=3|select=1|{{tint|color=green|green}}}}


{{tint|color=red|red}}
{{Code|style=3|select=1|{{tint|color=red|red}}}}


{{tint|color=yellow|yellow}}
{{Code|style=3|select=1|{{tint|color=yellow|yellow}}}}


{{tint|color=comment|comment}}
{{Code|style=3|select=1|{{tint|color=comment|comment}}}}
}}
}}


<includeonly>{{sandbox other||}}</includeonly>
<includeonly>{{sandbox other||}}</includeonly>

Revision as of 11:32, 12 February 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)
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.

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!

Avaliable Colors

orange

green

red

yellow

comment