From Brotato Wiki

Darkly77 (talk | contribs)
add nofloat option to improve how these docs look
Darkly77 (talk | contribs)
add row for Attack Type (only applicable to melee)
Line 44: Line 44:
<td> <span class="colorrarity1">{{Weapon Data|{{{name}}}|lifesteal|1}}</span> / <span class="colorrarity2">{{Weapon Data|{{{name}}}|lifesteal|2}}</span> / <span class="colorrarity3">{{Weapon Data|{{{name}}}|lifesteal|3}}</span> / <span class="colorrarity4">{{Weapon Data|{{{name}}}|lifesteal|4}}</span> </td>
<td> <span class="colorrarity1">{{Weapon Data|{{{name}}}|lifesteal|1}}</span> / <span class="colorrarity2">{{Weapon Data|{{{name}}}|lifesteal|2}}</span> / <span class="colorrarity3">{{Weapon Data|{{{name}}}|lifesteal|3}}</span> / <span class="colorrarity4">{{Weapon Data|{{{name}}}|lifesteal|4}}</span> </td>
</tr>
</tr>
{{#if:{{Weapon Data|{{{name}}}|attacktype}}|
<tr>
<td style="display:inline-block;font-weight:bold; color:rgb(245,226,133);">Special Effects:</td>
<td> {{Weapon Data|{{{name}}}|attacktype}} </td>
</tr>
| }}


{{#if:{{Weapon Data|{{{name}}}|special}}|  
{{#if:{{Weapon Data|{{{name}}}|special}}|  
<tr>
<tr>
<td style="display:inline-block;font-weight:bold; color:rgb(245,226,133);">Special effects:</td>
<td style="display:inline-block;font-weight:bold; color:rgb(245,226,133);">Attack Type:</td>
<td> {{Weapon Data|{{{name}}}|special}} </td>
<td> {{Weapon Data|{{{name}}}|special}} </td>
</tr>  
</tr>  

Revision as of 11:39, 9 January 2023

Usage

This template can be used by entering the following onto a relevant page. Do not use this on your user page. It is reserved for content pages.

{{Infobox Weapon
|name=Hatchet
}}

Example

{{Infobox Weapon
|name=Hatchet
}}

results in...

Hatchet
Damage: 7(100%20%)
11(100%20%)
22(100%20%)
45(100%20%)
Attack Speed: 0.68s / 0.67s / 0.65s / 0.63s
DPS: 10.2(147% 29.4%)/s
16.4(149% 29.8%)/s
33.8(154% 30.8%)/s
71.4(159% 31.7%)/s
Crit Chance / Damage: x2 (3%) / x2 (3%) / x2 (3%) / x2 (3%)
Range: 125 / 125 / 125 / 125
Knockback: 2 / 2 / 2 / 2
Lifesteal: 0 / 0 / 0 / 0
Special Effects: Sweep
Unlocked by: Win a run with Wildling