Navigation menu
Template:Color: Difference between revisions
From Metroid Wiki
m (Replaced content with "<font face="comic sans ms" color="white">{{{2}}}</font> {{{1}}}") Tag: Replaced |
Tag: Rollback |
||
Line 1: | Line 1: | ||
< | <span style="color:{{{1|}}}">{{{2}}}</span><noinclude> | ||
==Purpose== | |||
This template is an easy way to apply colors to text. | |||
==Usage== | |||
{{NoWikiTemp|Normal|color|text}} | |||
*'''''Color''''' 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> | |||
Hex code is preferred over text since on some browsers, text will be misread. A list of colors that can be used can be found <span class="plainlinks">[http://www.ironspider.ca/format_text/fontcolor.htm#colorchart here]</span> or | |||
at [[wikipedia:Html_color#X11_color_names|Wikipedia's article]] for a larger variety of colors. | |||
[[Category:Color Templates]]</noinclude> |
Revision as of 19:01, 27 December 2018
{{{2}}}
Purpose
This template is an easy way to apply colors to text.
Usage
{{Color| color | text }}
- Color 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
Hex code is preferred over text since on some browsers, text will be misread. A list of colors that can be used can be found here or at Wikipedia's article for a larger variety of colors.