Template:Tint/doc: Difference between revisions
Jump to navigation
Jump to search
Mailmanmicky (talk | contribs) |
mNo edit summary |
||
Line 3: | Line 3: | ||
== Parameters and Examples == | == Parameters and Examples == | ||
{| class="standard-table" | style="width:100% | {| class="standard-table" | style="width:100%" | ||
|- | |- | ||
! Parameter | ! Parameter | ||
Line 10: | Line 10: | ||
! Preview | ! Preview | ||
|- | |- | ||
| align= | | align=center | {{Code|{{Param|color}}}} | ||
| 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. | ||
Line 16: | Line 16: | ||
| {{Capsule|margin=5px|{{Tint|color=yellow|Hello, World!}}}} | | {{Capsule|margin=5px|{{Tint|color=yellow|Hello, World!}}}} | ||
|- | |- | ||
| align= | | align=center | {{Code|{{Param|italic}}}} | ||
| Italic text. | | Italic text. | ||
| {{CodeBlock|{{((}}Tint|{{Tint|color=yellow|italic}}{{=}}{{Tint|color=green|1}}|{{Tint|color=comment|Hello, World!}}{{))}}}} | | {{CodeBlock|{{((}}Tint|{{Tint|color=yellow|italic}}{{=}}{{Tint|color=green|1}}|{{Tint|color=comment|Hello, World!}}{{))}}}} | ||
| {{Capsule|margin=5px|{{Tint|italic=1|Hello, World!}}}} | | {{Capsule|margin=5px|{{Tint|italic=1|Hello, World!}}}} | ||
|- | |- | ||
| align= | | align=center | {{Code|{{Param|bold}}}} | ||
| Bold text. | | Bold text. | ||
| {{CodeBlock|{{((}}Tint|{{Tint|color=yellow|bold}}{{=}}{{Tint|color=green|1}}|{{Tint|color=comment|Hello, World!}}{{))}}}} | | {{CodeBlock|{{((}}Tint|{{Tint|color=yellow|bold}}{{=}}{{Tint|color=green|1}}|{{Tint|color=comment|Hello, World!}}{{))}}}} | ||
| {{Capsule|margin=5px|{{Tint|bold=1|Hello, World!}}}} | | {{Capsule|margin=5px|{{Tint|bold=1|Hello, World!}}}} | ||
|- | |- | ||
| align= | | align=center | {{Code|{{Param|underline}}}} | ||
| Sets the underlining of the text. | | Sets the underlining of the text. | ||
| {{CodeBlock|{{((}}Tint|{{Tint|color=yellow|underline}}{{=}}{{Tint|color=green|1}}|{{Tint|color=comment|Hello, World!}}{{))}}}} | | {{CodeBlock|{{((}}Tint|{{Tint|color=yellow|underline}}{{=}}{{Tint|color=green|1}}|{{Tint|color=comment|Hello, World!}}{{))}}}} | ||
| {{Capsule|margin=5px|{{Tint|underline=1|Hello, World!}}}} | | {{Capsule|margin=5px|{{Tint|underline=1|Hello, World!}}}} | ||
|- | |- | ||
| align= | | align=center | {{Code|{{Param|strikethrough}}}} | ||
| Applies strikethrough to text | | Applies strikethrough to text. | ||
| {{CodeBlock|{{((}}Tint|{{Tint|color=yellow|strikethrough}}{{=}}{{Tint|color=green|1}}|{{Tint|color=comment|Hello, World!}}{{))}}}} | | {{CodeBlock|{{((}}Tint|{{Tint|color=yellow|strikethrough}}{{=}}{{Tint|color=green|1}}|{{Tint|color=comment|Hello, World!}}{{))}}}} | ||
| {{Capsule|margin=5px|{{Tint|strikethrough=1|Hello, World!}}}} | | {{Capsule|margin=5px|{{Tint|strikethrough=1|Hello, World!}}}} | ||
Line 40: | Line 40: | ||
== Avaliable Colors == | == Avaliable Colors == | ||
{{Capsule| | {{Capsule| | ||
{{Code|style=3|{{Tint|color=orange|orange}}}} | {{Color|r=230|g=126|b=34}} {{Code|style=3|{{Tint|color=orange|orange}}}} | ||
{{Code|style=3|{{Tint|color=green|green}}}} | {{Color|r=195|g=232|b=141}} {{Code|style=3|{{Tint|color=green|green}}}} | ||
{{Code|style=3|{{Tint|color=darkgreen|darkgreen}}}} | {{Color|r=159|g=206|b=59}} {{Code|style=3|{{Tint|color=darkgreen|darkgreen}}}} | ||
{{Code|style=3|{{Tint|color=purple|purple}}}} | {{Color|r=199|g=146|b=255}} {{Code|style=3|{{Tint|color=purple|purple}}}} | ||
{{Code|style=3|{{Tint|color=pink|pink}}}} | {{Color|r=239|g=155|b=155}} {{Code|style=3|{{Tint|color=pink|pink}}}} | ||
{{Code|style=3|{{Tint|color=red|red}}}} | {{Color|r=231|g=76|b=60}} {{Code|style=3|{{Tint|color=red|red}}}} | ||
{{Code|style=3|{{Tint|color= | {{Color|r=255|g=203|b=107}} {{Code|style=3|{{Tint|color=yellow|yellow}}}} | ||
{{Code|style=3|{{Tint|color= | {{Color|r=235|g=185|b=23}} {{Code|style=3|{{Tint|color=gold|gold}}}} | ||
{{Code|style=3|{{Tint|color= | {{Color|r=58|g=155|b=240}} {{Code|style=3|{{Tint|color=blue|blue}}}} | ||
{{Code|style=3|{{Tint|color= | {{Color|r=206|g=201|b=59}} {{Code|style=3|{{Tint|color=olive|olive}}}} | ||
{{Code|style=3|{{Tint|color=gray|gray}}}} | {{Color|r=207|g=207|b=207}} {{Code|style=3|{{Tint|color=gray|gray}}}} | ||
{{Code|style=3|{{Tint|color=comment|comment}}}} | {{Color|r=95|g=100|b=105}} {{Code|style=3|{{Tint|color=comment|comment}}}} | ||
{{Color|r=255|g=255|b=255}} {{Code|style=3|{{Tint|default}}}} | |||
}} | }} | ||
Revision as of 13:35, 29 April 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!
| |
{{{strikethrough}}} | Applies strikethrough to text. | Hello, World!
|
Avaliable Colors
⇆#E67E22rgb(230,126,34)⇆ orange
⇆#C3E88Drgb(195,232,141)⇆ green
⇆#9FCE3Brgb(159,206,59)⇆ darkgreen
⇆#C792FFrgb(199,146,255)⇆ purple
⇆#EF9B9Brgb(239,155,155)⇆ pink
⇆#E74C3Crgb(231,76,60)⇆ red
⇆#FFCB6Brgb(255,203,107)⇆ yellow
⇆#EBB917rgb(235,185,23)⇆ gold
⇆#3A9BF0rgb(58,155,240)⇆ blue
⇆#CEC93Brgb(206,201,59)⇆ olive
⇆#CFCFCFrgb(207,207,207)⇆ gray
⇆#5F6469rgb(95,100,105)⇆ comment
⇆#FFFFFFrgb(255,255,255)⇆ default
Test
{{Tint|color=#FFFFFF|Hello, World!}}
{{{color|}}}
See also