From Dark and Darker Wiki
No edit summary |
m (Changing Template to use calls that work with Armor Data.) |
||
Line 1: | Line 1: | ||
<includeonly>{{ #arraydefine: stats | {{Armor_Data|{{{1}}}|stats|allstats}} }}{{Infobox | <includeonly>{{ #arraydefine: stats | {{Armor_Data|{{{1}}}|stats|allstats}} }}{{Infobox | ||
|name | |name ={{{1}}} | ||
|image | |image ={{{1}}} | ||
|rarity | |rarity ={{{2}}} | ||
|stats ={{ | |||
#loop: i | |||
|0 | |||
|{{#arraysize:stats}} | |||
|<nowiki/>{{#vardefine:stat|{{ #arrayindex:stats | {{ #var:i }} }}}}{{#ifeq:{{ #var:i }}|0||,}}{{ #var:stat }} {{Armor_Data|{{{1}}}|stats|{{ #var:stat }} {{{2}}}}}{{Armor_Data|{{{1}}}|stats|{{ #var:stat }}}} | |||
}} | }} | ||
|special ={{#ifeq:{{{2}}}|7|{{Armor_Data|{{{1}}}|uniquepower}}}} | |||
|classes | |classes ={{Armor_Data|{{{1}}}|classes}} | ||
|slottype | |slottype ={{Armor_Data|{{{1}}}|slottype}} | ||
|enchantments | |enchantments ={{#if:{{#pos:{{{1}}}|Cobalt}}{{#pos:{{{1}}}|Rubysilver}}|{{#ifexpr:{{#expr: {{{2}}} -1 }} >0|{{#expr: {{{2}}} -1 }}}}|{{#ifexpr:{{#expr: {{{2}}} -2 }} >0|{{#expr: {{{2}}} -2 }}}}}} | ||
|armortype | |armortype ={{Armor_Data|{{{1}}}|armortype}} | ||
|description | |description ={{#ifeq:{{{2}}}|7|{{#if:{{Armor_Data|{{{1}}}|uniqueflavortext}}|{{Weapon_Data|{{{1}}}|uniqueflavortext}}|{{Armor_Data|{{{1}}}|flavortext}}}}|{{Armor_Data|{{{1}}}|flavortext}}}} | ||
|nomargin | |nomargin =1 | ||
|nofloat | |nofloat =1 | ||
}} </includeonly><noinclude> | }} </includeonly><noinclude> | ||
Auto creates weapon infobox | Auto creates weapon infobox |
Revision as of 00:47, 19 March 2024
Auto creates weapon infobox
Example
{{GenerateArmorInfobox|<weapon name>|<rarity number>}}
{{GenerateArmorInfobox|Armet|1}}
-
Armor Rating 31
-
-
Projectile Damage Reduction 2.1%
-
-
Headshot Damage Reduction 18%
-
-
Strength 1
-
-
Move Speed -7
-
Required Class:
Slot Type:
Head
Molded heavy movable face and cheek plate armor, fully protecting the head from blows.
-
Armor Rating 37~38
-
-
Projectile Damage Reduction 2.1%
-
-
Headshot Damage Reduction 18%
-
-
Strength 4
-
-
Move Speed -7
-
-
Up to 2 extra enchantments
-
Required Class:
Slot Type:
Head
Molded heavy movable face and cheek plate armor, fully protecting the head from blows.