From Brotato Wiki

(INITIAL \o/ -- should make editing tables with weapon rows faster, and prevent syntax errors)
 
(apply Template:TableHeaders and improve docs)
Line 58: Line 58:
<noinclude>
<noinclude>


Creates a row for the specified [[Weapons|Weapon]]. Rows MUST be wrapped inside a table.
Creates a row for the specified [[Weapons|Weapon]]. Rows MUST be wrapped inside a table. Use [[Template:TableHeaders]] for the headers row.


== Example ==
<code><nowiki>{{TableHeaders|weapons}}</nowiki></code><br>
<code><nowiki>{{TableRowWeapon|Cacti Club}}</nowiki></code>
<table class="wikitable sortable jquery-tablesorter" style="width: 95%; color: #eee; background: transparent; text-align: center; vertical-align: middle">
<table class="wikitable sortable jquery-tablesorter" style="width: 95%; color: #eee; background: transparent; text-align: center; vertical-align: middle">
<tr>
{{TableHeaders|weapons}}
<th style="font-weight: bold; color: #eee; background-color: rgb(220, 220, 220, 0.2); text-align: center; vertical-align: middle; width: 15%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Name</th>
<th style="font-weight: bold; color: #eee; background-color: rgb(220, 220, 220, 0.2); text-align: center; vertical-align: middle; width: 10%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Types</th>
<th style="font-weight: bold; color: #eee; background-color: rgb(220, 220, 220, 0.2); text-align: center; vertical-align: middle; width: 24%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Damage</th>
<th style="font-weight: bold; color: #eee; background-color: rgb(220, 220, 220, 0.2); text-align: center; vertical-align: middle; width: 2%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Attack Speed</th>
<th style="font-weight: bold; color: #eee; background-color: rgb(220, 220, 220, 0.2); text-align: center; vertical-align: middle; width: 27%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">DPS</th>
<th style="font-weight: bold; color: #eee; background-color: rgb(220, 220, 220, 0.2); text-align: center; vertical-align: middle; width: 4%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Crit Chance/Damage</th>
<th style="font-weight: bold; color: #eee; background-color: rgb(220, 220, 220, 0.2); text-align: center; vertical-align: middle; width: 4%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Range</th>
<th style="font-weight: bold; color: #eee; background-color: rgb(220, 220, 220, 0.2); text-align: center; vertical-align: middle; width: 2%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Knockback</th>
<th style="font-weight: bold; color: #eee; background-color: rgb(220, 220, 220, 0.2); text-align: center; vertical-align: middle; width: 3%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Lifesteal</th>
<th style="font-weight: bold; color: #eee; background-color: rgb(220, 220, 220, 0.2); text-align: center; vertical-align: middle; width: 15%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Special Effects</th>
<th style="font-weight: bold; color: #eee; background-color: rgb(220, 220, 220, 0.2); text-align: center; vertical-align: middle; width: 2%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Base price</th>
<th style="font-weight: bold; color: #eee; background-color: rgb(220, 220, 220, 0.2); text-align: center; vertical-align: middle; width: 10%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Unlocked by</th>
</tr>
{{TableRowWeapon|Cacti Club}}
{{TableRowWeapon|Cacti Club}}
</table>
</table>

Revision as of 22:07, 3 November 2022



Creates a row for the specified Weapon. Rows MUST be wrapped inside a table. Use Template:TableHeaders for the headers row.

Example

{{TableHeaders|weapons}}
{{TableRowWeapon|Cacti Club}}

Name Class Damage Attack Speed DPS Crit Damage/Chance Range Knockback Lifesteal Special Effects Base price Unlocked by
Primitive, Heavy

10(80%Melee Damage.png)
20(80%Melee Damage.png)
30(80%Melee Damage.png)
50(80%Melee Damage.png)

1.66s
1.58s
1.51s
1.36s

6.0(48%Melee Damage.png)/s
12.7(50%Melee Damage.png)/s
19.9(52%Melee Damage.png)/s
36.8(58%Melee Damage.png)/s

x2 (3%)
x2 (3%)
x2 (3%)
x2 (3%)

200
200
200
200

8
8
8
8

0
0
0
0

Hitting an enemy spawns 3/4/5/6 projectiles dealing 50%Ranged Damage.png damage

20
39
74
149

Default

No description.

Template parameters

ParameterDescriptionTypeStatus
Weapon Namename 1

Name of the weapon, as shown on the Weapons page

Example
Cacti Club
Stringrequired