Template:Color/doc

From TBATE Wiki
Revision as of 14:48, 9 January 2025 by Toby (talk | contribs) (Created page with "== Description == This template can be used to specify the foreground color of a span of text. Acceptable values are RGB hex codes, e.g. #C9E72A, or any of the web colors: red, blue, green, moccasin, darkorchid, etc. == Usage == * <pre>{{Color|name of color or hex code of color|Text}}</pre> ;For example: * <pre>{{Color|Red|Hello, world!}}</pre> → {{Color|Red|Hello, world!}} * <pre>{{Color|#00F000|Hello, world!}}</pre> → {{Color|#00F000|Hello, world!}} <includeon...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description[edit source]

This template can be used to specify the foreground color of a span of text. Acceptable values are RGB hex codes, e.g. #C9E72A, or any of the web colors: red, blue, green, moccasin, darkorchid, etc.

Usage[edit source]

  • {{Color|name of color or hex code of color|Text}}
For example
  • {{Color|Red|Hello, world!}}
    Hello, world!
  • {{Color|#00F000|Hello, world!}}
    Hello, world!