(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...") |
m (Protected "Template:Color" ([Edit=Allow only CyberAcme staff] (indefinite) [Move=Allow only CyberAcme staff] (indefinite))) |
(No difference)
|
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.