Template:Color: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Robot: Changing Category:Formatting Templates to Category:Formatting templates)
No edit summary
Line 1: Line 1:
<span style="color:{{{2}}}">{{{1}}}</span><noinclude>
<includeonly><span style="color:{{{2|unset}}}">{{{1}}}</span></includeonly><noinclude>
==Usage==
== Usage ==
A way to simplify using color codes. {{{1}}} is the text and {{{2}}} is the color.
<code><nowiki>{{color|Text goes here|green}}</nowiki></code>
:{{color|Text goes here|green}}
 
== About ==
Changes the color of some text from the default black. The first parameter is the text and the second is the color. You can use a color name or a hexadecimal, but if it's hex be sure to include a <code>#</code> before the alphanumeric sequence.
 
== See also ==
*{{tem|color-link}}
*{{tem|color-link-external}}


[[Category:Formatting templates]]</noinclude>
[[Category:Formatting templates]]</noinclude>

Revision as of 09:26, February 18, 2021

Usage

{{color|Text goes here|green}}

Text goes here

About

Changes the color of some text from the default black. The first parameter is the text and the second is the color. You can use a color name or a hexadecimal, but if it's hex be sure to include a # before the alphanumeric sequence.

See also