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

From Super Fantasy Kingdom Official Wiki
wgg>Cadaei
Created page with "<includeonly>{{infobox header|name={{{name|{{PAGENAME}}}}}|image={{{image|{{PAGENAME}}.png}}}|info={{{info|}}}}}<!-- -->{{infobox data row | Appears on day | {{#if:{{{appearsOnDay|}}}|{{tooltip|{{{appearsOnDay}}}|based on Curse 0, will appear one day earlier per higher Curse level}}}}<!-- -->{{infobox footer}} Category:Units {{#if:{{#var:noCargo}}||{{#cargo_store:_table=Monsters |name={{{name|{{PAGENAME}}}}} }}}}</includeonly><noinclude> This is an infobox template f..."
 
converted to pi
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{infobox header|name={{{name|{{PAGENAME}}}}}|image={{{image|{{PAGENAME}}.png}}}|info={{{info|}}}}}<!--
<includeonly>
-->{{infobox data row | Appears on day | {{#if:{{{appearsOnDay|}}}|{{tooltip|{{{appearsOnDay}}}|based on Curse 0, will appear one day earlier per higher Curse level}}}}<!--
<infobox>
-->{{infobox footer}}
  <title source="title">
[[Category:Units]]
    <default>{{PAGENAME}}</default>
  </title>
  <image source="image" />
  <data source="caption"/>
  <data source="kingdom">
    <label>Kingdom</label>
    <format>{{kingdomDisplay|{{{kingdom|}}}|1}}</format>
  </data>
  <data source="stats">
    <label>Stats</label>
    <format>{{#if:{{{damage|}}}{{{health|}}}{{{shield|}}}{{{criticalChance|}}}{{{physicalDefense|}}}{{{magicalDefense|}}}|{{stats|
| dm = {{{damage|}}}
| hp = {{{health|}}}
| sh = {{{shield|}}}
| cr = {{#if:{{{criticalChance|}}}|{{{criticalChance|}}}%}}
| pd = {{#if:{{{physicalDefense|}}}|{{{physicalDefense|}}}%}}
| md = {{#if:{{{magicalDefense|}}}|{{{magicalDefense|}}}%}}
}}}}</format>
  </data>
  <data source="appearanceRank">
    <label>Appears first on day</label>
    <format>{{#if:{{{appearanceRank|}}}|{{MonsterOnDay|{{{appearanceRank}}}}}<div style="font-size:0.8em; text-align:left;">The monster can also appear on later days.</div>}}</format>
  </data>
</infobox>
[[Category:Monsters]]
{{#if:{{#var:noCargo}}||{{#cargo_store:_table=Monsters
{{#if:{{#var:noCargo}}||{{#cargo_store:_table=Monsters
|name={{{name|{{PAGENAME}}}}}
|name={{{title|{{PAGENAME}}}}}
}}}}</includeonly><noinclude>
|appearanceRank={{{appearanceRank|}}}
This is an infobox template for [[monsters]].
|damage={{{damage|}}}
Use it on monster pages, e.g. like this
|health={{{health|}}}
<pre>
|shield={{{shield|}}}
{{infobox monster
|criticalChance={{{criticalChance|}}}
| name = Skeleton
|physicalDefense={{{physicalDefense|}}}
| image = Skeleton.png
|magicalDefense={{{magicalDefense|}}}
| appearsOnDay = 1
}}}}</includeonly><noinclude>{{doc}}
}}
</pre>
{{#cargo_declare:_table=Monsters
{{#cargo_declare:_table=Monsters
|name=String
|name=String
|appearsOnDay=Integer
|appearanceRank=Integer
|damage=Integer
|health=Integer
|shield=Integer
|criticalChance=Integer
|physicalDefense=Integer
|magicalDefense=Integer
}}
}}
[[Category:infobox templates]]
[[Category:infobox templates]]
[[Category:Cargo storing templates]]</noinclude>
[[Category:Cargo storing templates]]</noinclude>

Latest revision as of 23:43, 27 October 2025

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

This is an infobox template for monsters. It will add the info to Special:CargoTables/Monsters.

The appearing rank is the day of the first appearance on curse 0 ignoring offsets by bosses. For example

  • when a monster on curse 0 appears first on day 1 the rank is 1
  • when a monster on curse 0 appears first on day 8 the rank is 7 because the boss on day 7 is fixed without rank

Use it on monster pages, e.g. like this

{{infobox monster
| damage = 8
| health = 44
| shield = 0
| criticalChance = 0
| physicalDefense = 0
| magicalDefense = 0
| appearanceRank = 9
}}

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