From Dark and Darker Wiki

m (Removed duplicate line.)
m (Added logic to only show Quiversize when item is a bow.)
Line 21: Line 21:
|slottype ={{Item Data|Weapon|{{{1}}}|slottype}}
|slottype ={{Item Data|Weapon|{{{1}}}|slottype}}
|weapontype ={{Item Data|Weapon|{{{1}}}|types|all}}
|weapontype ={{Item Data|Weapon|{{{1}}}|types|all}}
|quiversize ={{Item Data|Weapon|{{{1}}}|maxammocount}}
|quiversize ={{#if:{{#pos:{{lc:{{Item Data|Weapon|{{{1}}}|Types|All}}}}|bow}}<!--
-->|{{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}}
|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}}
|projectilespeed={{Item Data|Weapon|{{{1}}}|initialprojectilespeed}}
Line 37: 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|Crossbow|4}}
{{GenerateWeaponInfobox|Demon's Glee|6}}
{{GenerateWeaponInfobox|Fulgor|7}}
{{GenerateWeaponInfobox|Fulgor|7}}
{{GenerateWeaponInfobox|Demon's Glee|6}}
</table>
</table>
</noinclude>
</noinclude>

Revision as of 05:36, 15 March 2024

Auto creates weapon infobox

Example

{{GenerateWeaponInfobox|<weapon name>|<rarity number>}}
{{GenerateWeaponInfobox|Arming Sword|1}}
Arming Sword 1.png
Hitbox:
xx
Crossbow 4.png
-
Up to 2 extra enchantments
-
Hitbox:
xx
-
Up to 4 extra enchantments
-
Hitbox:
xx
Fulgor 7.png
-
Up to 5 extra enchantments
-
Hitbox:
xx