Template:Textcolor: Difference between revisions

From Adventure Game Studio
Jump to navigation Jump to search
*>Monkey 05 06
No edit summary
*>Monkey 05 06
No edit summary
Line 1: Line 1:
<includeonly><span style = "color: #{{{1|000000}}}">{{{2|}}}</span></includeonly><noinclude>Produces colored text. Takes the hex color value as the first parameter and the text as the second:
<includeonly><span style = "color: {{{1|#000000}}}">{{{2|}}}</span></includeonly><noinclude>Produces colored text. Takes a CSS color value (#HEX value or rgb(R,G,B)) as the first parameter and the text as the second:


   <nowiki>{{textcolor|FF0000|This is some red text.}}</nowiki>
   <nowiki>{{textcolor|#FF0000|This is some red text.}}</nowiki>


Would print out:
Would print out:


&nbsp;&nbsp;&nbsp;&nbsp;<span style = "color: #FF0000">This is some red text.</span></noinclude>
&nbsp;&nbsp;&nbsp;&nbsp;<span style = "color: #FF0000">This is some red text.</span></noinclude>

Revision as of 05:17, 19 May 2009

Produces colored text. Takes a CSS color value (#HEX value or rgb(R,G,B)) as the first parameter and the text as the second:

 {{textcolor|#FF0000|This is some red text.}}

Would print out:

    This is some red text.