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:Spell: Difference between revisions

From Super Fantasy Kingdom Official Wiki
Created page with "<includeonly>{{#vardefine:effectText|{{#cargo_query:tables=Spells |where=name="{{{1|}}} (spell)" |fields={{#if:{{{inline|}}}|effect|tooltip}} |default= }}}}<!-- -->{{#if:{{#var:effectText}}{{{inline|}}}||{{#vardefine:effectText|{{{1|}}} is an unknown spell, you can add spells on their own Spells page or use one of the following available names: <!-- -->{{#cargo_query:table=Spells |fields=name }}}}}}<!-- -->{{ItemLink|{{#switch: {{lc:{{{1|}}}}} | shield = Shield (relic)<!..."
 
No edit summary
Line 1: Line 1:
<includeonly>{{#vardefine:effectText|{{#cargo_query:tables=Spells
<includeonly>{{#vardefine:effectText|{{#cargo_query:tables=Spells
|where=name="{{{1|}}} (spell)"
|where=name="{{{1|}}}"
|fields={{#if:{{{inline|}}}|effect|tooltip}}
|fields={{#if:{{{inline|}}}|effect|tooltip}}
|default=
|default=
Line 10: Line 10:
-->{{ItemLink|{{#switch: {{lc:{{{1|}}}}}
-->{{ItemLink|{{#switch: {{lc:{{{1|}}}}}
| shield = Shield (relic)<!--ADD SPECIFIC PAGES HERE LIKE THIS-->
| shield = Shield (relic)<!--ADD SPECIFIC PAGES HERE LIKE THIS-->
| #default = {{{1|}}} (spell)
| #default = {{{1|}}}
}}|{{#if:{{{inline|}}}
}}|{{#if:{{{inline|}}}
|{{{1|}}} (spell)
|{{{1|}}}
|{{Tooltip|{{{1|}}} (spell)|{{#var:effectText}}}}}}}}{{#if:{{{inline|}}}|<nowiki/> {{#var:effectText}}}}</includeonly><noinclude>{{doc}}
|{{Tooltip|{{{1|}}}|{{#var:effectText}}}}}}}}{{#if:{{{inline|}}}|<nowiki/> {{#var:effectText}}}}</includeonly><noinclude>{{doc}}
[[Category:Formatting templates]]
[[Category:Formatting templates]]
[[Category:Cargo query templates]]</noinclude>
[[Category:Cargo query templates]]</noinclude>

Revision as of 00:16, 11 May 2026

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

Displays an ItemLink for a spell with its effects as tooltip.

Example

{{Spell|Targeting (spell)}}

Targeting (spell)

{{Spell|Targeting (spell)|inline=1}}

Targeting (spell) Manually target Monsters on the battlefield