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

From Super Fantasy Kingdom Official Wiki
wgg>Cadaei
cargo storing
reverting to previous state before testing
Tag: Manual revert
 
(25 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>{{infobox header|name={{{name|{{PAGENAME}}}}}|image={{{image|{{PAGENAME}}.png}}}}}
<includeonly>
{{infobox data row | Effect | {{{effect|}}}}}
<infobox>
{{infobox data row | Requirement |{{{requirement|}}}}}
  <title source="title">
{{infobox data row | {{tooltip|Beneficiaries|Who profits from this relic}} |{{{beneficiaries|}}}}}
    <default>{{PAGENAME}}</default>
{{infobox footer}}
  </title>
[[Category:Relics]]
  <image source="image" />
{{#if:{{#var:noCargo}}||{{#cargo_store:_table=Relics
  <data source="caption"/>
|name={{{name|{{PAGENAME}}}}}}}}}</includeonly><noinclude>
  <data source="kingdom">
    <label>Kingdom</label>
    <format>{{kingdomDisplay|{{{kingdom|}}}|1}}</format>
  </data>
  <data source="effect">
    <label>Effect</label>
  </data>
  <data source="unlocked">
    <label>Unlocked</label>
  </data>
  <data source="requirement">
    <label>Requirement</label>
  </data>
  <data source="beneficiaries">
    <label>{{tooltip|Beneficiaries|Who profits from this relic}}</label>
  </data>
  <data source="type">
    <label>Type</label>
  </data>
</infobox><!--
-->{{#if:{{#var:noAutoCategories}}||[[Category:Relics]]}}<!--
-->{{#if:{{#var:noCargo}}||{{#cargo_store:_table=Relics
|name={{{title|{{#titleparts:{{PAGENAME}}<!-- -->}}}}}
|effect={{{effect|}}}
|effectPlain={{{effectPlain|}}}
|requirement={{{requirement|}}}
|beneficiaries={{{beneficiaries|}}}
|type={{{type|}}}
}}}}</includeonly><noinclude>{{noCargo}}{{noAutoCategories}}
This is an infobox template for [[relics]].
This is an infobox template for [[relics]].
The <code>effectPlain</code> parameter should contain the effect without markup, intended to be shown in a simple tooltip.
Use it on relic pages, e.g. like this
Use it on relic pages, e.g. like this
<pre>
<pre>
{{infobox relic
{{infobox relic
| name = Holy Water
| title = Holy Water
| image = Holy Water.png
| image = Holy Water.png
| caption = Holy
| kingdom = Undead
| effect = Holy damage also applies {{effect|wet}}
| effect = Holy damage also applies {{effect|wet}}
| effectPlain = Holy damage also applies wet
| unlocked = level 4
| requirement = [[Monk]]
| requirement = [[Monk]]
| beneficiaries = [[Monk]]
| beneficiaries = [[Monk]]
Line 19: Line 52:
</pre>
</pre>
{{infobox relic
{{infobox relic
| name = Holy Water
| title = Holy Water
| image = Holy Water.png
| image = Holy Water.png
| caption = Holy
| kingdom = Undead
| effect = Holy damage also applies {{effect|wet}}
| effect = Holy damage also applies {{effect|wet}}
| effectPlain = Holy damage also applies wet
| unlocked = level 4
| requirement = [[Monk]]
| requirement = [[Monk]]
| beneficiaries = [[Monk]]
| beneficiaries = [[Monk]]
Line 28: Line 65:
|name=String
|name=String
|effect=Wikitext string
|effect=Wikitext string
|effectPlain=String
|requirement=Wikitext string
|requirement=Wikitext string
|beneficiaries=Wikitext string
|beneficiaries=Wikitext string
|type=String
}}
}}
[[Category:Infobox templates]]
[[Category:Infobox templates]]
[[Category:Cargo storing templates]]</noinclude>
[[Category:Cargo storing templates]]</noinclude>

Latest revision as of 17:27, 28 June 2026

This is an infobox template for relics. The effectPlain parameter should contain the effect without markup, intended to be shown in a simple tooltip. Use it on relic pages, e.g. like this

{{infobox relic
| title = Holy Water
| image = Holy Water.png
| caption = Holy
| kingdom = Undead
| effect = Holy damage also applies {{effect|wet}}
| effectPlain = Holy damage also applies wet
| unlocked = level 4
| requirement = [[Monk]]
| beneficiaries = [[Monk]]
}}

This template defines the table "Relics". View table.