Template:Color/doc: Difference between revisions
Jump to navigation
Jump to search
(correction -> fr:Modèle:Coloré) |
(→Usage: Wikitext generated) |
||
Line 13: | Line 13: | ||
{{Tlx|color|red|Hello, world!}} results in {{color|red|Hello, world!}}<br /> | {{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!}} | ||
Wikitext generated: | |||
<pre> | |||
<span style="color:{{{1|}}}">{{{2|}}}</span> | |||
</pre> | |||
See [[Web colors]] for a list of colors. | See [[Web colors]] for a list of colors. |
Revision as of 18:45, 1 March 2012
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!
Wikitext generated:
<span style="color:{{{1|}}}">{{{2|}}}</span>
See Web colors for a list of colors.
See also
- {{Background color}}
- {{Resize}}