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
added rock to element with suffix |
changed poison to in game name: toxic |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<onlyinclude>{{#vardefine:element|{{#switch: {{{2|}}} | <onlyinclude>{{#vardefine:element|{{#switch: {{{2|}}} | ||
| resistance = {{#switch: {{lc:{{{1|}}}}} | | resistance = {{#switch: {{lc:{{{1|}}}}} | ||
| human = | | human = Light | ||
| dwarven = Electric | | dwarven = Electric | ||
| demon = Fire | | demon = Fire | ||
| elven = Ice | | elven = Ice | ||
| nature = Plant | | nature = Plant | ||
| swamp = | | swamp = Toxic | ||
| desert = Water | | desert = Water | ||
| barbarian = Rock | | barbarian = Rock | ||
| Line 12: | Line 12: | ||
}} | }} | ||
| weakness = {{#switch: {{lc:{{{1|}}}}} | | weakness = {{#switch: {{lc:{{{1|}}}}} | ||
| human = | | human = Toxic | ||
| dwarven = Plant | | dwarven = Plant | ||
| demon = Water | | demon = Water | ||
| Line 20: | Line 20: | ||
| desert = Electric | | desert = Electric | ||
| barbarian = Dark | | barbarian = Dark | ||
| undead = | | undead = Light | ||
}}}}}}{{#if:{{{3|}}} | }}}}}}{{#if:{{{3|}}} | ||
| {{#switch: {{lc:{{#var:element}}}} | | {{#switch: {{lc:{{#var:element}}}} | ||
| water | | water | ||
| rock = {{ItemLink|{{#var:element}} (element)|text={{#var:element}}}} | | rock = {{ItemLink|{{#var:element}} (element)|text={{#var:element}}}} | ||
| {{ItemLink|{{#var:element}} | | {{ItemLink|{{#var:element}}}} | ||
}} | }} | ||
| {{#var:element}} | | {{#var:element}} | ||
}}</onlyinclude><noinclude>{{doc}} | }}</onlyinclude><noinclude>{{doc}} | ||
[[Category:Info templates]]</noinclude> | [[Category:Info templates]]</noinclude> | ||
Latest revision as of 15:19, 27 June 2026
Returns the resistance or weakness of a unit depending on the according kingdom.
Parameters
1- name of the kingdom2-resistanceorweakness3- optional, if not empty the result will be displayed using itemLink
Example
{{kingdom bonus|human|resistance}}
Light
{{kingdom bonus|human|weakness|1}}
{{kingdom bonus|demon|weakness|1}}
other elements


