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 link to effects page |
add named arg for fix? |
||
| (18 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{# | <includeonly>{{#vardefine:effectText|{{#cargo_query:tables=Effects | ||
|where=name="{{{1|}}}" | |||
|fields=effect | |||
| | |default= | ||
|named args=yes | |||
}}}}<!-- | |||
| | -->{{#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 | ||
|fields=name | |||
|named args=yes | |||
[[ | }}}}}}<!-- | ||
-->[[{{{1|}}}|{{#if:{{{inline|}}} | |||
|{{{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
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}}
{{effect|Taunt|Taunted}}
{{effect|Taunt|inline=1}}
Taunt Taunt attracts targets for 5s


