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
m 4 revisions imported
3rd parameter to display as itemLink
Line 4: Line 4:
: <code>1</code> - name of the kingdom
: <code>1</code> - name of the kingdom
: <code>2</code> - <code>resistance</code> or <code>weakness</code>
: <code>2</code> - <code>resistance</code> or <code>weakness</code>
: <code>3</code> - optional, if not empty the result will be displayed using itemLink


===Example===
===Example===
Line 9: Line 10:
{{kingdom bonus|human|resistance}}
{{kingdom bonus|human|resistance}}


  <nowiki>{{itemLink | {{kingdom bonus|human|weakness}} }}</nowiki>
  <nowiki>{{kingdom bonus|human|weakness|1}}</nowiki>
{{itemLink | {{kingdom bonus|human|weakness}} }}<noinclude>[[Category:Template documentation]]</noinclude>
{{kingdom bonus|human|weakness|1}}
 
<nowiki>{{kingdom bonus|demon|weakness|1}}</nowiki>
{{kingdom bonus|demon|weakness|1}}
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 22:41, 12 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)