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:Item: Difference between revisions
From Super Fantasy Kingdom Official Wiki
not linked to main Item page any more |
fixed link and tooltip |
||
| Line 1: | Line 1: | ||
<includeonly>{{#vardefine:effectText|{{#cargo_query:tables=Items | <includeonly>{{#vardefine:effectText|{{#cargo_query:tables=Items | ||
|where=name="{{{1|}}}" | |where=name="{{{1|}}}" | ||
|fields=effect | |fields={{#if:{{{inline|}}}|effect|tooltip}} | ||
|default= | |default= | ||
}}}}<!-- | }}}}<!-- | ||
| Line 8: | Line 8: | ||
|fields=name | |fields=name | ||
}}}}}}<!-- | }}}}}}<!-- | ||
-->{{#if:{{{inline|}}} | -->{{ItemLink|{{#switch: {{lc:{{{1|}}}}} | ||
| shield = Shield (relic)<!--ADD SPECIFIC PAGES HERE LIKE THIS--> | |||
| #default = {{{1|}}} | |||
}}|{{#if:{{{inline|}}} | |||
|{{{1|}}} | |{{{1|}}} | ||
|{{Tooltip|{{{1|}}}|{{#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> | ||
Latest revision as of 22:53, 4 March 2026
Displays an ItemLink for an item with its effects as tooltip.
Example
{{Item|Area (item)}}
{{Item|Area (item)|inline=1}}
Area (item) (Increase
Area by 15%.)


