Template:Color/doc

From Angelina Jordan Wiki
Revision as of 08:43, 31 December 2020 by Dcljr (talk | contribs) (doc created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is a subpage documenting Template:Color. To change the template, edit that page; to change the template's documentation (seen below), edit this one.

Documentation

This template outputs the character # (as the HTML entity #) followed by its input. It is used to specify CSS colors by hex code in the templates that call this one directly. (It is necessary in these situations to avoid the number sign being interpreted as wiki markup.)

Usage

  • {{color|xxx}}
  • {{color|xxxxxx}}

Each x represents a single hexadecimal digit (0–9 or a–f, case insensitive).

Examples

  • {{color}} ⇒ #
  • {{color|fff}} ⇒ #fff
  • {{color|60c99f}} ⇒ #60c99f

As seen in the first example, there is no default color number provided by the template.

See also

  • {{num}} – outputs only a number sign