Template:Color: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><span style="color:{{{2|unset}}}">{{{1}}}</span></includeonly><noinclude>
<includeonly><span style="color:{{{2|unset}}};background:{{{bg|none}}}">{{{1}}}</span></includeonly><noinclude>
== Usage ==
== Usage ==
<code><nowiki>{{color|Text goes here|green}}</nowiki></code>
<code><nowiki>{{color|Text goes here|green}}</nowiki></code>
:{{color|Text goes here|green}}
:{{color|Text goes here|green}}
<code><nowiki>{{color|Text goes here|green|bg=orange}}</nowiki></code>
:{{color|Text goes here|green|bg=orange}}


== About ==
== 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.
Changes the color of some text from the default black. The first parameter is the text and the second is the color. An optional background color can be set with <code>bg</code>. 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 ==
== See also ==
*{{tem|color-link}}
*[[Template:Color-link]]
*{{tem|color-link-external}}
*[[Template:Color-link-external]]


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

Latest revision as of 15:18, July 10, 2023

Usage

{{color|Text goes here|green}}

Text goes here

{{color|Text goes here|green|bg=orange}}

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. An optional background color can be set with bg. 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