Difference between revisions of "Template:Color"

From Diary of a Wimpy Kid Wiki
Jump to navigation Jump to search
(Created page with "<span style="color:{{{1|}}}">{{{2|}}}</span> <noinclude>Use this as an easy way to color text. From [https://wikirby.com/wiki/Template:Color WiKirby].</noinclude>")
 
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span style="color:{{{1|}}}">{{{2|}}}</span>
<span style="color:{{{1|}}}">{{{2|}}}</span><noinclude>
<noinclude>Use this as an easy way to color text. From [https://wikirby.com/wiki/Template:Color WiKirby].</noinclude>
 
==Info==
Use this as an easy way to color text. From [https://wikirby.com/wiki/Template:Color WiKirby].
 
==Usage==
To use this template, type: <nowiki>{{color|</nowiki>color<nowiki>name/code|text}}</nowiki>
 
Where:
*'''''colorname/code''''' is the color you want the text to be.
*'''''text''''' is the desired text to color.
 
For colors, there are two methods. One way is with names.<br/>
For example, <b><nowiki>{{Color|Red|Text}}</nowiki></b> will produce:
::::<b><span style="color:Red">Text</span></b>
The other way is with hex codes. The way to use it is with a sharp symbol '''#''', followed by six characters corresponding to one color.<br/>
For example, <b><nowiki>{{Color|#00CC00|Text}}</nowiki></b> will produce:
::::<b><span style="color:#00CC00">Text</span></b></noinclude>

Latest revision as of 02:33, 12 May 2022

Info

Use this as an easy way to color text. From WiKirby.

Usage

To use this template, type: {{color|colorname/code|text}}

Where:

  • colorname/code is the color you want the text to be.
  • text is the desired text to color.

For colors, there are two methods. One way is with names.
For example, {{Color|Red|Text}} will produce:

Text

The other way is with hex codes. The way to use it is with a sharp symbol #, followed by six characters corresponding to one color.
For example, {{Color|#00CC00|Text}} will produce:

Text