From Brotato Wiki

(use `nolink=1` on the Iconbox. This allows users to click the image to see its full-size version, and the link is redundant anyway as this is only used when you're already viewing a weapon page)
m (fix wrong text labels in previous edit)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="itembox" style="float:right;width:90%;max-width:400px;">
<includeonly><div class="itembox" style="{{#ifeq:{{{nofloat|}}}|1|<!--no float (for docs) -->float:none;|float:right;}}width:90%;max-width:400px;">
<div class="itemboxheader">
<div class="itemboxheader">
<div style="float:left">
<div style="float:left">
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);">Attack Type:</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);">Special Effects:</td>
<td> {{Weapon Data|{{{name}}}|special}} </td>
<td> {{Weapon Data|{{{name}}}|special}} </td>
</tr>  
</tr>  
Line 70: Line 77:
{{Infobox Weapon
{{Infobox Weapon
|name=Hatchet
|name=Hatchet
}}{{Medical}}
}}</pre>
{{Precise}}</pre>
results in...
results in...
{{Infobox Weapon
{{Infobox Weapon
|name=Hatchet
|name=Hatchet
}}{{Medical}}
|nofloat=1
{{Precise}}
}}
</noinclude>
</noinclude>

Latest 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.png
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
Attack Type: Sweep
Unlocked by: Win a run with Wildling.png Wildling