Template:Color/doc View history

(Created template)
 
(→‎Parameters: update)
Line 11: Line 11:
== Parameters ==
== Parameters ==
The first unnamed parameter is the text that will be colored. The second unnamed parameter or {{para|color}} will be the color used. It will accept the [http://en.wikipedia.org/wiki/Web_colors HTML numeric or named colors].
The first unnamed parameter is the text that will be colored. The second unnamed parameter or {{para|color}} will be the color used. It will accept the [http://en.wikipedia.org/wiki/Web_colors HTML numeric or named colors].
The absence of the second or {{para|color}} parameter will return black.





Revision as of 01:53, 16 July 2014

This is a documentation subpage for Template:Color.
It contains usage information, categories and other content that is not part of the original template page.

Usage

Uses the <span> tag.


<span style="color:{{{color{{{2|black}}}}}}">{{{1|}}}</span>

Parameters

The first unnamed parameter is the text that will be colored. The second unnamed parameter or |color= will be the color used. It will accept the HTML numeric or named colors.

The absence of the second or |color= parameter will return black.