From Dark and Darker Wiki
mNo edit summary |
(Changing Template to use structure that works with the new Item Data.) |
||
Line 1: | Line 1: | ||
<includeonly>{{ #arraydefine: stats | {{ | <includeonly>{{#arraydefine:stats|{{Item Data|Weapon|{{{1}}}|stats|allstats}}}}<!-- | ||
|name | -->{{Infobox | ||
|name ={{{1}}} | |||
|rarity | |image ={{#if:{{Item Data|Weapon|{{{1}}}|iscraftable}}{{Item Data|Weapon|{{{1}}}|artifactpower}}|{{{1}}}|{{{1}}} {{{2}}}}} | ||
|rarity ={{{2}}} | |||
|stats ={{ | |||
#loop: i | |||
|0 | |||
|{{ #arraysize:stats }} | |||
}} | |<nowiki/>{{#vardefine:stat|{{ #arrayindex:stats | {{ #var:i }}}}}}<!-- | ||
-->{{#ifeq:{{ #var:i }}|0<!-- | |||
|classes | -->||,}}<!-- | ||
|slottype | -->{{#var:stat}} <!-- | ||
|enchantments | -->{{#if:{{Item Data|Weapon|{{{1}}}|stats|{{#var:stat}}}}<!-- | ||
|handtype | -->|{{Item Data|Weapon|{{{1}}}|stats|{{#var:stat}}}}<!-- | ||
| | -->|{{Item Data|Weapon|{{{1}}}|stats|{{#var:stat}} {{{2}}}}}}}}} | ||
| | |special ={{Item Data|Weapon|{{{1}}}|artifactpower}} | ||
|classes ={{Item Data|Weapon|{{{1}}}|classes}} | |||
| | |slottype ={{Item Data|Weapon|{{{1}}}|slottype}} | ||
| | |enchantments ={{#ifexpr:{{#expr:{{{2}}}-2}}>0|{{#expr:{{{2}}}-2}}}} | ||
|handtype ={{Item Data|Weapon|{{{1}}}|handtype}} | |||
|slottype ={{Item Data|Weapon|{{{1}}}|slottype}} | |||
|nomargin | |weapontype ={{Item Data|Weapon|{{{1}}}|types|all}} | ||
|nofloat | |quiversize ={{Item Data|Weapon|{{{1}}}|maxammocount}} | ||
|hitbox ={{Item Data|Weapon|{{{1}}}|hitbox|height}}x{{Item Data|Weapon|{{{1}}}|hitbox|width}}x{{Item Data|Weapon|{{{1}}}|hitbox|depth}} | |||
|projectilespeed={{Item Data|Weapon|{{{1}}}|initialprojectilespeed}} | |||
|description ={{Item Data|Weapon|{{{1}}}|flavortext}} | |||
|invslots ={{Item Data|Weapon|{{{1}}}|invslots}} | |||
|nomargin =1 | |||
|nofloat =1 | |||
}}</includeonly><noinclude> | |||
Auto creates weapon infobox | Auto creates weapon infobox | ||
==Example== | ==Example== | ||
Line 32: | Line 38: | ||
<table cellspacing="0" class="wikitable sortable jquery-tablesorter" style="width:95%;color:#eee; background:transparent; text-align:center; vertical-align:middle;"> | <table cellspacing="0" class="wikitable sortable jquery-tablesorter" style="width:95%;color:#eee; background:transparent; text-align:center; vertical-align:middle;"> | ||
{{GenerateWeaponInfobox|Arming Sword|1}} | {{GenerateWeaponInfobox|Arming Sword|1}} | ||
{{GenerateWeaponInfobox| | {{GenerateWeaponInfobox|Fulgor|7}} | ||
{{GenerateWeaponInfobox|Demon's Glee|6}} | |||
</table> | </table> | ||
</noinclude> | </noinclude> |
Revision as of 03:47, 15 March 2024
Auto creates weapon infobox
Example
{{GenerateWeaponInfobox|<weapon name>|<rarity number>}}
{{GenerateWeaponInfobox|Arming Sword|1}}
Hitbox:
xx
-
Up to 5 extra enchantments
-
Hitbox:
xx