Template:Linear-gradient text/doc

Usage
Copy and paste the template below: 
 * Note: This template can handle a maximum of 20 colors, more than that will cause the template to break.

For better understanding see Examples & TemplateData below.

Basics

 * Atleast two font colors are required for this template to run properly, otherwise it will show up in the Alternate text color (black by default). For example:
 * 
 * gives:
 * BUT 
 * gives:


 * 
 * gives:
 * Notice how the colors appear to be moving towards top direction, in the same order as they appear on the template.


 * 
 * gives:
 * Notice how the colors appear to be moving towards right direction, in the same order as they appear on the template.


 * Alternatively  parameter can substituted by ,   parameter by   and   parameter by  . For example:
 * 
 * gives:
 * Notice that this alternative syntax also provides the same result as the previous example.


 * 
 * gives:
 * Notice how the colors appear to be moving towards top left direction, in the same order as they appear on the template. This uses big for formatting. You can learn more about text formatting with this template at Text formatting section below.


 * The same color can also be repeated
 * 
 * gives:
 * Notice how the colors appear to be moving towards right direction, first red, then green, then blue, then red again, green again, red again, blue again, green again, red again, and finally green again, in the same order as they appear on the template.


 * If the template does not contain the  parameter in it, it returns a default error message.
 * 
 * gives:


 * If the template does not contain the  parameter in it, it defaults to right direction.
 * 
 * gives:


 * If the template does not contain the  parameter in it, it defaults to black color.
 * 
 * gives:
 * As mentioned above, atleast two font colors are required for this template to run properly, otherwise it will show up in the Alternate text color.

Text formatting
Note: In most cases, this template should be nested inside any other template and/or tag to avoid breaking. If formatting is carried out within the  parameter, the text may not appear as intended.


 * Wikilinks: Coloring wikilinks using this template is strongly discouraged, as it may cause the link to appear the same as other body texts. However, it can still be used in Userpages and other fun places.
 * Special:Random
 * gives: Special:Random


 * Bold:
 * 
 * gives: 


 * Italic:
 * 
 * gives: 


 * Superscript:
 * undefined
 * gives: undefined


 * Subscript:
 * undefined
 * gives: undefined


 * Underline :
 * <pre style="overflow: auto;">
 * gives:


 * Strikethrough :
 * <pre style="overflow: auto;">
 * gives:


 * Other text formatting, such as larger/ smaller text size should be done outside this template to avoid breaking at certain times. Here, the template big is used as an example, but is relevant to most other templates too.
 * <pre style="overflow: auto;">
 * gives:

TemplateData
{	"params": { "1": {			"label": "Font color 1", "description": "First font color", "type": "line", "suggestedvalues": [ "#000000"			]		},		"2": {			"label": "Font color 2", "description": "Second font color", "type": "line", "suggestedvalues": [ "#000000"			]		},		"3": {			"label": "Font color 3", "description": "Third font color", "type": "line", "suggestedvalues": [ "#000000"			]		},		"4": {			"label": "Font color 4", "description": "Fourth font color", "type": "line", "suggestedvalues": [ "#000000"			]		},		"5": {			"label": "Font color 5", "description": "Fifth font color", "type": "line", "suggestedvalues": [ "#000000"			]		},		"6": {			"label": "Font color 6", "description": "Sixth font color", "type": "line", "suggestedvalues": [ "#000000"			]		},		"7": {			"label": "Font color 7", "description": "Seventh font color", "type": "line", "suggestedvalues": [ "#000000"			]		},		"8": {			"label": "Font color 8", "description": "Eighth font color", "type": "line", "suggestedvalues": [ "#000000"			]		},		"9": {			"label": "Font color 9", "description": "Ninth font color", "type": "line", "suggestedvalues": [ "#000000"			]		},		"10": {			"label": "Font color 10", "description": "Tenth font color", "type": "line", "suggestedvalues": [ "#000000"			]		},		"11": {			"label": "Font color 11", "description": "Eleventh font color", "type": "line", "suggestedvalues": [ "#000000"			]		},		"12": {			"label": "Font color 12", "description": "Twelfth font color", "type": "line", "suggestedvalues": [ "#000000"			]		},		"13": {			"label": "Font color 13", "description": "Thirteenth font color", "type": "line", "suggestedvalues": [ "#000000"			]		},		"14": {			"label": "Font color 14", "description": "Fourteenth font color", "type": "line", "suggestedvalues": [ "#000000"			]		},		"15": {			"label": "Font color 15", "description": "Fifteenth font color", "type": "line", "suggestedvalues": [ "#000000"			]		},		"16": {			"label": "Font color 16", "description": "Sixteenth font color", "type": "line", "suggestedvalues": [ "#000000"			]		},		"17": {			"label": "Font color 17", "description": "Seventeenth font color", "type": "line", "suggestedvalues": [ "#000000"			]		},		"18": {			"label": "Font color 18", "description": "Eighteenth font color", "type": "line", "suggestedvalues": [ "#000000"			]		},		"19": {			"label": "Font color 19", "description": "Nineteenth font color", "type": "line", "suggestedvalues": [ "#000000"			]		},		"20": {			"label": "Font color 20", "description": "Twentieth font color", "type": "line", "suggestedvalues": [ "#000000"			]		},		"alt text color": { "aliases": [ "23"			],			"label": "Alternate text color", "description": "Color of text, if browser is unable to render the linear-gradient", "type": "line", "default": "black", "suggested": true },		"direction": { "aliases": [ "22"			],			"label": "Direction", "description": "Direction of font color flow, i.e., the list of colors appear to be moving in that direction, see Examples above", "suggestedvalues": [ "right", "left", "top", "bottom", "top right", "top left", "bottom right", "bottom left", "30deg", "-60deg" ],			"default": "right", "suggested": true, "type": "line" },		"text": { "aliases": [ "21"			],			"label": "Text", "description": "The text that is to be shown", "type": "string", "default": "Error message when text parameter is missing: No text provided", "required": true }	},	"paramOrder": [ "1",		"2",		"3",		"4",		"5",		"6",		"7",		"8",		"9",		"10",		"11",		"12",		"13",		"14",		"15",		"16",		"17",		"18",		"19",		"20",		"text", "direction", "alt text color" ],	"description": "Displays the specified text using multiple colors which gradually phases from one color to another." }