From Brotato Wiki
(Add data attribute (`data-ibox-type`)) |
(add `rtype`, for specifying the actual type (item/weapon/character/difficulty)) |
||
Line 3: | Line 3: | ||
Set color class. Danger is only used on the "Dangers" page, so isn't mentioned in the docs to avoid confusion | Set color class. Danger is only used on the "Dangers" page, so isn't mentioned in the docs to avoid confusion | ||
-->{{#if:{{{danger|}}}|danger{{{danger|0}}} danger{{{danger|0}}}dark|rarity{{{rarity|0}}} rarity{{{rarity|0}}}dark}}<!-- | -->{{#if:{{{danger|}}}|danger{{{danger|0}}} danger{{{danger|0}}}dark|rarity{{{rarity|0}}} rarity{{{rarity|0}}}dark}}<!-- | ||
--> rounded" data-ibox-type=" | --> rounded" data-ibox-type="{{lc:{{{rtype}}}}}"> | ||
<div class="ibox__top"> | <div class="ibox__top"> | ||
<div class="ibox__icon rounded"> | <div class="ibox__icon rounded"> | ||
Line 66: | Line 66: | ||
| <pre>{{StatsCard | | <pre>{{StatsCard | ||
| name = | | name = | ||
| rtype = | |||
| type = | | type = | ||
| image = | | image = | ||
Line 78: | Line 79: | ||
| {{StatsCard | | {{StatsCard | ||
| name = Isaac | | name = Isaac | ||
| rtype = character | |||
| type = Character | | type = Character | ||
| image = Mod-Isaac-isaac_icon.png | | image = Mod-Isaac-isaac_icon.png | ||
Line 102: | Line 104: | ||
| {{StatsCard | | {{StatsCard | ||
| name = Isaac's Tears | | name = Isaac's Tears | ||
| rtype = weapon | |||
| type = Tears | | type = Tears | ||
| image = Mod-Isaac-isaacs_tears_icon.png | | image = Mod-Isaac-isaacs_tears_icon.png | ||
Line 114: | Line 117: | ||
{{StatsCard | {{StatsCard | ||
| name = Isaac's Tears | | name = Isaac's Tears | ||
| rtype = character | |||
| type = Tears | | type = Tears | ||
| image = Mod-Isaac-isaacs_tears_icon.png | | image = Mod-Isaac-isaacs_tears_icon.png | ||
Line 129: | Line 133: | ||
| {{StatsCard | | {{StatsCard | ||
| name = Bomb | | name = Bomb | ||
| rtype = item | |||
| type = Limited (10) | | type = Limited (10) | ||
| image = Mod-Isaac-bomb_icon.png | | image = Mod-Isaac-bomb_icon.png | ||
Line 137: | Line 142: | ||
{{StatsCard | {{StatsCard | ||
| name = Bomb | | name = Bomb | ||
| rtype = item | |||
| type = Limited (10) | | type = Limited (10) | ||
| image = Mod-Isaac-bomb_icon.png | | image = Mod-Isaac-bomb_icon.png | ||
Line 147: | Line 153: | ||
| {{StatsCard | | {{StatsCard | ||
| name = Lucky Foot | | name = Lucky Foot | ||
| rtype = item | |||
| type = Limited (5) | | type = Limited (5) | ||
| image = Mod-Isaac-lucky_foot_icon.png | | image = Mod-Isaac-lucky_foot_icon.png | ||
Line 156: | Line 163: | ||
{{StatsCard | {{StatsCard | ||
| name = Lucky Foot | | name = Lucky Foot | ||
| rtype = item | |||
| type = Limited (5) | | type = Limited (5) | ||
| image = Mod-Isaac-lucky_foot_icon.png | | image = Mod-Isaac-lucky_foot_icon.png | ||
Line 167: | Line 175: | ||
| {{StatsCard | | {{StatsCard | ||
| name = D6 | | name = D6 | ||
| rtype = item | |||
| type = Unique | | type = Unique | ||
| image = Mod-Isaac-dice6_icon.png | | image = Mod-Isaac-dice6_icon.png | ||
Line 177: | Line 186: | ||
{{StatsCard | {{StatsCard | ||
| name = D6 | | name = D6 | ||
| rtype = item | |||
| type = Unique | | type = Unique | ||
| image = Mod-Isaac-dice6_icon.png | | image = Mod-Isaac-dice6_icon.png | ||
Line 189: | Line 199: | ||
| {{StatsCard | | {{StatsCard | ||
| name = Nuh Uh! | | name = Nuh Uh! | ||
| rtype = item | |||
| type = Unique | | type = Unique | ||
| image = Mod-Isaac-nuh_uh_icon.png | | image = Mod-Isaac-nuh_uh_icon.png | ||
Line 209: | Line 220: | ||
|{{StatsCard | |{{StatsCard | ||
| name = Danger 5 | | name = Danger 5 | ||
| type = | | rtype = difficulty | ||
| type = Difficulty | |||
| image = 5.png | | image = 5.png | ||
| danger = 5 | | danger = 5 | ||
Line 220: | Line 232: | ||
| <pre>{{StatsCard | | <pre>{{StatsCard | ||
| name = Danger 5 | | name = Danger 5 | ||
| type = | | rtype = difficulty | ||
| type = Difficulty | |||
| image = 5.png | | image = 5.png | ||
| danger = 5 | | danger = 5 | ||
Line 242: | Line 255: | ||
}, | }, | ||
"type": { | "type": { | ||
"label": " | "label": "Text Below Name", | ||
"example": "\"Character\", \"Unique (8)\", \"Primitive\"", | "example": "\"Character\", \"Unique (8)\", \"Primitive\"", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true, | ||
"description": "The text that's shown in-game, below the title" | |||
}, | }, | ||
"image": { | "image": { | ||
Line 380: | Line 394: | ||
"type": "string", | "type": "string", | ||
"required": false, | "required": false, | ||
"suggested": true | |||
}, | |||
"rtype": { | |||
"label": "Type", | |||
"description": "The actual type. Either: item, weapon, character, difficulty", | |||
"type": "string", | |||
"required": true, | |||
"suggested": true | "suggested": true | ||
} | } | ||
Line 385: | Line 406: | ||
"paramOrder": [ | "paramOrder": [ | ||
"name", | "name", | ||
"rtype", | |||
"type", | "type", | ||
"image", | "image", |
Revision as of 09:37, 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:
- Template:Color (eg. +10%)
- Template:StatIcon (eg. ).
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, which is only used on the Dangers page.
Examples
Preview | Code | Notes |
---|---|---|
Empty example | {{StatsCard | name = | rtype = | type = | image = | rarity = | stat1 = | stat2 = | stat3 = | stat4 = }} |
- |
{{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 | |
{{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 | |
{{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 | |
{{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 | |
{{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 | |
{{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 | |
{{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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | no description | String | required |
Type | rtype | The actual type. Either: item, weapon, character, difficulty | String | required |
Text Below Name | type | The text that's shown in-game, below the title
| String | suggested |
Image | image | no description
| String | required |
Rarity | rarity | no description
| Number | required |
Stat 1 | stat1 | no description | String | suggested |
Stat 2 | stat2 | no description | String | suggested |
Stat 3 | stat3 | no description | String | suggested |
Stat 4 | stat4 | no description | String | suggested |
Stat 5 | stat5 | no description | String | suggested |
Stat 6 | stat6 | no description | String | suggested |
Stat 7 | stat7 | no description | String | suggested |
Stat 8 | stat8 | no description | String | suggested |
Stat 9 | stat9 | no description | String | suggested |
Stat 10 | stat10 | no description | String | suggested |
Stat 11 | stat11 | no description | String | suggested |
Stat 12 | stat12 | no description | String | suggested |
Stat 13 | stat13 | no description | String | suggested |
Stat 14 | stat14 | no description | String | suggested |
Stat 15 | stat15 | no description | String | suggested |
Stat 16 | stat16 | no description | String | suggested |
Stat 17 | stat17 | no description | String | suggested |
Stat 18 | stat18 | no description | String | suggested |
Stat 19 | stat19 | no description | String | suggested |
Stat 20 | stat20 | no description | String | suggested |