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

From Super Fantasy Kingdom Official Wiki
fixed link of unit and damage type
removed redundant background parameter
Line 1: Line 1:
<includeonly><div class="card-container">
<includeonly><div class="card-container" style="display:inline-block;">
   <div class="card-background card-background-{{{background|invalid}}}"></div>
   <div class="card-background card-background-{{#ifeq:{{{damageType|}}}|physical|physical|magical}}"></div>
   <div class="card-frame"></div>
   <div class="card-frame"></div>
   <div class="card-indicator-background">
   <div class="card-indicator-background">
Line 13: Line 13:
* <code>name</code>: Name of the unit, e.g. <code>Crossbowman</code>
* <code>name</code>: Name of the unit, e.g. <code>Crossbowman</code>
* <code>kingdom</code>: Name of the kingdom, e.g. <code>elven</code>
* <code>kingdom</code>: Name of the kingdom, e.g. <code>elven</code>
* <code>background</code>: can be <code>magical</code> or <code>physical</code>
* <code>damageType</code>: can be <code>magical</code> or <code>physical</code>
* <code>damageType</code>: e.g. <code>magic</code>


==Example==
==Example==
Line 20: Line 19:
| name = Deathpriest
| name = Deathpriest
| kingdom = undead
| kingdom = undead
| background = magical
| damageType = magic
| damageType = magic
}}
{{card
| name = Crossbowman
| kingdom = human
| damageType = physical
}}
{{card
| name = Leech
| kingdom = swamp
| damageType = physical
}}</nowiki>
}}</nowiki>
{{card
{{card
| name = Deathpriest
| name = Deathpriest
| kingdom = undead
| kingdom = undead
| background = magical
| damageType = magic
| damageType = magic
}}
{{card
| name = Crossbowman
| kingdom = human
| damageType = physical
}}
{{card
| name = Leech
| kingdom = swamp
| damageType = physical
}}
}}
[[category:display templates]]</noinclude>
[[category:display templates]]</noinclude>

Revision as of 23:21, 3 November 2025

Displays a unit in a card like display.

Parameters

  • name: Name of the unit, e.g. Crossbowman
  • kingdom: Name of the kingdom, e.g. elven
  • damageType: can be magical or physical

Example

{{card
| name = Deathpriest
| kingdom = undead
| damageType = magic
}}
{{card
| name = Crossbowman
| kingdom = human
| damageType = physical
}}
{{card
| name = Leech
| kingdom = swamp
| damageType = physical
}}
Deathpriest
Crossbowman
Leech