Actions

Template

Difference between revisions of "Color"

From Sonic Retro

m (+sortfix)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span style="{{ #if: {{{color|}}} | color:{{{color}}}; | }} {{ #if: {{{background|}}} | background-color:{{{background}}} | }}">{{{content}}}</span><noinclude>
+
<span style="{{ #if: {{{color|}}} | color:{{{color}}}; | }} {{ #if: {{{background|}}} | background-color:{{{background}}}; | }} {{ #if: {{{blend-mode|}}} | mix-blend-mode:{{{blend-mode}}} | mix-blend-mode:normal }}">{{{content}}}</span><noinclude>
[[Category:Color Templates|{{PAGENAME}}]]</noinclude>
+
==Usage==
 +
This template is for changing the text color appearance. The following parameters do the following things:
 +
*color = Assigns a color value or name to the text.
 +
*background = Same as color, but affects background.
 +
*blend-mode = Combines the background and text color onto the background. A list of values can be found [https://css-tricks.com/almanac/properties/m/mix-blend-mode/ here].
 +
[[Category:Color templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 23:11, 11 April 2018

{{{content}}}

Usage

This template is for changing the text color appearance. The following parameters do the following things:

  • color = Assigns a color value or name to the text.
  • background = Same as color, but affects background.
  • blend-mode = Combines the background and text color onto the background. A list of values can be found here.