Actions

Template

Difference between revisions of "Color"

From Sonic Retro

(New page: <span style="color: {{color|}}; background-color: {{background}}">{{content}}</span>)
 
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<span style="color: {{color|}}; background-color: {{background}}">{{content}}</span>
+
<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>

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.