Anonymous user
Template:Textcolor: Difference between revisions
no edit summary
*>Monkey 05 06 (New page: <includeonly><span style = "color: #{{{1|000000}}}">{{{2|}}}</span></includeonly>) |
*>Monkey 05 06 No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><span style = "color: | <includeonly><span style = "color: {{{1|#000000}}}">{{{2|}}}</span></includeonly><noinclude>Produces colored text. Takes a [http://www.w3schools.com/Css/css_text.asp CSS text color value] (#HEX value, CSS color name, or rgb function) as the first parameter and the text as the second: | ||
<nowiki>{{textcolor|#FF0000|This is some red text.}}</nowiki> | |||
Would print out: | |||
<span style = "color: #FF0000">This is some red text.</span> | |||
Then: | |||
<nowiki>{{textcolor|rgb(0,255,0)|This is some green text.}}</nowiki> | |||
Produces: | |||
<span style = "color: rgb(0,255,0)">This is some green text.</span> | |||
And finally: | |||
<nowiki>{{textcolor|blue|This is some blue text.}}</nowiki> | |||
Gives: | |||
<span style = "color: blue;">This is some blue text.</span> | |||
''See Also:'' [[:Template:Backgroundcolor]] | |||
[[Category:Formatting templates]]</noinclude> |