Jump to content

Template:Color

From Abstract Wikipedia

colored text

Template documentation

{{color}} can be used to specify the foreground color of a span of text. It supports any values that are valid for the CSS color property, such as RGB hex codes (e.g. #C9E72A), the web colors (e.g. red, blue, MediumSeaGreen, etc.) or CSS variables (e.g. var(--color-success)).

Usage

[edit]
  • {{color|name of color or hex code of color|Text}}

For example:

  • {{color|red|Hello, world!}}Hello, world!
  • {{color|#0000FF|Hello, world!}}Hello, world!

If the second parameter is omitted, the color value is displayed as text:

  • {{color|red}}red
  • {{color|#0000FF}}#0000FF