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
hopefully made a correct version of item with effect tooltip, still need to make cargo table |
fixed link and tooltip |
||
| (One intermediate revision by the same user not shown) | |||
| 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 | ||
}}}}}}<!-- | }}}}}}<!-- | ||
-->{{# | -->{{ItemLink|{{#switch: {{lc:{{{1|}}}}} | ||
| | | shield = Shield (relic)<!--ADD SPECIFIC PAGES HERE LIKE THIS--> | ||
| | | #default = {{{1|}}} | ||
}}</includeonly><noinclude>{{doc}} | }}|{{#if:{{{inline|}}} | ||
|{{{1|}}} | |||
|{{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%.)


