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 = | | human = Light | ||
| dwarven = | | dwarven = Electric | ||
| demon = | | demon = Fire | ||
| elven = | | elven = Ice | ||
| nature = | | nature = Plant | ||
| | | swamp = Toxic | ||
| | | desert = Water | ||
| barbarian = | | barbarian = Rock | ||
| undead = | | undead = Dark | ||
}} | }} | ||
| weakness = {{#switch: {{lc:{{{1|}}}}} | | weakness = {{#switch: {{lc:{{{1|}}}}} | ||
| human = | | human = Toxic | ||
| dwarven = | | dwarven = Plant | ||
| demon = | | demon = Water | ||
| elven = | | elven = Rock | ||
| nature = | | nature = Fire | ||
| | | swamp = Ice | ||
| | | desert = Electric | ||
| barbarian = | | barbarian = Dark | ||
| undead = | | 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
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


