Template:Color

From FrathWiki
Revision as of 12:05, 8 August 2014 by Thirty7 (talk | contribs) (removing TOC since it is such a short page, seems unnecessary)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


This template has two uses: First, to display a small colored box, and second, to display colored text.

Colored box

If you specify only the first parameter, a color in a format which is understood by CSS, this template displays a small box filled with this color. When hovering over it, the name of the color is displayed in a tooltip. The parameter defaults to transparent.

Examples

— red

— #60f

— rgb(20, 50, 80)

— transparent

Colored text

If you specify two parameters, the text in the second parameter is displayed in the color specified in the first parameter, which must be in a format understood by CSS.

Example

BADGERS{{Color|red|BADGERS}}