From Dark and Darker Wiki
No edit summary |
m (Added a check for movespeed data.) |
||
Line 7: | Line 7: | ||
| 0 <!-- {{#ifexpr:{{#expr: {{{2}}} -2 }} >0|{{#expr: {{{2}}} -2 }}}} --> | | 0 <!-- {{#ifexpr:{{#expr: {{{2}}} -2 }} >0|{{#expr: {{{2}}} -2 }}}} --> | ||
| {{ #arraysize:stats }} <!-- number of loops --> | | {{ #arraysize:stats }} <!-- number of loops --> | ||
| <nowiki/>{{#vardefine:stat|{{ #arrayindex:stats | {{ #var:i }} }}}}{{#ifeq:{{ #var:i }}|0||,}}{{ #var:stat }} {{Weapon_Data|{{{1}}}|stats|{{ #var:stat }} {{{2}}}}} | | <nowiki/>{{#vardefine:stat|{{ #arrayindex:stats | {{ #var:i }} }}}}{{#ifeq:{{ #var:i }}|0||,}}{{ #var:stat }} {{#if:{{Weapon_Data|{{{1}}}|stats|{{ #var:stat }} }}|{{Weapon_Data|{{{1}}}|stats|{{ #var:stat }} }}|{{Weapon_Data|{{{1}}}|stats|{{ #var:stat }} {{{2}}} }} }} | ||
}} | }} | ||
|special ={{#ifeq:{{{2}}}|7|{{Weapon_Data|{{{1}}}|uniquepower}}}} | |special ={{#ifeq:{{{2}}}|7|{{Weapon_Data|{{{1}}}|uniquepower}}}} |
Revision as of 12:23, 5 February 2024
Auto creates weapon infobox
Example
{{GenerateWeaponInfobox|<weapon name>|<rarity number>}}
{{GenerateWeaponInfobox|Arming Sword|1}}