You don't want this version of the documentation template on your wiki! Click here to revert it.

For a documentation template you can use on your wiki, see w:c:templates:Template:Documentation (copy).

Usage

{{Color|<color>|<text>}}

Identical to wikipedia:Template:Color.

Predefined colors are preferred because they can be overridden for dark/light site skin compatibility.

Examples

  • {{Color|red|Red text}}Red text
  • {{Color|#e9967a|Thing}}Thing
  • {{Color|rgb(216, 190, 216)|Color 216-190-216}}Color 216-190-216
  • {{Color|rgba(216, 190, 216, .5)|Color 216-190-216-05}}Color 216-190-216-05
  • {{Color|hsl(200, 100%, 50%)|Color 200, 100%, 50%}}Color 200, 100%, 50%
  • {{Color|hsla(200, 100%, 50%, .5)|Color 200, 100%, 50%, 0.5}}Color 200, 100%, 50%, 0.5
Community content is available under CC-BY-SA unless otherwise noted.