Template:Tint/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{doc|0}}</noinclude>
{{doc/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.
 
A template for coloring text with colors that match the wiki.


== Parameters and Examples ==
== Parameters and Examples ==
Line 39: Line 40:


== Avaliable Colors ==
== Avaliable Colors ==
The following describes the color names you can use in the {{param|color}}.
The following describes the color names you can use in {{param|color}}.


{| class="standard-table"
{| class="standard-table"
Line 85: Line 86:
| {{Color|rgb=255}}
| {{Color|rgb=255}}
|}
|}
== Test ==
{{Capsule|
{{Tint|color=purple|{{((}}Tint&#124;{{Tint|color=yellow|color}}}}{{=}}{{Tint|color=purple|{{Tint|color=green|#FFFFFF}}&#124;{{Tint|color=comment|Hello, World!}}{{))}}}}
{{Tint|color=pink|{{((}}&#123;color&#124;{{))}}&#125;}}
}}
<includeonly>{{sandbox other||
<includeonly>{{sandbox other||
[[Category:Templates]][[Category:Formatting templates]]
[[Category:Templates]]
[[Category:Formatting templates]]
}}</includeonly>__NOTOC__
}}</includeonly>__NOTOC__

Latest revision as of 00:06, 9 May 2025

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.

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