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