Template:Tint/doc: Difference between revisions
Jump to navigation
Jump to search
Mailmanmicky (talk | contribs) mNo edit summary |
No edit summary |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{doc/subpage}} | |||
A template for coloring text with colors that match the wiki. | |||
== Parameters and Examples == | == Parameters and Examples == | ||
| Line 11: | Line 12: | ||
|- | |- | ||
| 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!}}}} | ||
| Line 39: | Line 40: | ||
== Avaliable Colors == | == Avaliable Colors == | ||
{{ | The following describes the color names you can use in {{param|color}}. | ||
{{Color|r= | {| class="standard-table" | ||
|- | |||
{{Color|r= | ! Color name | ||
! Color code | |||
{{Color|r= | |- | ||
| {{Code|style=3|{{Tint|color=orange|orange}}}} | |||
{{Color|r= | | {{Color|r=230|g=126|b=34}} | ||
|- | |||
{{Color|r= | | {{Code|style=3|{{Tint|color=green|green}}}} | ||
| {{Color|r=195|g=232|b=141}} | |||
{{Color|r= | |- | ||
| {{Code|style=3|{{Tint|color=darkgreen|darkgreen}}}} | |||
{{Color|r= | | {{Color|r=159|g=206|b=59}} | ||
|- | |||
{{Color|r= | | {{Code|style=3|{{Tint|color=purple|purple}}}} | ||
| {{Color|r=199|g=146|b=255}} | |||
{{Color|r= | |- | ||
| {{Code|style=3|{{Tint|color=pink|pink}}}} | |||
{{Color| | | {{Color|r=239|g=155|b=155}} | ||
|- | |||
{{Color| | | {{Code|style=3|{{Tint|color=red|red}}}} | ||
| {{Color|r=231|g=76|b=60}} | |||
{{Color| | |- | ||
| {{Code|style=3|{{Tint|color=yellow|yellow}}}} | |||
| {{Color|r=255|g=203|b=107}} | |||
|- | |||
| {{Code|style=3|{{Tint|color=gold|gold}}}} | |||
{{ | | {{Color|r=235|g=185|b=23}} | ||
|- | |||
| {{Code|style=3|{{Tint|color=blue|blue}}}} | |||
| {{Color|r=58|g=155|b=240}} | |||
|- | |||
| {{Code|style=3|{{Tint|color=olive|olive}}}} | |||
| {{Color|r=206|g=201|b=59}} | |||
|- | |||
| {{Code|style=3|{{Tint|color=gray|gray}}}} | |||
| {{Color|rgb=207}} | |||
|- | |||
| {{Code|style=3|{{Tint|color=comment|comment}}}} | |||
| {{Color|r=95|g=100|b=105}} | |||
|- | |||
| {{Code|style=3|{{Tint|default}}}} | |||
| {{Color|rgb=255}} | |||
|} | |||
{{ | == See also == | ||
}} | * {{t|Color}} | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
[[Category:Templates]][[Category:Formatting templates]] | [[Category:Templates]] | ||
[[Category:Formatting templates]] | |||
}}</includeonly>__NOTOC__ | }}</includeonly>__NOTOC__ | ||
Latest revision as of 03:22, 11 September 2025
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.
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.
|
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
The following describes the color names you can use in {{{color}}}.
| Color name | Color code |
|---|---|
orange
|
#E67E22rgb(230,126,34) |
green
|
#C3E88Drgb(195,232,141) |
darkgreen
|
#9FCE3Brgb(159,206,59) |
purple
|
#C792FFrgb(199,146,255) |
pink
|
#EF9B9Brgb(239,155,155) |
red
|
#E74C3Crgb(231,76,60) |
yellow
|
#FFCB6Brgb(255,203,107) |
gold
|
#EBB917rgb(235,185,23) |
blue
|
#3A9BF0rgb(58,155,240) |
olive
|
#CEC93Brgb(206,201,59) |
gray
|
#CFCFCFrgb(207,207,207) |
comment
|
#5F6469rgb(95,100,105) |
default
|
#FFFFFFrgb(255,255,255) |
See also
- {{Color}}