Template:Background color

From WikiAlpha
Revision as of 02:33, 1 November 2017 by LuisAnton (Talk | contribs) (Created page with "<span style="background-color: {{{c|{{{1|}}}}}}">{{{t|{{{2|}}}}}}</span>{{Main other|{{Ensure AAA contrast ratio|base={{{c|{{{1|}}}}}}|other={{{t|{{{2|}}}}}}|category=Catego...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Template:Ensure AAA contrast ratio

[edit] [purge] Template documentation

Usage

{{Background color|<color>|<text>}}

Web colors provides a list of colors which can be used. Simple colors, like black, blue, red, green, etc. can just be spelled out. Alternatively, colors can be specified using either RGB or hex notation.

Examples

  • {{Background color|red|Hello, world!}} results in Hello, world!
  • {{Background color|#00F000|Hello, world!}} results in Hello, world!

See also