Module:Gradient/doc: Difference between revisions

From MuttWiki
Jump to navigationJump to search
No edit summary
Line 7: Line 7:
* '''text:''' The text to apply the gradient effect to. Plain text only.
* '''text:''' The text to apply the gradient effect to. Plain text only.
Example: <code><nowiki>{{#invoke:Gradient|rgb|FF0000|0000FF|Hello world!}}</nowiki></code>
Example: <code><nowiki>{{#invoke:Gradient|rgb|FF0000|0000FF|Hello world!}}</nowiki></code>
== multi ==
{{#invoke:Gradient|multi|FF0000,FFFF00,00FF00,00FFFF,0000FF,FF00FF|Hello world this is a multi gradient}}

Revision as of 10:11, 22 February 2025

This module provides support for generating text gradients. It contains the following functions:

rgb

{{#invoke:Gradient|rgb|<from>|<to>|<text>}}
  • from: A 6-digit hex code for the start colour. No starting #.
  • to: A 6-digit hex code for the end colour. No starting #.
  • text: The text to apply the gradient effect to. Plain text only.

Example: {{#invoke:Gradient|rgb|FF0000|0000FF|Hello world!}}

multi

Hello world this is a multi gradient