From Dark and Darker Wiki

(Created page with "<includeonly>{{ #arraydefine: stats | {{Armor_Data|{{{1}}}|stats|allstats}} }}{{Infobox |name = {{#ifeq:{{{2}}}|7|{{#if:{{Armor_Data|{{{1}}}|unique}}|{{Armor_Data|{{{1}}}|unique}}|{{{1}}}}}|{{{1}}}}} |image = {{{1}}} |rarity = {{{2}}} |stats ={{ #loop: i | 0 <!-- {{#ifexpr:{{#expr: {{{2}}} -2 }} >0|{{#expr: {{{2}}} -2 }}}} --> | {{ #arraysize:stats }} <!-- number of loops --> | <nowiki/>{{#...")
 
(added special enchantment condition for craftable as they can get an extra enchantment)
Line 12: Line 12:
|classes              = {{Armor_Data|{{{1}}}|classes}}
|classes              = {{Armor_Data|{{{1}}}|classes}}
|slottype            = {{Armor_Data|{{{1}}}|slottype}}
|slottype            = {{Armor_Data|{{{1}}}|slottype}}
|enchantments        = {{#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}}}}

Revision as of 21:40, 23 September 2023

Auto creates weapon infobox

Example

{{GenerateArmorInfobox|<weapon name>|<rarity number>}}
{{GenerateArmorInfobox|Armet|1}}
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.png
-
Armor Rating 43~44
-
-
Projectile Damage Reduction 2.1%
-
-
Headshot Damage Reduction 18%
-
-
Strength 7
-
-
Move Speed -7
-
-
Up to 5 extra enchantments
-
Required Class:
Slot Type:
Head
Molded heavy movable face and cheek plate armor, fully protecting the head from blows.