Template:Color/doc: Difference between revisions
Jump to navigation
Jump to search
m (interwiki) |
(→Usage: tlx shouldn't be used with <pre>) |
||
Line 6: | Line 6: | ||
=== Usage === | === Usage === | ||
{{Tlx|name of color or hex code of color|Text}} | |||
{{Tlx|color|red|Hello, world!}} | |||
results in {{color|red|Hello, world!}} | results in {{color|red|Hello, world!}} | ||
{{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
- {{Colour}} (redirect)
- {{Background color}}
- {{Resize}}