Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
You must create an account or log in to edit.

Template:Fading Text Effect: Difference between revisions

Template page
Content deleted Content added
No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="text-align:{{{align|center}}}; font-family:{{{font|var(--font-family-serif)}}}; color:{{{color|#ffffff}}};">
<div style="text-align:{{{align|center}}}; font-family:{{{font|var(--font-family-serif)}}}; color:{{{color|#ffffff}}};">
{{#ifexpr: {{{lines|4}}} >= 1 |
{{#vardefine:opacity|1.0}}
<span style="display:block; font-size:{{{fontsize|16px}}}; margin-bottom:{{{spacing|5px}}}; opacity:1; {{#ifeq:{{{glow|yes}}}|yes|text-shadow:0 0 8px {{{glowcolor|white}}}, 0 0 12px {{{glowcolor|#ccc}}};|text-shadow:none;}}">{{{text|Insert Text Here}}}</span>
{{#vardefine:i|1}}
{{#while:
| {{#ifexpr: {{#var:i}} <= {{#expr: {{{lines|4}}} }} | true | false }}
| <span style="
display: block;
margin-bottom: {{{spacing|5px}}};
opacity: {{#expr: {{#var:opacity}} round 2}};
{{#ifeq: {{{glow|yes}}} | yes
| text-shadow: 0 0 {{#expr: 8 - ({{#var:i}} * 2)}}px white, 0 0 {{#expr: 12 - ({{#var:i}} * 2)}}px #ccc;
| text-shadow: none;
}}
">{{{text|Insert Text Here}}}</span>
{{#vardefine:opacity|{{#expr: {{#var:opacity}} - (1/{{{lines|4}}}) }} }}
{{#vardefine:i|{{#expr: {{#var:i}} + 1}} }}
}}
}}
{{#ifexpr: {{{lines|4}}} >= 2 |
</div></includeonly>
<span style="display:block; font-size:{{{fontsize|16px}}}; margin-bottom:{{{spacing|5px}}}; opacity:0.6; {{#ifeq:{{{glow|yes}}}|yes|text-shadow:0 0 6px {{{glowcolor|white}}}, 0 0 10px {{{glowcolor|#aaa}}};|text-shadow:none;}}">{{{text|Insert Text Here}}}</span>
}}
{{#ifexpr: {{{lines|4}}} >= 3 |
<span style="display:block; font-size:{{{fontsize|16px}}}; margin-bottom:{{{spacing|5px}}}; opacity:0.3; {{#ifeq:{{{glow|yes}}}|yes|text-shadow:0 0 4px {{{glowcolor|white}}}, 0 0 6px {{{glowcolor|#888}}};|text-shadow:none;}}">{{{text|Insert Text Here}}}</span>
}}
{{#ifexpr: {{{lines|4}}} >= 4 |
<span style="display:block; font-size:{{{fontsize|16px}}}; margin-bottom:{{{spacing|5px}}}; opacity:0.1; {{#ifeq:{{{glow|yes}}}|yes|text-shadow:0 0 2px {{{glowcolor|white}}}, 0 0 4px {{{glowcolor|#666}}};|text-shadow:none;}}">{{{text|Insert Text Here}}}</span>
}}
</div>


<noinclude>
<noinclude>
Line 25: Line 21:
"label": "Text",
"label": "Text",
"type": "string",
"type": "string",
"description": "The line of text to display fading multiple times",
"default": "Insert Text Here"
"default": "Insert Text Here"
},
},
"color": {
"color": {
"label": "Text Color",
"label": "Color",
"type": "string",
"type": "string",
"description": "Text color (applies to the first line)",
"default": "#ffffff"
"default": "#ffffff"
},
},
"font": {
"font": {
"label": "Font Family",
"label": "Font",
"type": "string",
"type": "string",
"default": "serif"
"description": "Font to use (e.g., Cinzel, Georgia, etc.)",
"default": "'Cinzel', serif"
},
},
"align": {
"align": {
"label": "Text Alignment",
"label": "Text Alignment",
"type": "string",
"type": "string",
"description": "Text alignment: left, center, or right",
"default": "center"
"default": "center"
},
},
"glow": {
"glow": {
"label": "Glow Effect",
"label": "Glow",
"type": "string",
"type": "string",
"description": "Set to 'yes' or 'no' to enable/disable glowing text shadow",
"default": "yes"
"default": "yes"
},
},
"lines": {
"glowcolor": {
"label": "Number of Fading Lines",
"label": "Glow Color",
"type": "number",
"type": "string",
"default": "#ccc"
"description": "How many faded versions of the text to show (max 10)",
},
"default": "4"
"fontsize": {
"label": "Font Size",
"type": "string",
"default": "16px"
},
},
"spacing": {
"spacing": {
"label": "Spacing Between Lines",
"label": "Line Spacing",
"type": "string",
"type": "string",
"description": "Vertical margin between each text instance (e.g., 10px or 1rem)",
"default": "5px"
"default": "5px"
}
}
},
},
"description": "Displays fading text repeated a chosen number of times with customizable glow, spacing, and style.",
"description": "Displays fading text repeated several times with customizable glow, alignment, font, and spacing.",
"format": "inline"
"format": "inline"
}
}
</templatedata>
</templatedata>
{{Fading Text Effect|font=comic sans|text=I should be in the center - and also I should be glowing |color=purple|glowcolor=green}}
{{Fading Text Effect|text=I should be on the left - and also I shouldn't be glowing |glow=no|fontsize=16px|spacing=6px|color=blue|align=left}}
{{Fading Text Effect|text=I should be on the right - and I also should be glowing|align=right|glowcolor=orange|color=red}}
</noinclude>
</noinclude>
{{Fading Text Effect|text=w|align=right|glow=no|lines=7|spacing=6px}}

Latest revision as of 09:40, March 30, 2025

Insert Text Here Insert Text Here Insert Text Here Insert Text Here


Displays fading text repeated several times with customizable glow, alignment, font, and spacing.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Texttext

no description

Default
Insert Text Here
Stringoptional
Colorcolor

no description

Default
#ffffff
Stringoptional
Fontfont

no description

Default
serif
Stringoptional
Text Alignmentalign

no description

Default
center
Stringoptional
Glowglow

no description

Default
yes
Stringoptional
Glow Colorglowcolor

no description

Default
#ccc
Stringoptional
Font Sizefontsize

no description

Default
16px
Stringoptional
Line Spacingspacing

no description

Default
5px
Stringoptional

I should be in the center - and also I should be glowing I should be in the center - and also I should be glowing I should be in the center - and also I should be glowing I should be in the center - and also I should be glowing


I should be on the left - and also I shouldn't be glowing I should be on the left - and also I shouldn't be glowing I should be on the left - and also I shouldn't be glowing I should be on the left - and also I shouldn't be glowing


I should be on the right - and I also should be glowing I should be on the right - and I also should be glowing I should be on the right - and I also should be glowing I should be on the right - and I also should be glowing