Template:Tint/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 13: | Line 13: | ||
| Defined text color. The default color is white. | | Defined text color. The default color is white. | ||
Custom HSL, HEX, RGB and others are not supported. This is necessary to standardize syntax highlighting. | Custom HSL, HEX, RGB and others are not supported. This is necessary to standardize syntax highlighting. | ||
| {{CodeBlock| | | {{CodeBlock|{{((}}Tint|{{Tint|color=yellow|color}}{{=}}{{Tint|color=green|yellow}}|{{Tint|color=comment|Hello, World!}}{{))}}}} | ||
| {{Capsule|margin=5px|{{ | | {{Capsule|margin=5px|{{Tint|color=yellow|Hello, World!}}}} | ||
|- | |- | ||
| align="center" | {{Code|{{param|italic}}}} | | align="center" | {{Code|{{param|italic}}}} | ||
| Italic text. | | Italic text. | ||
| {{CodeBlock| | | {{CodeBlock|{{((}}Tint|{{Tint|color=yellow|italic}}{{=}}{{Tint|color=green|1}}|{{Tint|color=comment|Hello, World!}}{{))}}}} | ||
| {{Capsule|margin=5px|{{ | | {{Capsule|margin=5px|{{Tint|italic=1|Hello, World!}}}} | ||
|- | |- | ||
| align="center" | {{Code|{{param|bold}}}} | | align="center" | {{Code|{{param|bold}}}} | ||
| Bold text. | | Bold text. | ||
| {{CodeBlock| | | {{CodeBlock|{{((}}Tint|{{Tint|color=yellow|bold}}{{=}}{{Tint|color=green|1}}|{{Tint|color=comment|Hello, World!}}{{))}}}} | ||
| {{Capsule|margin=5px|{{ | | {{Capsule|margin=5px|{{Tint|bold=1|Hello, World!}}}} | ||
|- | |- | ||
| align="center" | {{Code|{{param|underline}}}} | | align="center" | {{Code|{{param|underline}}}} | ||
| Sets the underlining of the text. | | Sets the underlining of the text. | ||
| {{CodeBlock| | | {{CodeBlock|{{((}}Tint|{{Tint|color=yellow|underline}}{{=}}{{Tint|color=green|1}}|{{Tint|color=comment|Hello, World!}}{{))}}}} | ||
| {{Capsule|margin=5px|{{ | | {{Capsule|margin=5px|{{Tint|underline=1|Hello, World!}}}} | ||
|- | |- | ||
|} | |} | ||
Line 35: | Line 35: | ||
== Avaliable Colors == | == Avaliable Colors == | ||
{{Capsule| | {{Capsule| | ||
{{Code|style=3|{{ | {{Code|style=3|{{Tint|color=orange|orange}}}} | ||
{{Code|style=3|{{ | {{Code|style=3|{{Tint|color=green|green}}}} | ||
{{Code|style=3|{{ | {{Code|style=3|{{Tint|color=purple|purple}}}} | ||
{{Code|style=3|{{ | {{Code|style=3|{{Tint|color=pink|pink}}}} | ||
{{Code|style=3|{{ | {{Code|style=3|{{Tint|color=red|red}}}} | ||
{{Code|style=3|{{ | {{Code|style=3|{{Tint|color=olive|olive}}}} | ||
{{Code|style=3|{{ | {{Code|style=3|{{Tint|color=yellow|yellow}}}} | ||
{{Code|style=3|{{ | {{Code|style=3|{{Tint|color=comment|comment}}}} | ||
}} | }} | ||
== Test == | == Test == | ||
{{Capsule| | {{Capsule| | ||
{{Tint|color=purple| | {{Tint|color=purple|{{((}}Tint|{{Tint|color=yellow|color}}}}{{=}}{{Tint|color=purple|{{Tint|color=green|#FFFFFF}}|{{Tint|color=comment|Hello, World!}}{{))}}}} | ||
{{Tint|color=pink| | {{Tint|color=pink|{{((}}{color|{{))}}}}} | ||
}} | }} | ||
Revision as of 13:05, 14 February 2023

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.
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. |
Hello, World!
| |
{{{italic}}} | Italic text. | Hello, World!
| |
{{{bold}}} | Bold text. | Hello, World!
| |
{{{underline}}} | Sets the underlining of the text. | Hello, World!
|
Avaliable Colors
orange
green
purple
pink
red
olive
yellow
comment
Test
{{Tint|color=#FFFFFF|Hello, World!}}
{{{color|}}}