Template:Tint/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<noinclude>{{doc|0}}</noinclude> | <noinclude>{{doc|0}}</noinclude> | ||
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. | |||
{{Doc/PreviewBlock| | == Parameters and Examples == | ||
{{Code|text {{tint|color= | {| class="standard-table" | style="width:100%;" | ||
|- | |||
! Parameter | |||
! Description | |||
! Example | |||
! Preview | |||
|- | |||
| align="center" | {{Code|{{param|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. | |||
{| class="wikitable mw-collapsible mw-collapsed" | |||
|- | |||
! The following colors are available: | |||
|- | |||
| {{Code|select=1|orange}} | |||
|- | |||
| {{Code|select=1|green}} | |||
|- | |||
| {{Code|select=1|red}} | |||
|- | |||
| {{Code|select=1|yellow}} | |||
|- | |||
| {{Code|select=1|comment}} | |||
|- | |||
|} | |||
| {{CodeBlock|{{tint|{{tint|color=yellow|color}}<nowiki>=</nowiki>{{tint|color=green|yellow}}|{{tint|color=comment|Hello, World!}}}}}} | |||
| {{Doc/PreviewBlock|margin=5px|{{tint|color=yellow|Hello, World!}}}} | |||
|- | |||
| align="center" | {{Code|{{param|italic}}}} | |||
| Italic text. | |||
| {{CodeBlock|{{tint|{{tint|color=yellow|italic}}<nowiki>=</nowiki>{{tint|color=green|1}}|{{tint|color=comment|Hello, World!}}}}}} | |||
| {{Doc/PreviewBlock|margin=5px|{{tint|italic=1|Hello, World!}}}} | |||
|- | |||
| align="center" | {{Code|{{param|bold}}}} | |||
| Bold text. | |||
| {{CodeBlock|{{tint|{{tint|color=yellow|bold}}<nowiki>=</nowiki>{{tint|color=green|1}}|{{tint|color=comment|Hello, World!}}}}}} | |||
| {{Doc/PreviewBlock|margin=5px|{{tint|bold=1|Hello, World!}}}} | |||
|- | |||
| align="center" | {{Code|{{param|underline}}}} | |||
| Sets the underlining of the text. | |||
| {{CodeBlock|{{tint|{{tint|color=yellow|underline}}<nowiki>=</nowiki>{{tint|color=green|1}}|{{tint|color=comment|Hello, World!}}}}}} | |||
| {{Doc/PreviewBlock|margin=5px|{{tint|underline=1|Hello, World!}}}} | |||
|- | |||
|} | |||
{{ | <includeonly>{{sandbox other|| | ||
[[Category:Markdown]] | |||
}}</includeonly> | |||
}} |
Revision as of 15:26, 23 January 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!
|