|
|
Line 1: |
Line 1: |
− | <includeonly><span style="color: {{{1|Red}}}">{{{2}}}</span></includeonly><noinclude>
| + | Good point. I hadn't thuhogt about it quite that way. :) |
− | ==Usage==
| + | |
− | This template can be used to quickly change the color of a passage of text; use as follows:
| + | |
− | <pre>{{color|color-name or code|text to be colored}}</pre>
| + | |
− | "Color name or code" can either be [http://en.wikipedia.org/wiki/HTML_color_names HTML color names], [http://en.wikipedia.org/wiki/Web_color#X11_color_names X11 color names], or a [http://en.wikipedia.org/wiki/Web_color#Hex_triplet hex triplet color code]. If the text includes equals signs, initiate the second part with "2=", i.e.
| + | |
− | <pre>{{color|color-name or code|2=text to be colored}}</pre>
| + | |
− | | + | |
− | ==Example==
| + | |
− | <pre>{{color|Red|Roses are red}}<br>
| + | |
− | {{color|Purple|Violets}} {{color|#AA00FF|are}} {{color|Blue|blue}}<br>
| + | |
− | {{color|#000000|All}} {{color|#444444|of}} {{color|#888888|my}} {{color|#CCCCCC|base}}<br>
| + | |
− | {{color|Yellow|Are}} {{color|Fuchsia|belong}} {{color|Aqua|to}} {{color|#1B5FB7|you}}</pre>
| + | |
− | {{color|Red|Roses are red}}<br>
| + | |
− | {{color|Purple|Violets}} {{color|#AA00FF|are}} {{color|Blue|blue}}<br>
| + | |
− | {{color|#000000|All}} {{color|#444444|of}} {{color|#888888|my}} {{color|#CCCCCC|base}}<br>
| + | |
− | {{color|Yellow|Are}} {{color|Fuchsia|belong}} {{color|Aqua|to}} {{color|#1B5FB7|you}}
| + | |
− | [[Category:Templates|{{PAGENAME}}]]</noinclude>
| + | |
Revision as of 05:44, 4 June 2011
Good point. I hadn't thuhogt about it quite that way. :)