From Brotato Wiki

(INITIAL \o/ --- only supports items atm)
 
(Update to support both items and weapons, using 2 new templates: AutoStatsCard_Item, AutoStatsCard_Weapon)
 
Line 1: Line 1:
<includeonly><onlyinclude><!--
<includeonly><onlyinclude><!--


-->{{StatsCard
-->{{#switch: {{lc:{{GetType|{{{1|}}}}}}}
| name  = {{{1|{{name}}}}}
  | item    = {{AutoStatsCard_Item|{{{1|}}}}}
| type  = item
| weapon   = {{AutoStatsCard_Weapon|{{{1|}}}}}
| cat    = {{#ifeq: {{Item_Data|{{{1|{{name}}}}}|unique}}|true|Unique|Item}}
| #default = 0
| image = {{{1|{{name}}}}}.png
| rarity = {{Item Data|{{{1|{{name}}}}}|rarity}}
| tags   =
| stat1  = {{Item Data|{{{1|{{name}}}}}|stats}}
}}<!--
}}<!--


--></onlyinclude></includeonly><noinclude>
--></onlyinclude></includeonly><noinclude>


Creates a [[Template:StatsCard|StatsCard]] with automatically populated data, using only the item name.
Creates a [[Template:StatsCard|StatsCard]] with automatically populated data, using only a weapon or item name.
 
Uses one of two templates, depending on the type of the thing specified:
 
* [[Template:AutoStatsCard_Item]]
* [[Template:AutoStatsCard_Weapon]]


==Examples==
==Examples==
Line 26: Line 27:
|<pre>{{AutoStatsCard|Anvil}}</pre>
|<pre>{{AutoStatsCard|Anvil}}</pre>
|{{AutoStatsCard|Anvil}}
|{{AutoStatsCard|Anvil}}
|-
|<pre>{{AutoStatsCard|Chopper}}</pre>
|{{AutoStatsCard|Chopper}}
|-
|<pre>{{AutoStatsCard|Flamethrower}}</pre>
|{{AutoStatsCard|Flamethrower}}
|}
|}


</noinclude>
</noinclude>

Latest revision as of 23:47, 7 November 2024


Creates a StatsCard with automatically populated data, using only a weapon or item name.

Uses one of two templates, depending on the type of the thing specified:

Examples

Code Result
{{AutoStatsCard|Acid}}

Acid.png

Acid
Item
  • +8 Max HP
    -2 % Dodge
    -2 Knockback
{{AutoStatsCard|Anvil}}

Anvil.png

Anvil
Unique
  • A random weapon is upgraded when entering a shop. If you have no weapon to upgrade, you gain +2 Armor instead.
{{AutoStatsCard|Chopper}}

Chopper.png

Chopper
  • Damage: 6(50%Melee Damage.png15%Max HP.png)
  • Critical: x2 (10%)
  • Cooldown: 0.99s
  • Knockback: 2
  • Range: 135
  • +1/+1/+1/+2 health healed from consumables
{{AutoStatsCard|Flamethrower}}

Flamethrower.png

Flamethrower
  • Damage: 1(1%Elemental Damage.png)
  • Critical: x2 (0%)
  • Cooldown: 0.12s
  • Knockback: 0
  • Range: 250
  • Deals -/1x3/3x5/5x8(100%Elemental Damage.png) burning damage
    Pierces 99 enemies dealing 1 damage