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
putting variance back to before adding rock |
added rock to element with suffix |
||
| Line 22: | Line 22: | ||
| undead = Holy | | undead = Holy | ||
}}}}}}{{#if:{{{3|}}} | }}}}}}{{#if:{{{3|}}} | ||
| {{# | | {{#switch: {{lc:{{#var:element}}}} | ||
| water | |||
| rock = {{ItemLink|{{#var:element}} (element)|text={{#var:element}}}} | |||
| {{ItemLink|{{#var:element}} | |||
}} | }} | ||
| {{#var:element}} | | {{#var:element}} | ||
}}</onlyinclude><noinclude>{{doc}} | }}</onlyinclude><noinclude>{{doc}} | ||
[[Category:Info templates]]</noinclude> | [[Category:Info templates]]</noinclude> | ||
Revision as of 10:29, 28 November 2025
{{#if:
|
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}}
{{#if: | Holy
{{kingdom bonus|human|weakness|1}}
{{#if:1 | Poison
{{kingdom bonus|demon|weakness|1}}
{{#if:1
|
Water (element)
other elements
{{#if:1
| Plant
{{#if:1
|
Rock (element)
{{#if:1
| Fire
{{#if:1
| Ice
{{#if:1
| Electric
{{#if:1
| Dark
{{#if:1
| Holy


