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 space fix |
wgg>Cadaei changed effect info source to cargo table |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#vardefine:effectText|{{#cargo_query:tables=Effects | ||
|where=name='{{{1|}}}' | |||
|fields=effect | |||
| | |default= | ||
| | }}}}<!-- | ||
| | -->{{#if:{{#var:effectText}}||{{#vardefine:effectText|unknown effect}} | ||
[[Category:Unknown effect template call]]}} | |||
[[Effects|{{Tooltip|{{{1|}}}|{{#var:effectText}}}}]]</includeonly><noinclude>{{doc}} | |||
[[Category:Formatting templates]] | |||
| | [[Category:Cargo query templates]]</noinclude> | ||
[[ | |||
Revision as of 21:58, 20 October 2023
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}}


