(Created page with "<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 == <code><nowiki>{{color|green|Text goes here}}</nowiki></code> :{{color|green|Text goes here}} <code><nowiki>{{color|green|bg=orange|Text goes here}}</nowiki></code> :{{color|green|bg=orange|Text goes here}} == About == Changes the col...") |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 20: | Line 20: | ||
*<code>darkbg</code> - The background color in dark mode, if different. | *<code>darkbg</code> - The background color in dark mode, if different. | ||
*<code>class</code> - One or more classes to apply to the <tt>span</tt> element. | *<code>class</code> - One or more classes to apply to the <tt>span</tt> element. | ||
[[Category:Formatting templates]]</noinclude> | [[Category:Formatting templates]]</noinclude> |
Latest revision as of 12:33, April 10, 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. You can use a color name or a hexadecimal, but if it's hex be sure to include a #
before the alphanumeric sequence.
Parameters
- Required
1
- The text color.2
- The text.
- Optional
bg
- The background color.dark
- The text color in dark mode, if different.darkbg
- The background color in dark mode, if different.class
- One or more classes to apply to the span element.