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

From Super Fantasy Kingdom Official Wiki
wgg>Cadaei
using double quotes to avoid issue with genetive apostroph
m 9 revisions imported
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:relicText|{{#cargo_query:tables=Relics
<includeonly>{{#vardefine:relicText|{{#cargo_query:tables=Relics
|where=name="{{{1|}}}"
|where=name="{{{1|}}}"
|fields=effectPlain
|fields={{#if:{{{inline|}}}|effect|effectPlain}}
|default=
|default=
}}}}<!--
}}}}<!--
-->{{#if:{{#var:relicText}}||{{#vardefine:relicText|{{{1|}}} is an unknown relic, you can add it as a relic page or use one of the following available names: <!--
-->{{#if:{{#var:relicText}}{{{inline|}}}||{{#vardefine:relicText|{{{1|}}} is an unknown relic, you can add it as a relic page or use one of the following available names: <!--
-->{{#cargo_query:table=Relics
-->{{#cargo_query:table=Relics
|fields=name
|fields=name
}}}}}}<!--
}}}}}}<!--
-->{{ItemLink|{{{2|{{{1|}}}}}}|{{Tooltip|{{{1|}}}|{{#var:relicText}}}}}}</includeonly><noinclude>{{doc}}
-->{{ItemLink|{{#switch: {{lc:{{{1|}}}}}
| shield = Shield (relic)
| #default = {{{1|}}}
}}|{{#if:{{{inline|}}}
|{{{1|}}}
|{{Tooltip|{{{1|}}}|{{#var:relicText}}}}}}}}{{#if:{{{inline|}}}|<nowiki/> ({{#var:relicText}})}}</includeonly><noinclude>{{doc}}
[[Category:Formatting templates]]
[[Category:Formatting templates]]
[[Category:Cargo query templates]]</noinclude>
[[Category:Cargo query templates]]</noinclude>

Latest revision as of 23:46, 21 October 2025

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

Displays an itemLink for a relic with its effects as tooltip.

Example

{{relic|Holy Water}}

Holy Water

{{relic|Holy Water|inline=1}}

Holy Water ( Light also applies Wet, Light also applies Wet, Light also applies Wet)