Template:color
Appearance
{{{2}}}
- The following documentation is located at Template:color/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
Changes the color of text. The first parameter is color, the second is text:
If you omit the first parameter, a red colour that adapts to dark mode is used:
{{color||Default red}}⇒
Default red
Do not use this template in entries, or in templates that will be used in entries unless specifying a colour from the palette (as in the exmaple below). Otherwise the text may be unreadable for users of dark mode.
{{color|var(--wikt-palette-purple-9)|this text adapts to dark mode}}⇒
this text adapts to dark mode