Difference between revisions of "Template:Color"

From LGPedia
Jump to: navigation, search
(The "fun" thing about templates is...you'll only know if you made a mistake *after* you saved.)
 
m (Protected "Template:Color" ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)))
 
(4 intermediate revisions by 4 users not shown)
Line 15: Line 15:
 
{{color|#000000|All}} {{color|#444444|of}} {{color|#888888|my}} {{color|#CCCCCC|base}}<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}}
 
{{color|Yellow|Are}} {{color|Fuchsia|belong}} {{color|Aqua|to}} {{color|#1B5FB7|you}}
</noinclude>
+
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 00:43, 5 June 2011

Usage

This template can be used to quickly change the color of a passage of text; use as follows:

{{color|color-name or code|text to be colored}}

"Color name or code" can either be HTML color names, X11 color names, or a hex triplet color code. If the text includes equals signs, initiate the second part with "2=", i.e.

{{color|color-name or code|2=text to be colored}}

Example

{{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}}

Roses are red
Violets are blue
All of my base
Are belong to you