From Dark and Darker Wiki
m (Changing Template to use calls that work with Armor Data.) |
m (Added Inventory Slots to Armor Infobox) |
||
Line 1: | Line 1: | ||
<includeonly>{{ #arraydefine: stats | {{ | <includeonly>{{#arraydefine:stats|{{Armor Data|{{{1}}}|stats|allstats}} }}<!-- | ||
-->{{Infobox | |||
|name ={{{1}}} | |name ={{{1}}} | ||
|image ={{{1}}} | |image ={{{1}}} | ||
|rarity ={{{2}}} | |rarity ={{{2}}} | ||
|stats ={{ | |stats ={{ | ||
#loop: i | |||
|0 | |||
|{{#arraysize:stats}} | |||
|<nowiki/><!-- | |||
}} | -->{{#vardefine:stat|{{ #arrayindex:stats | {{ #var:i }} }} }}<!-- | ||
| | -->{{#ifeq:{{ #var:i }}|0||,}}<!-- | ||
| | -->{{#var:stat}} <!-- | ||
|slottype | -->{{Armor Data|{{{1}}}|stats|{{ #var:stat }} {{{2}}} }}<!-- | ||
|enchantments = | -->{{Armor Data|{{{1}}}|stats|{{ #var:stat }} }} }} | ||
| | |classes ={{Armor Data|{{{1}}}|classes}} | ||
| | |armortype ={{Armor Data|{{{1}}}|armortype}} | ||
|nomargin | |slottype ={{Armor Data|{{{1}}}|slottype}} | ||
|nofloat | |enchantments={{#ifexpr:{{#expr: {{{2}}} -2 }} >0|{{#expr: {{{2}}} -2 }} }} | ||
|description={{Armor Data|{{{1}}}|flavortext}} | |||
|invslots ={{Armor Data|{{{1}}}|invslots}} | |||
|nomargin =1 | |||
|nofloat =1 | |||
}} </includeonly><noinclude> | }} </includeonly><noinclude> | ||
Auto creates weapon infobox | Auto creates weapon infobox |
Revision as of 06:04, 22 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.