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
wgg>Cadaei Created page with "Returns the resistance or weakness of a unit depending on the according kingdom. ===Parameters=== : <code>1</code> - name of the kingdom : <code>2</code> - <code>resistance</code> or <code>weakness</code> ===Example=== <nowiki>{{kingdom bonus|human|resistance}}</nowiki> {{kingdom bonus|human|resistance}} <nowiki>{{itemLink | {{kingdom bonus|human|weakness}} }}</nowiki> {{itemLink | {{kingdom bonus|human|weakness}} }}" |
added rest to see linked elements |
||
| (5 intermediate revisions by 4 users not shown) | |||
| 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>{{ | <nowiki>{{kingdom bonus|human|weakness|1}}</nowiki> | ||
{{ | {{kingdom bonus|human|weakness|1}} | ||
<nowiki>{{kingdom bonus|demon|weakness|1}}</nowiki> | |||
{{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> | |||
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 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


