Template:Text gradient/doc: Difference between revisions

From Portals of Phereon Wiki
Content added Content deleted
(Created page with "{{Documentation subpage}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> == Usage == <templatedata> { "params": { "1": { "label": "Lef...")
 
No edit summary
 
Line 7: Line 7:
"params": {
"params": {
"1": {
"1": {
"label": "Left color",
"label": "Color data",
"example": "#FFFFFF",
"example": "#FFFFFF, #FF0000, green 70%, black",
"type": "string",
"type": "string",
"required": true
"required": true,
"description": "Enter the color data separated by commas. See linear-gradient documentation for more info."
},
"2": {
"label": "Right color",
"example": "#000000",
"type": "string",
"required": true
},
},
"3": {
"3": {
Line 24: Line 19:
"type": "content",
"type": "content",
"required": true
"required": true
},
"angle": {
"label": "Gradient angle",
"description": "The angle or direction that the gradient points to",
"example": "45deg",
"type": "string",
"default": "90deg"
}
}
},
},
"description": "Adds a gradient to text",
"description": "Adds a gradient to text",
"format": "inline"
"paramOrder": [
"1",
"3",
"angle"
]
}
}
</templatedata>
</templatedata>

Latest revision as of 11:53, 20 December 2019

This is a documentation subpage for Template:Text gradient.
It contains usage information, categories and other content that is not part of the original template page.

Usage[]

Adds a gradient to text

Template parameters

ParameterDescriptionTypeStatus
Color data1

Enter the color data separated by commas. See linear-gradient documentation for more info.

Example
#FFFFFF, #FF0000, green 70%, black
Stringrequired
Content3

The text that'll have a gradient

Example
This will have a gradient
Contentrequired
Gradient angleangle

The angle or direction that the gradient points to

Default
90deg
Example
45deg
Stringoptional