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/doc: Difference between revisions

From Super Fantasy Kingdom Official Wiki
3rd parameter to display as itemLink
added rest to see linked elements
 
Line 15: Line 15:
  <nowiki>{{kingdom bonus|demon|weakness|1}}</nowiki>
  <nowiki>{{kingdom bonus|demon|weakness|1}}</nowiki>
{{kingdom bonus|demon|weakness|1}}
{{kingdom bonus|demon|weakness|1}}
<nowiki>other elements</nowiki>
{{kingdom bonus|dwarven|weakness|1}}
{{kingdom bonus|elven|weakness|1}}
{{kingdom bonus|nature|weakness|1}}
{{kingdom bonus|swamp|weakness|1}}
{{kingdom bonus|desert|weakness|1}}
{{kingdom bonus|barbarian|weakness|1}}
{{kingdom bonus|undead|weakness|1}}
<noinclude>[[Category:Template documentation]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 10:24, 28 November 2025

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

Toxic

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

Water (element)


other elements

Plant Rock (element) Fire Ice Electric Dark Light