Template:Color: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
==Info== | ==Info== | ||
Use this template to write colored text. The first parameter is the text, the second is the color. This is a standard CSS color, so any of the following works: "#12AB00", "rgb(48, 128, 224)", "purple". | Use this template to write colored text. The first parameter is the text, the second is the color. This is a standard CSS color, so any of the following works: "#12AB00", "rgb(48, 128, 224)", "purple". | ||
An optional <code>dark</code> parameter can be used to define the text color in dark mode (if different), and an optional <code>class</code> parameter can be used to apply one or more CSS classes to the span element. | |||
[[Category:Inline templates]]</noinclude> | [[Category:Inline templates]]</noinclude> |
Latest revision as of 18:45, March 11, 2025
Info
Use this template to write colored text. The first parameter is the text, the second is the color. This is a standard CSS color, so any of the following works: "#12AB00", "rgb(48, 128, 224)", "purple".
An optional dark
parameter can be used to define the text color in dark mode (if different), and an optional class
parameter can be used to apply one or more CSS classes to the span element.