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 2nd optional parameter for display |
wgg>Cadaei added inline option to not use tooltip but effect text in parenthesis |
||
| Line 1: | Line 1: | ||
<includeonly>{{#vardefine:effectText|{{#cargo_query:tables=Effects | <includeonly>{{#vardefine:effectText|{{#cargo_query:tables=Effects | ||
|where=name= | |where=name="{{{1|}}}" | ||
|fields=effect | |fields=effect | ||
|default= | |default= | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#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 | ||
}}}}}}<!-- | }}}}}}<!-- | ||
-->[[Effects|{{Tooltip|{{{2|{{{1|}}}}}}|{{#var:effectText}}}}]]</includeonly><noinclude>{{doc}} | -->{{#if:{{{inline|}}} | ||
|[[Effects|{{{2|{{{1|}}}}}}]] ({{#var:effectText}}) | |||
|[[Effects|{{Tooltip|{{{2|{{{1|}}}}}}|{{#var:effectText}}}}]] | |||
}}</includeonly><noinclude>{{doc}} | |||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
[[Category:Cargo query templates]]</noinclude> | [[Category:Cargo query templates]]</noinclude> | ||
Revision as of 18:58, 27 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}}
Taunt (Taunt attracts targets for 5s)


