From Brotato Wiki

No edit summary
(Updated Infobox UI)
Line 14: Line 14:
<div class="line"></div>
<div class="line"></div>
<div class="stats-container">
<div class="stats-container">
<div style="font-weight:bold; color:rgb(234,226,176);">Damage:</div>
<table style="background:transparent; vertical-align=top; row-gap: 50px;border-spacing: 10px;">
<span class="colorrarity1">{{Weapon Data|{{{name}}}|damage|1}}</span><br><span class="colorrarity2">{{Weapon Data|{{{name}}}|damage|2}}</span><br><span class="colorrarity3">{{Weapon Data|{{{name}}}|damage|3}}</span><br><span class="colorrarity4">{{Weapon Data|{{{name}}}|damage|4}}</span>
<tr>
<div style="font-weight:bold; color:rgb(234,226,176);">Attack Speed:</div>
<td style="display:inline-block;font-weight:bold; color:rgb(245,226,133);">Damage:</td>
<span class="colorrarity1">{{Weapon Data|{{{name}}}|attackspeed|1}}</span> / <span class="colorrarity2">{{Weapon Data|{{{name}}}|attackspeed|2}}</span> / <span class="colorrarity3">{{Weapon Data|{{{name}}}|attackspeed|3}}</span> / <span class="colorrarity4">{{Weapon Data|{{{name}}}|attackspeed|4}}</span><br>
<td> <span class="colorrarity1">{{Weapon Data|{{{name}}}|damage|1}}</span><br><span class="colorrarity2">{{Weapon Data|{{{name}}}|damage|2}}</span><br><span class="colorrarity3">{{Weapon Data|{{{name}}}|damage|3}}</span><br><span class="colorrarity4">{{Weapon Data|{{{name}}}|damage|4}}</span></td>
<div style="font-weight:bold; color:rgb(234,226,176);">DPS:</div>
</tr>
<span class="colorrarity1">{{Weapon Data|{{{name}}}|dps|1}}</span><br><span class="colorrarity2">{{Weapon Data|{{{name}}}|dps|2}}</span><br><span class="colorrarity3">{{Weapon Data|{{{name}}}|dps|3}}</span><br><span class="colorrarity4">{{Weapon Data|{{{name}}}|dps|4}}</span><br>
<tr>
<div style="font-weight:bold; color:rgb(234,226,176);">Crit Chance / Damage:</div>
<td style="display:inline-block;font-weight:bold; color:rgb(245,226,133);">Attack Speed:</td>
<span class="colorrarity1">{{Weapon Data|{{{name}}}|crit|1}}</span> / <span class="colorrarity2">{{Weapon Data|{{{name}}}|crit|2}}</span> / <span class="colorrarity3">{{Weapon Data|{{{name}}}|crit|3}}</span> / <span class="colorrarity4">{{Weapon Data|{{{name}}}|crit|4}}</span><br>
<td> <span class="colorrarity1">{{Weapon Data|{{{name}}}|attackspeed|1}}</span> / <span class="colorrarity2">{{Weapon Data|{{{name}}}|attackspeed|2}}</span> / <span class="colorrarity3">{{Weapon Data|{{{name}}}|attackspeed|3}}</span> / <span class="colorrarity4">{{Weapon Data|{{{name}}}|attackspeed|4}}</span></td>
<div style="font-weight:bold; color:rgb(234,226,176);">Range:</div>
</tr>
<span class="colorrarity1">{{Weapon Data|{{{name}}}|range|1}}</span> / <span class="colorrarity2">{{Weapon Data|{{{name}}}|range|2}}</span> / <span class="colorrarity3">{{Weapon Data|{{{name}}}|range|3}}</span> / <span class="colorrarity4">{{Weapon Data|{{{name}}}|range|4}}</span><br>
<tr>
<div style="font-weight:bold; color:rgb(234,226,176);">Knockback:</div>
<td style="display:inline-block;font-weight:bold; color:rgb(245,226,133);">DPS:</td>
<span class="colorrarity1">{{Weapon Data|{{{name}}}|knockback|1}}</span> / <span class="colorrarity2">{{Weapon Data|{{{name}}}|knockback|2}}</span> / <span class="colorrarity3">{{Weapon Data|{{{name}}}|knockback|3}}</span> / <span class="colorrarity4">{{Weapon Data|{{{name}}}|knockback|4}}</span><br>
<td> <span class="colorrarity1">{{Weapon Data|{{{name}}}|dps|1}}</span><br><span class="colorrarity2">{{Weapon Data|{{{name}}}|dps|2}}</span><br><span class="colorrarity3">{{Weapon Data|{{{name}}}|dps|3}}</span><br><span class="colorrarity4">{{Weapon Data|{{{name}}}|dps|4}}</span></td>
<div style="font-weight:bold; color:rgb(234,226,176);">Lifesteal:</div>
</tr>
<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><br>
<tr>
</div>
<td style="display:inline-block;font-weight:bold; color:rgb(245,226,133);">Crit Chance / Damage:</td>
<td> <span class="colorrarity1">{{Weapon Data|{{{name}}}|crit|1}}</span> / <span class="colorrarity2">{{Weapon Data|{{{name}}}|crit|2}}</span> / <span class="colorrarity3">{{Weapon Data|{{{name}}}|crit|3}}</span> / <span class="colorrarity4">{{Weapon Data|{{{name}}}|crit|4}}</span> </td>
</tr>
<tr>
<td style="display:inline-block;font-weight:bold; color:rgb(245,226,133);">Range:</td>
<td> <span class="colorrarity1">{{Weapon Data|{{{name}}}|range|1}}</span> / <span class="colorrarity2">{{Weapon Data|{{{name}}}|range|2}}</span> / <span class="colorrarity3">{{Weapon Data|{{{name}}}|range|3}}</span> / <span class="colorrarity4">{{Weapon Data|{{{name}}}|range|4}}</span> </td>
</tr>
<tr>
<td style="display:inline-block;font-weight:bold; color:rgb(245,226,133);">Knockback:</td>
<td> <span class="colorrarity1">{{Weapon Data|{{{name}}}|knockback|1}}</span> / <span class="colorrarity2">{{Weapon Data|{{{name}}}|knockback|2}}</span> / <span class="colorrarity3">{{Weapon Data|{{{name}}}|knockback|3}}</span> / <span class="colorrarity4">{{Weapon Data|{{{name}}}|knockback|4}}</span> </td>
</tr>
 
<tr>
<td style="display:inline-block;font-weight:bold; color:rgb(245,226,133);">Lifesteal:</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>
 
{{#if:{{Weapon Data|{{{name}}}|special}}|  
{{#if:{{Weapon Data|{{{name}}}|special}}|  
<div class="line"></div>
<tr>
<div style="font-weight:bold; color:rgb(234,226,176);">Special effects:</div>
<td style="display:inline-block;font-weight:bold; color:rgb(245,226,133);">Special effects:</td>
{{Weapon Data|{{{name}}}|special}}  
<td> {{Weapon Data|{{{name}}}|special}} </td>
</tr>
| }}
| }}
{{#ifeq:{{Weapon Data|{{{name}}}|unlockedby}}|Default||
{{#ifeq:{{Weapon Data|{{{name}}}|unlockedby}}|Default||  
<div class="line"></div>
<tr>
<div style="font-weight:bold; color:rgb(234,226,176);">Unlocked by:</div>
<td style="display:inline-block;font-weight:bold; color:rgb(245,226,133);">Unlocked by:</td>
{{Weapon Data|{{{name}}}|unlockedby}}
<td> {{Weapon Data|{{{name}}}|unlockedby}} </td>
</tr>
}}
}}
</table>
</div>
</div></includeonly><noinclude>
</div></includeonly><noinclude>
== Usage ==
== Usage ==

Revision as of 23:37, 1 November 2022

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
}}{{Medical}}
{{Precise}}

results in...

Hatchet
Hatchet
Damage: 5(100%Melee Damage.png15%Attack Speed.png)
10(100%Melee Damage.png15%Attack Speed.png)
20(100%Melee Damage.png15%Attack Speed.png)
40(100%Melee Damage.png15%Attack Speed.png)
Attack Speed: 0.68s / 0.65s / 0.62s / 0.58s
DPS: 7.4(147%Melee Damage.png 22.1%Attack Speed.png)/s
14.7(147%Melee Damage.png 22.1%Attack Speed.png)/s
29.4(147%Melee Damage.png 22.1%Attack Speed.png)/s
64.5(161%Melee Damage.png 24.2%Attack Speed.png)/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
Unlocked by: Win a run with Wildling.png Wildling
Medical
(2)+1% HP Regeneration
(3)+2% HP Regeneration
(4)+3% HP Regeneration
(5)+4% HP Regeneration
(6)+5% HP Regeneration
Precise
(2)+3% Crit Chance
(3)+6% Crit Chance
(4)+9% Crit Chance
(5)+12% Crit Chance
(6)+15% Crit Chance