Template:Color: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
m (Text replacement - "{{{darkcolor" to "{{{dark")
 
Line 1: Line 1:
<span {{#if:{{{class|}}}|class="{{{class}}}"}} style="color:{{{1|unset}}};{{#if:{{{darkcolor|}}}|--darkcolor:{{{darkcolor}}};}}{{#if:{{{bg|}}}|background:{{{bg}}};}}{{#if:{{{darkbg|}}}|--darkbg:{{{darkbg}}};}}">{{{2|}}}</span><noinclude>
<span {{#if:{{{class|}}}|class="{{{class}}}"}} style="color:{{{1|unset}}};{{#if:{{{dark|}}}|--darkcolor:{{{dark}}};}}{{#if:{{{bg|}}}|background:{{{bg}}};}}{{#if:{{{darkbg|}}}|--darkbg:{{{darkbg}}};}}">{{{2|}}}</span><noinclude>
== Usage ==
== Usage ==
<code><nowiki>{{color|green|Text goes here}}</nowiki></code>
<code><nowiki>{{color|green|Text goes here}}</nowiki></code>

Latest revision as of 16:19, March 2, 2025

Usage

{{color|green|Text goes here}}

Text goes here

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

Text goes here

About

Changes the color of some text from the default. The first parameter is the color and the second is the text. An optional bg parameter can be used to set a background 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