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
reptiloid -> swamp |
added third parameter to display as itemLink (handles water (element)) |
||
| Line 1: | Line 1: | ||
<onlyinclude>{{#switch: {{{2|}}} | <onlyinclude>{{#vardefine:element|{{#switch: {{{2|}}} | ||
| resistance = {{#switch: {{lc:{{{1|}}}}} | | resistance = {{#switch: {{lc:{{{1|}}}}} | ||
| human = holy | | human = holy | ||
| dwarven = electric | | dwarven = electric | ||
| demon = fire | | demon = fire | ||
| elven = ice | | elven = ice | ||
| nature = plant | | nature = plant | ||
| swamp = poison | | swamp = poison | ||
| desert = water | | desert = water | ||
| barbarian = earth | | barbarian = earth | ||
| undead = dark | | undead = dark | ||
}} | }} | ||
| weakness = {{#switch: {{lc:{{{1|}}}}} | | weakness = {{#switch: {{lc:{{{1|}}}}} | ||
| human = poison | | human = poison | ||
| dwarven = plant | | dwarven = plant | ||
| demon = water | | demon = water | ||
| elven = earth | | elven = earth | ||
| nature = fire | | nature = fire | ||
| swamp = ice | | swamp = ice | ||
| desert = electric | | desert = electric | ||
| barbarian = dark | | barbarian = dark | ||
| undead = holy | | undead = holy | ||
}}}}</onlyinclude><noinclude>{{doc}} | }}}}}}{{#if:{{{3|}}} | ||
| {{#ifeq:{{#var:element}}|water | |||
| {{ItemLink|water (element)|text=water}} | |||
| {{ItemLink|{{#var:element}}}} | |||
}} | |||
| {{#var:element}} | |||
}}</onlyinclude><noinclude>{{doc}} | |||
[[Category:Info templates]]</noinclude> | [[Category:Info templates]]</noinclude> | ||
Revision as of 22:37, 12 November 2025
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}}
holy
{{kingdom bonus|human|weakness|1}}
{{kingdom bonus|demon|weakness|1}}
other elements
plant
File:Earth.png earth
fire
ice
electric
dark
File:Holy.png holy


