Template:Color/doc

From Wikiversity
Jump to navigation Jump to search


This template can be used to add a span of text with a given color.

Usage[edit source]

{{color|name of color or hex code of color|Text}}

For example:

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

Wikitext generated:

<span style="color:{{{1|}}}">{{{2|}}}</span>

See w:Web colors for a list of colors.

See also[edit source]