Template:Textcolor: Difference between revisions

From Adventure Game Studio
Jump to navigation Jump to search
*>Monkey 05 06
mNo edit summary
*>Monkey 05 06
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<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:
<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>
   <nowiki>{{textcolor|#FF0000|This is some red text.}}</nowiki>
Line 7: Line 7:
&nbsp;&nbsp;&nbsp;&nbsp;<span style = "color: #FF0000">This is some red text.</span>
&nbsp;&nbsp;&nbsp;&nbsp;<span style = "color: #FF0000">This is some red text.</span>


   <nowiki>{{textcolor|rgb(0,0,255)|This is some blue text.}}</nowiki>
Then:
 
   <nowiki>{{textcolor|rgb(0,255,0)|This is some green text.}}</nowiki>


Produces:
Produces:


&nbsp;&nbsp;&nbsp;&nbsp;<span style = "color: rgb(0,0,255)">This is some blue text.</span></noinclude>
&nbsp;&nbsp;&nbsp;&nbsp;<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:
 
&nbsp;&nbsp;&nbsp;&nbsp;<span style = "color: blue;">This is some blue text.</span>
 
''See Also:'' [[:Template:Backgroundcolor]]
 
[[Category:Formatting templates]]</noinclude>

Latest revision as of 15:59, 23 June 2009

Produces colored text. Takes a CSS text color value (#HEX value, CSS color name, or rgb function) 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.

Then:

 {{textcolor|rgb(0,255,0)|This is some green text.}}

Produces:

    This is some green text.

And finally:

 {{textcolor|blue|This is some blue text.}}

Gives:

    This is some blue text.

See Also: Template:Backgroundcolor