Jump to content

Template:TextAnimations: Difference between revisions

From FC1
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
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}}" style="{{#if:{{{Color|}}}|color: {{{Color|}}};}} {{#if:{{{Background|}}}|background-color: {{{Background|}}};}}">{{{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:{{{Glow|}}}}}|1|true|yes=force-glow}} {{#switch:{{lc:{{{Shadow|}}}}}|1|true|yes=force-shadow}} {{#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>
{
{
Line 5: Line 5:
         "Text": {
         "Text": {
             "label": "Text",
             "label": "Text",
            "description": "The text you want to animate.",
             "type": "string",
             "type": "string",
             "required": true,
             "required": true
            "suggested": true
         },
         },
         "Wavy": {
         "Wavy": {
             "label": "Wavy Animation",
             "label": "Wavy Animation",
            "description": "Enable the vertical wave effect.",
             "type": "boolean",
             "type": "boolean",
             "default": "1"
            "autovalue": "1",
        },
             "default": "0"
        },
         "Rainbow": {
         "Rainbow": {
             "label": "Rainbow Effect",
             "label": "Rainbow Effect",
            "description": "Enable the shifting rainbow color effect.",
             "type": "boolean",
             "type": "boolean",
             "default": "1"
            "autovalue": "1",
             "default": "0"
        },
        "Glow": {
            "label": "Glow Effect",
            "description": "Adds a bright outer glow based on the text color.",
            "type": "boolean",
            "autovalue": "1",
            "default": "0"
        },
        "Shadow": {
            "label": "Shadow Effect",
            "description": "Adds a soft drop shadow to the text.",
            "type": "boolean",
            "autovalue": "1",
            "default": "0"
         },
         },
         "Bold": {
         "Bold": {
             "label": "Bold",
             "label": "Bold",
            "description": "Force the animated text to be bold.",
             "type": "boolean",
             "type": "boolean",
             "default": "1"
            "autovalue": "1",
             "default": "0"
         },
         },
         "Italic": {
         "Italic": {
             "label": "Italic",
             "label": "Italic",
            "description": "Force the animated text to be italicized.",
             "type": "boolean",
             "type": "boolean",
             "default": "1"
            "autovalue": "1",
             "default": "0"
         },
         },
         "Color": {
         "Color": {
             "label": "Text Color",
             "label": "Text Color",
            "description": "Static text color (e.g., 'red', '#ff0000'). Overridden by Rainbow effect.",
             "type": "string"
             "type": "string"
         },
         },
         "Background": {
         "Background": {
             "label": "Background Color",
             "label": "Background Color",
            "description": "Background color for the text span (e.g., 'yellow', 'rgba(0,0,0,0.1)').",
             "type": "string"
             "type": "string"
         }
         }

Latest revision as of 18:59, 16 March 2026

Displays text with various animations and color effects.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
TextText

no description

Stringrequired
Wavy AnimationWavy

no description

Default
0
Auto value
1
Booleanoptional
Rainbow EffectRainbow

no description

Default
0
Auto value
1
Booleanoptional
Glow EffectGlow

Adds a bright outer glow based on the text color.

Default
0
Auto value
1
Booleanoptional
Shadow EffectShadow

Adds a soft drop shadow to the text.

Default
0
Auto value
1
Booleanoptional
BoldBold

no description

Default
0
Auto value
1
Booleanoptional
ItalicItalic

no description

Default
0
Auto value
1
Booleanoptional
Text ColorColor

no description

Stringoptional
Background ColorBackground

no description

Stringoptional