Template:Color/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
m (interwiki)
(→‎Usage: tlx shouldn't be used with <pre>)
Line 6: Line 6:
=== Usage ===
=== Usage ===


<pre>{{Tlx|name of color or hex code of color|Text}}</pre>
{{Tlx|name of color or hex code of color|Text}}


<pre>{{Tlx|color|red|Hello, world!}}</pre>
{{Tlx|color|red|Hello, world!}}


results in {{color|red|Hello, world!}}
results in {{color|red|Hello, world!}}


<pre>{{Tlx|color|#00F000|Hello, world!}}</pre>
{{Tlx|color|#00F000|Hello, world!}}


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

Revision as of 09:31, 9 October 2010


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

Usage

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

{{color|red|Hello, world!}}

results in Hello, world!

{{color|#00F000|Hello, world!}}

results in Hello, world!

See Web colors for a list of colors.

See also