Template:TextAnimations: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<templatestyles src="TextAnimations/styles.css" /><span class="text-animation-container {{#switch:{{lc:{{{Wavy|}}}}}|1|true|yes=wavy}} {{#switch:{{lc:{{{Rainbow|}}}}}|1|true|yes=rainbow}} {{#switch:{{lc:{{{Bold|}}}}}|1|true|yes=force-bold}} {{#switch:{{lc:{{{Italic|}}}}}|1|true|yes=force-italic}}">{{{Text|}}}</span><noinclude> | <templatestyles src="TextAnimations/styles.css" /><span class="text-animation-container {{#switch:{{lc:{{{Wavy|}}}}}|1|true|yes=wavy}} {{#switch:{{lc:{{{Rainbow|}}}}}|1|true|yes=rainbow}} {{#switch:{{lc:{{{Bold|}}}}}|1|true|yes=force-bold}} {{#switch:{{lc:{{{Italic|}}}}}|1|true|yes=force-italic}}" style="{{#if:{{{Color|}}}|color: {{{Color|}}};}} {{#if:{{{Background|}}}|background-color: {{{Background|}}};}}">{{{Text|}}}</span><noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | |||
"Text": { | |||
"label": "Text", | |||
"description": "The text you want to animate.", | |||
"type": "string", | |||
"required": true, | |||
"suggested": true | |||
}, | |||
"Wavy": { | |||
"label": "Wavy Animation", | |||
"description": "Enable the vertical wave effect.", | |||
"type": "boolean", | |||
"default": "1" | |||
}, | |||
"Rainbow": { | |||
"label": "Rainbow Effect", | |||
"description": "Enable the shifting rainbow color effect.", | |||
"type": "boolean", | |||
"default": "1" | |||
}, | |||
"Bold": { | |||
"label": "Bold", | |||
"description": "Force the animated text to be bold.", | |||
"type": "boolean", | |||
"default": "1" | |||
}, | |||
"Italic": { | |||
"label": "Italic", | |||
"description": "Force the animated text to be italicized.", | |||
"type": "boolean", | |||
"default": "1" | |||
}, | |||
"Color": { | |||
"label": "Text Color", | |||
"description": "Static text color (e.g., 'red', '#ff0000'). Overridden by Rainbow effect.", | |||
"type": "string" | |||
}, | |||
"Background": { | |||
"label": "Background Color", | |||
"description": "Background color for the text span (e.g., 'yellow', 'rgba(0,0,0,0.1)').", | |||
"type": "string" | |||
} | |||
}, | |||
"description": "Displays text with various animations and color effects.", | |||
"format": "inline" | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Revision as of 15:59, 16 March 2026
Displays text with various animations and color effects.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Text | Text | The text you want to animate. | String | required |
| Wavy Animation | Wavy | Enable the vertical wave effect.
| Boolean | optional |
| Rainbow Effect | Rainbow | Enable the shifting rainbow color effect.
| Boolean | optional |
| Bold | Bold | Force the animated text to be bold.
| Boolean | optional |
| Italic | Italic | Force the animated text to be italicized.
| Boolean | optional |
| Text Color | Color | Static text color (e.g., 'red', '#ff0000'). Overridden by Rainbow effect. | String | optional |
| Background Color | Background | Background color for the text span (e.g., 'yellow', 'rgba(0,0,0,0.1)'). | String | optional |