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|{{Item Data|Accessory|{{{1}}}|stats|allstats}}}}<!--
<includeonly>{{#arraydefine:stats|{{Accessory Data|{{{1}}}|stats|allstats}}}}<!--
-->{{Infobox
-->{{Infobox
|name ={{{1}}}
|name ={{{1}}}
|image ={{#if:{{Item Data|Accessory|{{{1}}}|iscraftable}}{{Item Data|Accessory|{{{1}}}|artifactpower}}|{{{1}}}|{{{1}}}}}
|image ={{{1}}}
|rarity ={{{2}}}
|rarity ={{{2}}}
|stats ={{
|stats ={{
Line 12: Line 12:
-->||,}}<!--
-->||,}}<!--
-->{{#var:stat}} <!--
-->{{#var:stat}} <!--
-->{{#if:{{Item Data|Accessory|{{{1}}}|stats|{{#var:stat}}}}<!--
-->{{#if:{{Accessory Data|{{{1}}}|stats|{{#var:stat}}}}<!--
-->|{{Item Data|Accessory|{{{1}}}|stats|{{#var:stat}}}}<!--
-->|{{Accessory Data|{{{1}}}|stats|{{#var:stat}}}}<!--
-->|{{Item Data|Accessory|{{{1}}}|stats|{{#var:stat}} {{{2}}}}}}}}}
-->|{{Accessory Data|{{{1}}}|stats|{{#var:stat}} {{{2}}}}}}}}}
|classes ={{Item Data|Accessory|{{{1}}}|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 ={{Item Data|Accessory|{{{1}}}|slottype}}
|slottype ={{Accessory Data|{{{1}}}|slottype}}
|description ={{Item Data|Accessory|{{{1}}}|flavortext}}
|description ={{Accessory Data|{{{1}}}|flavortext}}
|invslots ={{Item Data|Accessory|{{{1}}}|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}}
Ox Pendant.png
-
Strength 1
-
-
Up to 1 extra enchantments
-
Slot Type:
Necklace
1x1InvSlot.jpg
Invoke the power of the Ox, improving the wearer's strength.
Ring of Courage.png
-
Strength 1
-
-
Up to 1 extra enchantments
-
Slot Type:
Ring
1x1InvSlot.jpg
Imbued with the essence of bravery, enhancing your strength.
Grimsmile Ring.png
-
Strength 2
-
-
Vigor 3
-
-
Luck 6~12
-
-
Up to 3 extra enchantments
-
Slot Type:
Ring
1x1InvSlot.jpg
Ring crafted using rare golden teeth extracted from the silenced mouths of defeated rivals.