From Brotato Wiki

(add `rtype`, for specifying the actual type (item/weapon/character/difficulty))
(docs: danger opt)
Line 52: Line 52:
In a table, you can match the heights of all StatsCard template items in a row by adding the class <code>itembox-table</code> to the table. See the items on the [[Mod:Isaac_Characters_Mod#Items|Isaac mod|| for an example (eg. how "8 Inch Nails" is taller to match others).
In a table, you can match the heights of all StatsCard template items in a row by adding the class <code>itembox-table</code> to the table. See the items on the [[Mod:Isaac_Characters_Mod#Items|Isaac mod|| for an example (eg. how "8 Inch Nails" is taller to match others).


A special option called <code>danger</code> is available, which is only used on the [[Dangers]] page.
A special option called <code>danger</code> is available. It's only used on the [[Dangers]] page, and replaces the "rarity" option for D4 and D5.


== Examples ==
== Examples ==

Revision as of 09:39, 14 December 2022

Create an item card, like in the game. Intended for use on mod pages. Can be used with items, weapons or characters.

For weapons, you can also use Template:StatsCardWeapon, which is the same but has all the weapon stats already prepared.

Editing Tips

Templates you can use to display stats and values are:

In a table, you can match the heights of all StatsCard template items in a row by adding the class itembox-table to the table. See the items on the [[Mod:Isaac_Characters_Mod#Items|Isaac mod|| for an example (eg. how "8 Inch Nails" is taller to match others).

A special option called danger is available. It's only used on the Dangers page, and replaces the "rarity" option for D4 and D5.

Examples

Caption text
Preview Code Notes
Empty example
{{StatsCard
| name   = 
| rtype  = 
| type   = 
| image  = 
| rarity = 
| stat1  = 
| stat2  = 
| stat3  = 
| stat4  = 
}}
-

Mod-Isaac-isaac icon.png

Isaac
Character
  • +20% Attack Speed
  • -30% Damage
  • Start with 1 D6
  • Start with 6 Bomb
{{StatsCard
| name   = Isaac
| type   = Character
| image  = Mod-Isaac-isaac_icon.png
| rarity = 0
| stat1  = {{Color|green|+20%}} Attack Speed
| stat2  = {{Color|red|-30%}} Damage
| stat3  = Start with {{Color|cream|1 D6}}
| stat4  = Start with {{Color|cream|6 Bomb}}
}}
Character

Mod-Isaac-isaacs tears icon.png

Isaac's Tears
Tears
  • Damage: 7 (Ranged Damage.png)
  • Critical: x2 (3% chance)
  • Cooldown: 0.7s
  • Knockback: 10
  • Range: 700 (Ranged)
{{StatsCard
| name   = Isaac's Tears
| rtype  = character
| type   = Tears
| image  = Mod-Isaac-isaacs_tears_icon.png
| rarity = 1
| stat1  = {{Color|cream|Damage:}} 7 ({{StatIcon|Ranged Damage}})
| stat2  = {{Color|cream|Critical:}} x2 (3% chance)
| stat3  = {{Color|cream|Cooldown:}} 0.7s
| stat4  = {{Color|cream|Knockback:}} 10
| stat5  = {{Color|cream|Range:}} 700 (Ranged)
}}

Note: It's easier to use StatsCardWeapon for weapons

Weapon

Mod-Isaac-bomb icon.png

Bomb
Limited (10)
  • A landmine spawns, dealing 50 (200% Engineering Stat.png) damage in an area
{{StatsCard
| name   = Bomb
| rtype  = item
| type   = Limited (10)
| image  = Mod-Isaac-bomb_icon.png
| rarity = 1
| stat1  = A landmine spawns, dealing {{Color|green|50}} (200% {{StatIcon|Engineering}}) damage in an area
}}
Item

Mod-Isaac-lucky foot icon.png

Lucky Foot
Limited (5)
  • +1% chance to get +1 Luck when picking up a material
  • -5% Speed
{{StatsCard
| name   = Lucky Foot
| rtype  = item
| type   = Limited (5)
| image  = Mod-Isaac-lucky_foot_icon.png
| rarity = 2
| stat1  = {{Color|green|+1%}} chance to get {{Color|green|+1}} Luck when picking up a material
| stat2  = {{Color|red|-5%}} Speed
}}
Item

Mod-Isaac-dice6 icon.png

D6
Unique
  • +2 free reroll in the shop
  • -5 Luck
  • +5% Items Price
{{StatsCard
| name   = D6
| rtype  = item
| type   = Unique
| image  = Mod-Isaac-dice6_icon.png
| rarity = 3
| stat1  = {{Color|green|+2}} free reroll in the shop
| stat2  = {{Color|red|-5}} Luck
| stat3  = {{Color|red|+5%}} Items Price
}}
Item

Mod-Isaac-nuh uh icon.png

Nuh Uh!
Unique
  • +50% Materials
  • -250% XP Gain
{{StatsCard
| name   = Nuh Uh!
| type   = Unique
| image  = Mod-Isaac-nuh_uh_icon.png
| rarity = 4
| stat1  = {{Color|green|+50%}} Materials
| stat2  = {{Color|red|-250%}} XP Gain
}}
Item

5.png

Danger 5
Difficulty
  • New Enemies Appear
  • Elites and hordes appear
  • Enemies are stronger
  • More elites and hordes appear
  • Two bosses appear at once
{{StatsCard
| name   = Danger 5
| rtype  = difficulty
| type   = Difficulty
| image  = 5.png
| danger = 5
| stat1  = New Enemies Appear
| stat2  = Elites and hordes appear
| stat3  = Enemies are stronger
| stat4  = More elites and hordes appear
| stat5  = Two bosses appear at once
}}
Danger

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

no description

Stringrequired
Typertype

The actual type. Either: item, weapon, character, difficulty

Stringrequired
Text Below Nametype

The text that's shown in-game, below the title

Example
"Character", "Unique (8)", "Primitive"
Stringsuggested
Imageimage

no description

Example
My_Image.png
Stringrequired
Rarityrarity

no description

Example
0/1/2/3/4
Auto value
1
Numberrequired
Stat 1stat1

no description

Stringsuggested
Stat 2stat2

no description

Stringsuggested
Stat 3stat3

no description

Stringsuggested
Stat 4stat4

no description

Stringsuggested
Stat 5stat5

no description

Stringsuggested
Stat 6stat6

no description

Stringsuggested
Stat 7stat7

no description

Stringsuggested
Stat 8stat8

no description

Stringsuggested
Stat 9stat9

no description

Stringsuggested
Stat 10stat10

no description

Stringsuggested
Stat 11stat11

no description

Stringsuggested
Stat 12stat12

no description

Stringsuggested
Stat 13stat13

no description

Stringsuggested
Stat 14stat14

no description

Stringsuggested
Stat 15stat15

no description

Stringsuggested
Stat 16stat16

no description

Stringsuggested
Stat 17stat17

no description

Stringsuggested
Stat 18stat18

no description

Stringsuggested
Stat 19stat19

no description

Stringsuggested
Stat 20stat20

no description

Stringsuggested