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

From Super Fantasy Kingdom Official Wiki
wgg>Cadaei
Created page with "<onlyinclude>{{#switch: {{{2|}}} | resistance = {{#switch: {{lc:{{{1|}}}}} | human = holy | dwarven = electric | demon = fire | elven = ice | nature = plant | reptiloid = poison | mystic = water | barbarian = earth | undead = dark }} | weakness = {{#switch: {{lc:{{{1|}}}}} | human = poison | dwarven = plant | demon = water | elven = earth | nature = fire | reptiloid = ice | mystic = electric | barbarian = dark | undead = holy }}}}</onlyinclude><noinclude>{{doc}} Catego..."
 
changed poison to in game name: toxic
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<onlyinclude>{{#switch: {{{2|}}}
<onlyinclude>{{#vardefine:element|{{#switch: {{{2|}}}
| resistance = {{#switch: {{lc:{{{1|}}}}}
| resistance = {{#switch: {{lc:{{{1|}}}}}
| human = holy
  | human = Light
| dwarven = electric
  | dwarven = Electric
| demon = fire
  | demon = Fire
| elven = ice
  | elven = Ice
| nature = plant
  | nature = Plant
| reptiloid = poison
  | swamp = Toxic
| mystic = water
  | desert = Water
| barbarian = earth
  | barbarian = Rock
| undead = dark
  | undead = Dark
}}
  }}
| weakness = {{#switch: {{lc:{{{1|}}}}}
| weakness = {{#switch: {{lc:{{{1|}}}}}
| human = poison
  | human = Toxic
| dwarven = plant
  | dwarven = Plant
| demon = water
  | demon = Water
| elven = earth
  | elven = Rock
| nature = fire
  | nature = Fire
| reptiloid = ice
  | swamp = Ice
| mystic = electric
  | desert = Electric
| barbarian = dark
  | barbarian = Dark
| undead = holy
  | undead = Light
}}}}</onlyinclude><noinclude>{{doc}}
}}}}}}{{#if:{{{3|}}}
| {{#switch: {{lc:{{#var:element}}}}
    | water
    | rock = {{ItemLink|{{#var:element}} (element)|text={{#var:element}}}}
    | {{ItemLink|{{#var:element}}}}
  }}
| {{#var:element}}
}}</onlyinclude><noinclude>{{doc}}
[[Category:Info templates]]</noinclude>
[[Category:Info templates]]</noinclude>

Latest revision as of 15:19, 27 June 2026

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

Returns the resistance or weakness of a unit depending on the according kingdom.

Parameters

1 - name of the kingdom
2 - resistance or weakness
3 - optional, if not empty the result will be displayed using itemLink

Example

{{kingdom bonus|human|resistance}}

Light

{{kingdom bonus|human|weakness|1}}

Toxic

{{kingdom bonus|demon|weakness|1}}

Water (element)


other elements

Plant Rock (element) Fire Ice Electric Dark Light