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
info for unknown effects
add named arg for fix?
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:effectText|{{#cargo_query:tables=Effects
<includeonly>{{#vardefine:effectText|{{#cargo_query:tables=Effects
|where=name='{{{1|}}}'
|where=name="{{{1|}}}"
|fields=effect
|fields=effect
|default=
|default=
|named args=yes
}}}}<!--
}}}}<!--
-->{{#if:{{#var:effectText}}||{{#vardefine:effectText|{{{1|}}} is an unknown effect, you can add effects on the Effects page or use one of the following available names: <!--
-->{{#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: <!--
-->{{#cargo_query:table=Effects
-->{{#cargo_query:table=Effects
|fields=name
|fields=name
}}}}
|named args=yes
[[Category:Unknown effect template call]]
}}}}}}<!--
}}<!--
-->[[{{{1|}}}|{{#if:{{{inline|}}}
-->[[Effects|{{Tooltip|{{{1|}}}|{{#var:effectText}}}}]]</includeonly><noinclude>{{doc}}
|{{{2|{{{1|}}}}}}]]<nowiki/> {{#var:effectText}}
|{{Tooltip|{{{2|{{{1|}}}}}}|{{#var:effectText}}}}]]
}}</includeonly><noinclude>{{doc}}
[[Category:Formatting templates]]
[[Category:Formatting templates]]
[[Category:Cargo query templates]]</noinclude>
[[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