Template:Tint/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 11: Line 11:
|-
|-
| align=center | {{Code|{{Param|color}}}}
| align=center | {{Code|{{Param|color}}}}
| Defined text color. The default color is white.
| Defined text color. The default color is white. The other colors can be found [[#Avaliable Colors|below]].
Custom HSL, HEX, RGB and others are not supported. This is necessary to standardize syntax highlighting.
{{Important|Custom HSL, HEX, RGB and others are not supported. This is necessary to standardize syntax highlighting.}}
| {{CodeBlock|{{((}}Tint|{{Tint|color=yellow|color}}{{=}}{{Tint|color=green|yellow}}|{{Tint|color=comment|Hello, World!}}{{))}}}}
| {{CodeBlock|{{((}}Tint|{{Tint|color=yellow|color}}{{=}}{{Tint|color=green|yellow}}|{{Tint|color=comment|Hello, World!}}{{))}}}}
| {{Capsule|margin=5px|{{Tint|color=yellow|Hello, World!}}}}
| {{Capsule|margin=5px|{{Tint|color=yellow|Hello, World!}}}}

Revision as of 23:43, 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

#E67E22 orange

#C3E88D green

#9FCE3B darkgreen

#C792FF purple

#EF9B9B pink

#E74C3C red

#FFCB6B yellow

#EBB917 gold

#3A9BF0 blue

#CEC93B olive

#CFCFCF gray

#5F6469 comment

#FFFFFF default

Test

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

{{{color|}}}