Template:Color/doc: Difference between revisions
Jump to navigation
Jump to search
(forgot <includeonly>) |
(remove extra space) |
||
Line 7: | Line 7: | ||
=== Usage === | === Usage === | ||
{{Tlx|name of color or hex code of color|Text}} | {{Tlx|color|name of color or hex code of color|Text}} | ||
For example: | |||
results in {{color|red|Hello, world!}} | {{Tlx|color|red|Hello, world!}} results in {{color|red|Hello, world!}}<br /> | ||
{{Tlx|color|#00F000|Hello, world!}} results in {{color|#00F000|Hello, world!}} | |||
{{Tlx|color|#00F000|Hello, world!}} | |||
results in {{color|#00F000|Hello, world!}} | |||
See [[Web colors]] for a list of colors. | See [[Web colors]] for a list of colors. |
Revision as of 22:56, 31 October 2010
This template can be used to add a span of text with a given color.
Usage
{{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!
See Web colors for a list of colors.
See also
- {{Colour}} (redirect)
- {{Background color}}
- {{Resize}}