Please note that some information on this wiki is still based on the demo version.
If you notice any errors, feel free to correct them.

Template:Effect: Difference between revisions

From Super Fantasy Kingdom Official Wiki
wgg>Cadaei
burn
add named arg for fix?
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{lc:{{{1|}}}}}
<includeonly>{{#vardefine:effectText|{{#cargo_query:tables=Effects
| bless = {{#vardefine:effectText|Holy Damage}}
|where=name="{{{1|}}}"
| burn = {{#vardefine:effectText|unknown effect, a text can be added at Template:Effect}}
|fields=effect
| rejuvenate = {{#vardefine:effectText|Rejuvenate X: Regenerate X health per second}}
|default=
| shock | shocked = {{#vardefine:effectText|Shock increases chance to receive critical hits by 25 %}}
|named args=yes
| sleep = {{#vardefine:effectText|Sleep immobilizes the target until it gets attacked}}
}}}}<!--
| stun | stunned = {{#vardefine:effectText|Stun immobilizes target for 1 s}}
-->{{#if:{{#var:effectText}}{{{inline|}}}||{{#vardefine:effectText|{{{1|}}} is an unknown effect, you can add effects on the Effects page or use one of the following available names: <!--
| taunt | taunted = {{#vardefine:effectText|Taunt attracts targets for 5 s}}
-->{{#cargo_query:table=Effects
| wet = {{#vardefine:effectText|+10 % cooldown, -10 % movement speed}}
|fields=name
| bleeding = {{#vardefine:effectText|unknown effect, a text can be added at Template:Effect}}
|named args=yes
| {{#vardefine:effectText|unknown effect, a text can be added at Template:Effect}}
}}}}}}<!--
}}[[Effects|{{Tooltip|{{{1|}}}|{{#var:effectText}}}}]]</includeonly><noinclude>{{doc}}
-->[[{{{1|}}}|{{#if:{{{inline|}}}
[[category:formatting templates]]</noinclude>
|{{{2|{{{1|}}}}}}]]<nowiki/> {{#var:effectText}}
|{{Tooltip|{{{2|{{{1|}}}}}}|{{#var:effectText}}}}]]
}}</includeonly><noinclude>{{doc}}
[[Category:Formatting templates]]
[[Category:Cargo query templates]]</noinclude>

Latest revision as of 18:50, 11 May 2026

File:Template-info.svg Documentation Edit this documentation at Template:Effect/doc.
(edit • history • purge)

Explains a status effect in a tooltip. A second optional parameter can be used to display a different text. The data is stored in the cargo table Special:CargoTables/Effects via Template:EffectStore.

Example

{{effect|Taunt}}

Taunt

{{effect|Taunt|Taunted}}

Taunted

{{effect|Taunt|inline=1}}

Taunt Taunt attracts targets for 5s