Template: Colors

From New World Encyclopedia
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

{{{3}}}

Usage

Guts: <span style="background: {{{2}}}; color: {{{1}}}">{{{3}}}</span>

Sets foreground and background colors of a given text. They can be specified by name or in the format #dddddd (RGB hex triplet).

Unless in the case of personal use on a user page, use this template with great caution:

  • a poor contrast may make the text difficult or impossible to read
  • the contrast can be experienced as even poorer in the case of color blindness
  • links have a color according to user settings; they become invisible if this color is equal to the background color.

See also

  • {{Colors}} – background/text color (text in free span)
  • {{TextColors}} – background/text color (text in block table)
  • {{NestTextColors}} – background/text color (text in block div)
  • {{bkg}} – background color (text in free span)
  • {{bg}} – background color (text in free span)

Examples

{{colors|#ffffff|#000000|From [[Wikipedia]], the free [[encyclopedia]].}} gives: From Wikipedia, the free encyclopedia.

{{colors|#aa0000|#009999|From [[Wikipedia]], the free [[encyclopedia]].}} gives: From Wikipedia, the free encyclopedia.

{{colors|white|black|From [[Wikipedia]], the free [[encyclopedia]].}} gives: From Wikipedia, the free encyclopedia.

{{colors|yellow|grey|From [[Wikipedia]], the free [[encyclopedia]].}} gives: From Wikipedia, the free encyclopedia.

{{colors|blue|silver|From [[Wikipedia]], the free [[encyclopedia]].}} gives: From Wikipedia, the free encyclopedia.

{{colors|grey|yellow|From [[Wikipedia]], the free [[encyclopedia]].}} gives: From Wikipedia, the free encyclopedia.

{{colors|black|aqua|From [[Wikipedia]], the free [[encyclopedia]].}} gives: From Wikipedia, the free encyclopedia.

Standard color names

The HTML 4.01 specification defines sixteen named colors, as follows:

Color Hexadecimal Color Hexadecimal
black #000000 silver #c0c0c0
gray #808080 white #ffffff
maroon #800000 red #ff0000
purple #800080 fuchsia #ff00ff
green #008000 lime #00ff00
olive #808000 yellow #ffff00
navy #000080 blue #0000ff
teal #008080 aqua #00ffff

See also:

Credits

New World Encyclopedia writers and editors copied and adjusted this Wikipedia template in accordance with New World Encyclopedia standards. This article abides by terms of the Creative Commons CC-by-sa 3.0 License (CC-by-sa), which may be used and disseminated with proper attribution.The history of earlier contributions by wikipedians is accessible to researchers here:

The history of this article since it was imported to New World Encyclopedia:

Note: Some restrictions may apply to use of individual images which are separately licensed.