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": " |
"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." |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
"required": true |
|||
}, |
}, |
||
"3": { |
"3": { |
||
Line 24: | Line 19: | ||
"type": "content", |
"type": "content", |
||
"required": true |
"required": true |
||
⚫ | |||
⚫ | |||
⚫ | |||
"description": "The angle or direction that the gradient points to", |
|||
⚫ | |||
⚫ | |||
"default": "90deg" |
|||
} |
} |
||
}, |
}, |
||
"description": "Adds a gradient to text", |
"description": "Adds a gradient to text", |
||
" |
"paramOrder": [ |
||
"1", |
|||
"3", |
|||
"angle" |
|||
] |
|||
} |
} |
||
</templatedata> |
</templatedata> |
Latest revision as of 11:53, 20 December 2019
Usage[]
Adds a gradient to text
Parameter | Description | Type | Status | |
---|---|---|---|---|
Color data | 1 | Enter the color data separated by commas. See linear-gradient documentation for more info.
| String | required |
Content | 3 | The text that'll have a gradient
| Content | required |
Gradient angle | angle | The angle or direction that the gradient points to
| String | optional |