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                 = {{#ifeq:{{{2}}}|7|{{#if:{{Armor_Data|{{{1}}}|unique}}|{{Armor_Data|{{{1}}}|unique}}|{{{1}}}}}|{{{1}}}}}
|name ={{{1}}}
|image               = {{{1}}}
|image ={{{1}}}
|rarity               = {{{2}}}
|rarity ={{{2}}}
    |stats ={{
|stats ={{
  #loop: i
#loop: i
  | 0                       <!-- {{#ifexpr:{{#expr: {{{2}}} -2 }} >0|{{#expr: {{{2}}} -2 }}}} -->
|0
  | {{ #arraysize:stats }} <!-- number of loops -->
|{{#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 }}}}
|<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}}}}
|special ={{#ifeq:{{{2}}}|7|{{Armor_Data|{{{1}}}|uniquepower}}}}
|classes             = {{Armor_Data|{{{1}}}|classes}}
|classes ={{Armor_Data|{{{1}}}|classes}}
|slottype             = {{Armor_Data|{{{1}}}|slottype}}
|slottype ={{Armor_Data|{{{1}}}|slottype}}
|enchantments         = {{#if:{{#pos:{{{1}}}|Cobalt}}{{#pos:{{{1}}}|Rubysilver}}|{{#ifexpr:{{#expr: {{{2}}} -1 }} >0|{{#expr: {{{2}}} -1 }}}}|{{#ifexpr:{{#expr: {{{2}}} -2 }} >0|{{#expr: {{{2}}} -2 }}}}}}
|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           = {{Armor_Data|{{{1}}}|armortype}}
|armortype ={{Armor_Data|{{{1}}}|armortype}}
|description         = {{#ifeq:{{{2}}}|7|{{#if:{{Armor_Data|{{{1}}}|uniqueflavortext}}|{{Weapon_Data|{{{1}}}|uniqueflavortext}}|{{Armor_Data|{{{1}}}|flavortext}}}}|{{Armor_Data|{{{1}}}|flavortext}}}}
|description ={{#ifeq:{{{2}}}|7|{{#if:{{Armor_Data|{{{1}}}|uniqueflavortext}}|{{Weapon_Data|{{{1}}}|uniqueflavortext}}|{{Armor_Data|{{{1}}}|flavortext}}}}|{{Armor_Data|{{{1}}}|flavortext}}}}
|nomargin             = 1
|nomargin =1
|nofloat             = 1
|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}}
Armet
Armet.png
-
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.
Armet
Armet.png
-
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.
Cobalt Plate Pants
Cobalt Plate Pants.png
-
Armor Rating 39~41
-
-
Projectile Damage Reduction 3.3%
-
-
Magical Resistance -5
-
-
Strength 3
-
-
Vigor 2
-
-
Armor Penetration 1.5%
-
-
Move Speed -9
-
-
Up to 3 extra enchantments
-
Required Class:
Slot Type:
Legs
These plate pants made of Cobalt infused steel are like a fortress for the legs.