From Dark and Darker Wiki
mNo edit summary |
(Changing Template to use calls that work with Accessory Data.) |
||
Line 1: | Line 1: | ||
<includeonly>{{#arraydefine:stats|{{ | <includeonly>{{#arraydefine:stats|{{Accessory Data|{{{1}}}|stats|allstats}}}}<!-- | ||
-->{{Infobox | -->{{Infobox | ||
|name ={{{1}}} | |name ={{{1}}} | ||
|image = | |image ={{{1}}} | ||
|rarity ={{{2}}} | |rarity ={{{2}}} | ||
|stats ={{ | |stats ={{ | ||
Line 12: | Line 12: | ||
-->||,}}<!-- | -->||,}}<!-- | ||
-->{{#var:stat}} <!-- | -->{{#var:stat}} <!-- | ||
-->{{#if:{{ | -->{{#if:{{Accessory Data|{{{1}}}|stats|{{#var:stat}}}}<!-- | ||
-->|{{ | -->|{{Accessory Data|{{{1}}}|stats|{{#var:stat}}}}<!-- | ||
-->|{{ | -->|{{Accessory Data|{{{1}}}|stats|{{#var:stat}} {{{2}}}}}}}}} | ||
|classes ={{ | |classes ={{Accessory Data|{{{1}}}|classes}} | ||
|enchantments ={{#ifexpr:{{#expr:{{{2}}}-2}}>0|{{#expr:{{{2}}}-2}}}} | |enchantments ={{#ifexpr:{{#expr:{{{2}}}-2}}>0|{{#expr:{{{2}}}-2}}}} | ||
|slottype ={{ | |slottype ={{Accessory Data|{{{1}}}|slottype}} | ||
|description ={{ | |description ={{Accessory Data|{{{1}}}|flavortext}} | ||
|invslots ={{ | |invslots ={{Accessory Data|{{{1}}}|invslots}} | ||
|nomargin =1 | |nomargin =1 | ||
|nofloat =1 | |nofloat =1 |
Revision as of 03:05, 30 March 2024
Auto creates Accessory infobox
Example
{{GenerateAccessoryInfobox|<Accessory name>|<rarity number>}}
{{GenerateAccessoryInfobox|Ox Pendant|3}}