Actions

Template

Difference between revisions of "Color"

From Sonic Retro

(Let's see if this won't spread on unwanted text parts.)
 
Line 1: Line 1:
 
<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>
 
<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>
 +
==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>
 
[[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.