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
missing closing brackets
holy->light
Line 1: Line 1:
<onlyinclude>{{#vardefine:element|{{#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
Line 20: Line 20:
   | desert = Electric
   | desert = Electric
   | barbarian = Dark
   | barbarian = Dark
   | undead = Holy
   | undead = Light
}}}}}}{{#if:{{{3|}}}
}}}}}}{{#if:{{{3|}}}
| {{#switch: {{lc:{{#var:element}}}}
| {{#switch: {{lc:{{#var:element}}}}

Revision as of 11:05, 28 November 2025

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}}

Poison

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

Water (element)


other elements

Plant Rock (element) Fire Ice Electric Dark Light