Difference between revisions of "Template:Gr"

From Morloch Wiki
Jump to: navigation, search
 
 
Line 7: Line 7:
 
== Example ==  
 
== Example ==  
 
This code:<br>
 
This code:<br>
  <nowiki>{{gr|Hello World!|red|green}}</nowiki>
+
  <nowiki>{{gr|Hello World!|red|yellow}}</nowiki>
 
Produces this effect:<br>
 
Produces this effect:<br>
{{gr|Hello World!|red|green}}
+
:<span style="background: -webkit-linear-gradient(red, yellow); -webkit-background-clip: text; -webkit-text-fill-color: transparent;">Hello World!</span>
 
</noinclude>
 
</noinclude>

Latest revision as of 13:31, 29 September 2017

Template:Gr is used for easily adding gradient text.

How to Use Template:Gr

  • This template can be added to a page by typing the following in the page's code with any applicable parameters inserted after the name:
{{Gr}}

Raw Example of Template:Gr

Gradient Text

Parameters

  1. desired text
  2. top gradient color
  3. bottom gradient color

Example

This code:

{{gr|Hello World!|red|yellow}}

Produces this effect:

Hello World!