From Brotato Wiki

(replace "type" with "cat")
(replace "type" with "cat")
Tag: Reverted
Line 1: Line 1:
<onlyinclude><includeonly><!--
<onlyinclude><includeonly><!--
-->{{StatsCard
--><div class="cardtabs" data-cardtabs>
| name   = {{{name|}}}
<div class="mytabs__panels" data-cardtabs-panels>
| type  = weapon
 
| cat   = {{{class|}}}
<div data-cardtabs-panel="1" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|1||cardtabs__panel--js-hidden}}">
| image = {{{image|}}}
{{StatsCardWeapon
| rarity = {{{rarity|1}}}
| name     = {{{name1|}}}
| stat1 = {{#if:{{{damage|}}}| {{Color|cream|Damage:}} {{{damage}}} }}
| class    = {{{class1|}}}
| stat2 = {{#if:{{{critical|}}}| {{Color|cream|Critical:}} {{{critical}}} }}
| image    = {{{image1|}}}
| stat3 = {{#if:{{{cooldown|}}}| {{Color|cream|Cooldown:}} {{{cooldown}}} }}
| rarity    = 1
| stat4 = {{#if:{{{knockback|}}}| {{Color|cream|Knockback:}} {{{knockback}}} }}
| damage   = {{{damage1|}}}
| stat5 = {{#if:{{{range|}}}| {{Color|cream|Range:}} {{{range}}} }}
| critical  = {{{critical1|}}}
| stat6 = {{#if:{{{lifesteal|}}}| {{Color|cream|Lifesteal:}} {{{lifesteal}}} }}
| cooldown  = {{{cooldown1|}}}
| stat7 = {{#if:{{{bounce|}}}| {{Color|cream|Bounce:}} {{{bounce}}} }}
| knockback = {{{knockback1|}}}
| stat8 = {{#if:{{{piercing|}}}| {{Color|cream|Piercing:}} {{{piercing}}} }}
| range    = {{{range1|}}}
| stat9 = {{#if:{{{special1|}}}| {{{special1}}} }}
| lifesteal = {{{lifesteal1|}}}
| stat10 = {{#if:{{{special2|}}}| {{{special2}}} }}
| piercing = {{{piercing1|}}}
| stat11 = {{#if:{{{special3|}}}| {{{special3}}} }}
| bounce    = {{{bounce1|}}}
| stat12 = {{#if:{{{special4|}}}| {{{special4}}} }}
| special1  = {{{speciala1|}}}
| stat13 = {{#if:{{{special5|}}}| {{{special5}}} }}
| special2 = {{{specialb1|}}}
| stat14 = {{#if:{{{special6|}}}| {{{special6}}} }}
}}
| stat15 = {{#if:{{{special7|}}}| {{{special7}}} }}
</div>
| stat16 = {{#if:{{{special8|}}}| {{{special8}}} }}
 
| stat17 = {{#if:{{{special9|}}}| {{{special9}}} }}
<div data-cardtabs-panel="2" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|2||cardtabs__panel--js-hidden}}">
| stat18 = {{#if:{{{special10|}}}| {{{special10}}} }}
{{StatsCardWeapon
| stat19 = {{#if:{{{special11|}}}| {{{special11}}} }}
| name      = {{{name2|{{{name1|}}}}}} {{#if:{{{addTierNumbers|}}}|II}}
| stat20 = {{#if:{{{special12|}}}| {{{special12}}} }}
| class    = {{{class2|{{{class1|}}}}}}
}}<!--
| image    = {{{image2|{{{image1|}}}}}}
| rarity    = 2
| damage   = {{{damage2|{{{damage1|}}}}}}
| critical  = {{{critical2|{{{critical1|}}}}}}
| cooldown = {{{cooldown2|{{{cooldown1|}}}}}}
| knockback = {{{knockback2|{{{knockback1|}}}}}}
| range    = {{{range2|{{{range1|}}}}}}
| lifesteal = {{{lifesteal2|{{{lifesteal1|}}}}}}
| piercing = {{{piercing2|{{{piercing1|}}}}}}
| bounce    = {{{bounce2|{{{bounce1|}}}}}}
| special1  = {{{speciala2|{{{speciala1|}}}}}}
| special2 = {{{specialb2|{{{specialb1|}}}}}}
}}
</div>
 
<div data-cardtabs-panel="3" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|3||cardtabs__panel--js-hidden}}">
{{StatsCardWeapon
| name      = {{{name3|{{{name2|{{{name1|}}}}}}}}} {{#if:{{{addTierNumbers|}}}|III}}
| class    = {{{class3|{{{class2|{{{class1|}}}}}}}}}
| image    = {{{image3|{{{image2|{{{image1|}}}}}}}}}
| rarity    = 3
| damage    = {{{damage3|{{{damage2|{{{damage1|}}}}}}}}}
| critical = {{{critical3|{{{critical2|{{{critical1|}}}}}}}}}
| cooldown  = {{{cooldown3|{{{cooldown2|{{{cooldown1|}}}}}}}}}
| knockback = {{{knockback3|{{{knockback2|{{{knockback1|}}}}}}}}}
| range     = {{{range3|{{{range2|{{{range1|}}}}}}}}}
| lifesteal = {{{lifesteal3|{{{lifesteal2|{{{lifesteal1|}}}}}}}}}
| piercing = {{{piercing3|{{{piercing2|{{{piercing1|}}}}}}}}}
| bounce    = {{{bounce3|{{{bounce2|{{{bounce1|}}}}}}}}}
| special1  = {{{speciala3|{{{speciala2|{{{speciala1|}}}}}}}}}
| special2 = {{{specialb3|{{{specialb2|{{{specialb1|}}}}}}}}}
}}
</div>
 
<div data-cardtabs-panel="4" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|4||cardtabs__panel--js-hidden}}">
{{StatsCardWeapon
| name      = {{{name4|{{{name3|{{{name2|{{{name1|}}}}}}}}}}}} {{#if:{{{addTierNumbers|}}}|IV}}
| class    = {{{class4|{{{class3|{{{class2|{{{class1|}}}}}}}}}}}}
| image    = {{{image4|{{{image3|{{{image2|{{{image1|}}}}}}}}}}}}
| rarity    = 4
| damage    = {{{damage4|{{{damage3|{{{damage2|{{{damage1|}}}}}}}}}}}}
| critical  = {{{critical4|{{{critical3|{{{critical2|{{{critical1|}}}}}}}}}}}}
| cooldown = {{{cooldown4|{{{cooldown3|{{{cooldown2|{{{cooldown1|}}}}}}}}}}}}
| knockback = {{{knockback4|{{{knockback3|{{{knockback2|{{{knockback1|}}}}}}}}}}}}
| range    = {{{range4|{{{range3|{{{range2|{{{range1|}}}}}}}}}}}}
| lifesteal = {{{lifesteal4|{{{lifesteal3|{{{lifesteal2|{{{lifesteal1|}}}}}}}}}}}}
| piercing = {{{piercing4|{{{piercing3|{{{piercing2|{{{piercing1|}}}}}}}}}}}}
| bounce    = {{{bounce4|{{{bounce3|{{{bounce2|{{{bounce1|}}}}}}}}}}}}
| special1 = {{{speciala4|{{{speciala3|{{{speciala2|{{{speciala1|}}}}}}}}}}}}
| special2  = {{{specialb4|{{{specialb3|{{{specialb2|{{{specialb1|}}}}}}}}}}}}
}}
</div><!--
-->{{#if:{{{info|}}}|
<div data-cardtabs-panel="info" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|info||cardtabs__panel--js-hidden}}">
{{StatsCard
| name  = {{{name4|{{{name3|{{{name2|{{{name1|}}}}}}}}}}}}
| type  = weapon
| cat    = {{{class4|{{{class3|{{{class2|{{{class1|}}}}}}}}}}}}
| image  = {{{image4|{{{image3|{{{image2|{{{image1|}}}}}}}}}}}}
| rarity = 0
| stat1  = {{{info|}}}
| stat2  = {{#if:{{{info_br|}}}|<br><br><br><br>}}
}}
</div>
}}<!--
-->{{#if:{{{unlock|}}}|
<div data-cardtabs-panel="unlock" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|unlock||cardtabs__panel--js-hidden}}">
{{StatsCard
| name  = {{{name4|{{{name3|{{{name2|{{{name1|}}}}}}}}}}}}
| type  = weapon
| cat    = {{{class4|{{{class3|{{{class2|{{{class1|}}}}}}}}}}}}
| image  = {{{image4|{{{image3|{{{image2|{{{image1|}}}}}}}}}}}}
| rarity = 0
| stat1  = {{Color|cream|Unlock:}}
| stat2  = {{{unlock|}}}
| stat3  = {{#if:{{{unlock_br|}}}|<br><br><br>}}
}}
</div>
}}<!--
--></div>
 
<!--
Apologies for this. Explanation:
* `cardtabs__button--active`  = Aplied to the sole initially visible button, usually tier1. Only used once
* `cardtabs__button--disabled` = Applied to any disabled tiers. Most of the time this won't be used
-->
<div class="cardtabs__buttons" data-cardtabs-btns>
<div data-cardtabs-btn="1" class="cardtabs__button rarity1 rarity1dark {{#ifeq:{{{firstShownTier|}}}|1|cardtabs__button--active|}} {{#ifeq:{{{tier1disabled|}}}|1|cardtabs__button--disabled|}} <!--
-->">&nbsp;I&nbsp;</div>
<div data-cardtabs-btn="2" class="cardtabs__button rarity2 rarity2dark {{#ifeq:{{{firstShownTier|}}}|2|cardtabs__button--active|}} {{#ifeq:{{{tier2disabled|}}}|1|cardtabs__button--disabled|}} <!--
-->">&nbsp;II&nbsp;</div>
<div data-cardtabs-btn="3" class="cardtabs__button rarity3 rarity3dark {{#ifeq:{{{firstShownTier|}}}|3|cardtabs__button--active|}} {{#ifeq:{{{tier3disabled|}}}|1|cardtabs__button--disabled|}} <!--
-->">&nbsp;III&nbsp;</div>
<div data-cardtabs-btn="4" class="cardtabs__button rarity4 rarity4dark {{#ifeq:{{{firstShownTier|}}}|4|cardtabs__button--active|}} {{#ifeq:{{{tier4disabled|}}}|1|cardtabs__button--disabled|}} <!--
-->">&nbsp;IV&nbsp;</div>
{{#if:{{{info|}}}|
<div data-cardtabs-btn="info" class="cardtabs__button cardtabs__button--icon cardtabs__button--icon-info rarity0 rarity0dark {{#ifeq:{{{firstShownTier|}}}|info|cardtabs__button--active|}} <!--
-->">[[File:Info_Icon.png|14px|link=]]</div>
}}
{{#if:{{{unlock|}}}|
<div data-cardtabs-btn="unlock" class="cardtabs__button cardtabs__button--icon cardtabs__button--icon-unlock rarity0 rarity0dark {{#ifeq:{{{firstShownTier|}}}|unlock|cardtabs__button--active|}} <!--
-->">[[File:Locked_Icon.png|14px|link=]]</div>
}}
</div>
</div><!--
--></includeonly></onlyinclude><noinclude>
--></includeonly></onlyinclude><noinclude>
Create an item card for a weapon. Wrapper for [[Template:StatsCard]], with the weapon stat names already filled (eg Damage, Attack Speed, etc).


Intended for use on [[Modding#Mod_List|mod pages]].
Creates a set of tabs for a weapon.


== Examples ==
Similar to [[Template:StatsCardWeapon]] but with tabs to show stats at different tiers.


{| class="wikitable"
== Notes ==
|+ Caption text
 
|-
If you don't include a value for a tier, the previous tier's value will be used instead. This means you only need to enter data for, for example, name only once (with <code>name1</code>).
! Preview
 
! Code
The <code>firstShownTier</code> option is mandatory. Leaving it out will prevent anything from being shown.
! Empty
 
|-
Special effects are labelled "speciala" and "specialb" (plus their tier, eg <code>speciala3</code>), rather than "special1/special2/etc" like in [[Template:StatsCard|StatsCard]].
| {{StatsCardWeapon
 
| name     = Mom's Knife
== Example ==
| class     = Precise, Demonic
 
| image     = Mod-Isaac-moms_knife_icon.png
In the first example below, "Piercing" is shown as 0 at tiers 1 and 2, even though it's an empty stat. This is done because this particular weapon gains piercing at tier 3, but if it wasn't listed in tiers 1 and 2 then clicking through the tabs would make the container change its height when you click, which looks janky.
| rarity   = 2
 
| damage   = 30 (60%{{StatIcon|Melee Damage}})
<table class="wikitable">
| critical = x1.5 (30% chance)
<tr>
| cooldown = 1.86s
<th>Code</th>
| knockback = 2
<th>Preview</th>
| range     = 350 (Melee)
</tr>
| lifesteal =
<tr>
| bounce    =
<td style="padding: 20px 30px;">
| piercing =
<pre>
| special1 =
{{StatsCardWeaponTabs
| special2 =
| name1     = Isaac's Tears
| class1    = Tears
| image1     = Mod-Isaac-isaacs_tears_icon.png
| image3     = Mod-Isaac-isaacs_tears_icon_bloody.png
| damage1    = 7 ({{StatIcon|Ranged Damage}})
| damage2    = 14 ({{StatIcon|Ranged Damage}})
| damage3   = 28 ({{StatIcon|Ranged Damage}})
| damage4   = 45 ({{StatIcon|Ranged Damage}})
| critical1 = x2 (3% chance)
| cooldown1  = 0.7s
| cooldown2 = 0.62s
| cooldown3  = 0.53s
| cooldown4  = 0.45s
| knockback1 = 10
| range1     = 700 (Ranged)
| piercing1  = {{Color|grey|0}}
| piercing3  = 1
| firstShownTier = 1
| addTierNumbers = 1
| tier1disabled  = 0
| tier2disabled = 0
| tier3disabled = 0
| tier4disabled = 0
}}
}}
| <pre>
</pre>
{{StatsCardWeapon
</td>
| name     = Mom's Knife
<td style="padding: 20px 30px;">
| class     = Precise, Demonic
{{StatsCardWeaponTabs
| image     = Mod-Isaac-moms_knife_icon.png
| name1     = Isaac's Tears
| rarity   = 2
| class1    = Tears
| damage   = 30 (60%{{StatIcon|Melee Damage}})
| image1     = Mod-Isaac-isaacs_tears_icon.png
| critical = x1.5 (30% chance)
| image3     = Mod-Isaac-isaacs_tears_icon_bloody.png
| cooldown = 1.3s
| damage1    = 7 ({{StatIcon|Ranged Damage}})
| knockback = 2
| damage2    = 14 ({{StatIcon|Ranged Damage}})
| range     = 350 (Melee)
| damage3   = 28 ({{StatIcon|Ranged Damage}})
| lifesteal =
| damage4   = 45 ({{StatIcon|Ranged Damage}})
| bounce    =
| critical1 = x2 (3% chance)
| pierce    =
| cooldown1  = 0.7s
| special1 =
| cooldown2  = 0.62s
| special2 =
| cooldown3  = 0.53s
| cooldown4 = 0.45s
| knockback1 = 10
| range1     = 700 (Ranged)
| piercing1  = {{Color|grey|0}}
| piercing3  = 1
| firstShownTier = 1
| addTierNumbers = 1
| tier1disabled  = 0
| tier2disabled  = 0
| tier3disabled = 0
| tier4disabled = 0
}}
}}
</pre>
</td>
| <pre>
</tr>
{{StatsCardWeapon
<tr>
| name     =  
<td style="padding: 20px 30px;"><pre>
| class     =  
{{StatsCardWeaponTabs
| image     =  
| name2      = Mom's Knife
| rarity   =  
| class2    = Precise, Demonic
| damage   =  
| image2    = Mod-Isaac-moms_knife_icon.png
| critical =  
| damage2    = 30 (60%{{StatIcon|Melee Damage}})
| cooldown =  
| damage3    = 45 (60%{{StatIcon|Melee Damage}})
| knockback =  
| damage4    = 55 (60%{{StatIcon|Melee Damage}})
| range     =  
| critical2  = x1.5 (30% chance)
| lifesteal =
| cooldown2  = 1.86s
| bounce    =
| cooldown3  = 1.78s
| pierce    =
| cooldown4  = 1.69s
| special1 =
| knockback2 = 2
| special2 =
| range2    = 350 (Melee)
| addTierNumbers = 1
| firstShownTier = 2
| tier1disabled  = 1
| info = Also deals damage when returning.
| unlock = Complete a run with Isaac
| info_br = 1
| unlock_br = 1
}}</pre></td>
<td style="padding: 20px 30px;">
{{StatsCardWeaponTabs
| name2     = Mom's Knife
| class2     = Precise, Demonic
| image2     = Mod-Isaac-moms_knife_icon.png
| damage2   = 30 (60%{{StatIcon|Melee Damage}})
| damage3    = 45 (60%{{StatIcon|Melee Damage}})
| damage4   = 55 (60%{{StatIcon|Melee Damage}})
| critical2  = x1.5 (30% chance)
| cooldown2  = 1.86s
| cooldown3 = 1.78s
| cooldown4 = 1.69s
| knockback2 = 2
| range2     = 350 (Melee)
| addTierNumbers = 1
| firstShownTier = 2
| tier1disabled  = 1
| info = Also deals damage when returning.
| unlock = Complete a run with Isaac
| info_br = 1
| unlock_br = 1
}}
</td>
</tr>
</table>
 
== All Options ==
 
The full list of options are listed below. Please don't leave anything blank though, else the previous tier's values won't get used  (ie., only include options if you use them).
 
{{ToggleStart|id=foo|btn=Toggle Full Options}}
 
<pre style="display: inline-block;">
{{StatsCardWeaponTabs
| name1 =
| name2 =
| name3 =
| name4 =
| class1 =
| class2 =
| class3 =
| class4 =
| image1 =
| image2 =
| image3 =
| image4 =
| damage1 =
| damage2 =
| damage3 =
| damage4 =
| critical1 =
| critical2 =
| critical3 =
| critical4 =
| cooldown1 =
| cooldown2 =
| cooldown3 =
| cooldown4 =
| knockback1 =
| knockback2 =
| knockback3 =
| knockback4 =
| range1 =
| range2 =
| range3 =
| range4 =
| lifesteal1 =
| lifesteal2 =
| lifesteal3 =
| lifesteal4 =
| piercing1 =
| piercing2 =
| piercing3 =
| piercing4 =
| bounce1 =
| bounce2 =
| bounce3 =
| bounce4 =
| speciala1 =
| speciala2 =
| speciala3 =
| speciala4 =
| specialb1 =
| specialb2 =
| specialb3 =
| specialb4 =
| firstShownTier = 1
| addTierNumbers = 1
| tier1disabled  = 0
| tier2disabled  = 0
| tier3disabled = 0
| tier4disabled = 0
}}
}}
</pre>
</pre>
|}
 
{{ToggleEnd}}


<templatedata>
<templatedata>
{
{
"params": {
"params": {
"name": {
"firstShownTier": {
"label": "Name",
"label": "First Shown Tier",
"description": "Either 1, 2, 3, or 4. Should always be 1, unless a lower tier is disabled",
"example": "1",
"type": "number",
"autovalue": "1",
"required": true,
"suggested": true
},
"addTierNumbers": {
"label": "Add Tier Numbers?",
"description": "If enabled, automatically adds II, III and IV to tier names",
"type": "boolean",
"autovalue": "1",
"suggested": true
},
"tier1disabled": {
"label": "Disable Tier 1?",
"type": "boolean",
"suggested": true,
"description": "If enabled, Tier 1 won't be clickable. Make sure you also change the First Shown Tier to 2 (or 3/4)"
},
"tier2disabled": {
"label": "Disable Tier 2?",
"type": "boolean",
"suggested": true,
"description": "If enabled, Tier 2 won't be clickable. Make sure you also change the First Shown Tier to 3 (or 4)"
},
"tier3disabled": {
"label": "Disable Tier 3?",
"type": "boolean",
"suggested": true,
"description": "If enabled, Tier 3 won't be clickable. Make sure you also change the First Shown Tier to 4"
},
"tier4disabled": {
"label": "Disable Tier 4?",
"type": "boolean",
"suggested": true
},
"name1": {
"label": "Name - Tier 1",
"example": "Pistol",
"type": "string",
"required": true,
"suggested": true
},
"name2": {
"label": "Name - Tier 2",
"example": "Leave blank unless name changes",
"type": "string",
"suggested": true
},
"name3": {
"label": "Name - Tier 3",
"example": "Leave blank unless name changes",
"type": "string",
"suggested": true
},
"name4": {
"label": "Name - Tier 4",
"example": "Leave blank unless name changes",
"type": "string",
"suggested": true
},
"class1": {
"label": "Class - Tier 1",
"type": "string",
"required": true,
"suggested": true
},
"class2": {
"label": "Class - Tier 2",
"example": "Leave blank unless class changes",
"type": "string",
"suggested": true
},
"class3": {
"label": "Class - Tier 3",
"example": "Leave blank unless class changes",
"type": "string",
"suggested": true
},
"class4": {
"label": "Class - Tier 4",
"example": "Leave blank unless class changes",
"type": "string",
"suggested": true
},
"image1": {
"label": "Image - Tier 1",
"type": "string",
"required": true,
"suggested": true
},
"image2": {
"label": "Image - Tier 2",
"type": "string",
"suggested": true
},
"image3": {
"label": "Image - Tier 3",
"type": "string",
"suggested": true
},
"image4": {
"label": "Image - Tier 4",
"type": "string",
"suggested": true
},
"damage1": {
"label": "Damage - Tier 1",
"type": "string",
"type": "string",
"required": true,
"required": true,
"suggested": true
"suggested": true
},
},
"class": {
"damage2": {
"label": "Class",
"label": "Damage - Tier 2",
"example": "Primitive, Heavy",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"image": {
"damage3": {
"label": "Image",
"label": "Damage - Tier 3",
"example": "My_Image.png",
"type": "string",
"suggested": true
},
"damage4": {
"label": "Damage - Tier 4",
"type": "string",
"suggested": true
},
"critical1": {
"label": "Critical - Tier 1",
"type": "string",
"suggested": true
},
"critical2": {
"label": "Critical - Tier 2",
"type": "string",
"suggested": true
},
"critical3": {
"label": "Critical - Tier 3",
"type": "string",
"suggested": true
},
"critical4": {
"label": "Critical - Tier 4",
"type": "string",
"suggested": true
},
"cooldown1": {
"label": "Cooldown - Tier 1",
"type": "string",
"type": "string",
"required": true,
"required": true,
"suggested": true
"suggested": true
},
},
"rarity": {
"cooldown2": {
"label": "Rarity",
"label": "Cooldown - Tier 2",
"example": "1/2/3/4",
"type": "string",
"type": "number",
"suggested": true
"autovalue": "1",
},
"cooldown3": {
"label": "Cooldown - Tier 3",
"type": "string",
"suggested": true
},
"cooldown4": {
"label": "Cooldown - Tier 4",
"type": "string",
"suggested": true
},
"knockback1": {
"label": "Knockback - Tier 1",
"type": "string",
"suggested": true
},
"knockback2": {
"label": "Knockback - Tier 2",
"type": "string",
"suggested": true
},
"knockback3": {
"label": "Knockback - Tier 3",
"type": "string",
"suggested": true
},
"knockback4": {
"label": "Knockback - Tier 4",
"type": "string",
"suggested": true
},
"range1": {
"label": "Range - Tier 1",
"type": "string",
"required": true,
"required": true,
"suggested": true
"suggested": true
},
},
"damage": {
"range2": {
"label": "Damage",
"label": "Range - Tier 2",
"type": "string",
"suggested": true
},
"range3": {
"label": "Range - Tier 3",
"type": "string",
"suggested": true
},
"range4": {
"label": "Range - Tier 4",
"type": "string",
"suggested": true
},
"lifesteal1": {
"label": "Life Steal - Tier 1",
"type": "string",
"suggested": true
},
"lifesteal2": {
"label": "Life Steal - Tier 2",
"type": "string",
"suggested": true
},
"lifesteal3": {
"label": "Life Steal - Tier 3",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"critical": {
"lifesteal4": {
"label": "Critical",
"label": "Life Steal - Tier 4",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"cooldown": {
"piercing1": {
"label": "Cooldown",
"label": "Piercing - Tier 1",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"knockback": {
"piercing2": {
"label": "Knockback",
"label": "Piercing - Tier 2",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"range": {
"piercing3": {
"label": "Range",
"label": "Piercing - Tier 3",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"lifesteal": {
"piercing4": {
"label": "Lifesteal",
"label": "Piercing - Tier 4",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"bounce": {
"bounce1": {
"label": "Bounce",
"label": "Bounce - Tier 1",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"pierce": {
"bounce2": {
"label": "Pierce",
"label": "Bounce - Tier 2",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"special1": {
"bounce3": {
"label": "Special 1",
"label": "Bounce - Tier 3",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"special2": {
"bounce4": {
"label": "Special 2",
"label": "Bounce - Tier 4",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"special3": {
"speciala1": {
"label": "Special 3",
"label": "Special A - Tier 1",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"special4": {
"speciala2": {
"label": "Special 4",
"label": "Special A - Tier 2",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"special5": {
"speciala3": {
"label": "Special 5",
"label": "Special A - Tier 3",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"special6": {
"speciala4": {
"label": "Special 6",
"label": "Special A - Tier 4",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"special7": {
"specialb1": {
"label": "Special 7",
"label": "Special B - Tier 1",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"special8": {
"specialb2": {
"label": "Special 8",
"label": "Special B - Tier 2",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"special9": {
"specialb3": {
"label": "Special 9",
"label": "Special B - Tier 3",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"special10": {
"specialb4": {
"label": "Special 10",
"label": "Special B - Tier 4",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"special11": {
"info": {
"label": "Special 11",
"label": "Info Tab",
"description": "Add any custom content here to show it in a special Info tab",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"special12": {
"info_br": {
"label": "Special 12",
"label": "Add Line Breaks to Info?",
"description": "If enabled (with 1), adds 4 empty lines to the Info tab, which can make it a similar height to other tabs. Can also be achieved by adding <br> a few times after the info text.",
"type": "boolean",
"suggested": true
},
"unlock": {
"label": "Unlock Tab",
"description": "Can be used to show unlock requirements",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
"unlock_br": {
"label": "Add Line Breaks to Unlock?",
"description": "If enabled (with 1), adds 3 empty lines to the Unlock tab, which can make it a similar height to other tabs. Can also be achieved by adding <br> a few times after the info text.",
"suggested": true,
"type": "boolean"
}
}
},
},
"paramOrder": [
"paramOrder": [
"name",
"name1",
"class",
"name2",
"image",
"name3",
"rarity",
"name4",
"damage",
"class1",
"critical",
"class2",
"cooldown",
"class3",
"knockback",
"class4",
"range",
"image1",
"lifesteal",
"image2",
"bounce",
"image3",
"pierce",
"image4",
"special1",
"damage1",
"special2",
"damage2",
"special3",
"damage3",
"special4",
"damage4",
"special5",
"critical1",
"special6",
"critical2",
"special7",
"critical3",
"special8",
"critical4",
"special9",
"cooldown1",
"special10",
"cooldown2",
"special11",
"cooldown3",
"special12"
"cooldown4",
],
"knockback1",
"format": "block"
"knockback2",
"knockback3",
"knockback4",
"range1",
"range2",
"range3",
"range4",
"lifesteal1",
"lifesteal2",
"lifesteal3",
"lifesteal4",
"piercing1",
"piercing2",
"piercing3",
"piercing4",
"bounce1",
"bounce2",
"bounce3",
"bounce4",
"speciala1",
"speciala2",
"speciala3",
"speciala4",
"specialb1",
"specialb2",
"specialb3",
"specialb4",
"firstShownTier",
"addTierNumbers",
"tier1disabled",
"tier2disabled",
"tier3disabled",
"tier4disabled",
"info",
"unlock",
"info_br",
"unlock_br"
]
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Revision as of 11:24, 14 December 2022


Creates a set of tabs for a weapon.

Similar to Template:StatsCardWeapon but with tabs to show stats at different tiers.

Notes

If you don't include a value for a tier, the previous tier's value will be used instead. This means you only need to enter data for, for example, name only once (with name1).

The firstShownTier option is mandatory. Leaving it out will prevent anything from being shown.

Special effects are labelled "speciala" and "specialb" (plus their tier, eg speciala3), rather than "special1/special2/etc" like in StatsCard.

Example

In the first example below, "Piercing" is shown as 0 at tiers 1 and 2, even though it's an empty stat. This is done because this particular weapon gains piercing at tier 3, but if it wasn't listed in tiers 1 and 2 then clicking through the tabs would make the container change its height when you click, which looks janky.

Code Preview
{{StatsCardWeaponTabs
| name1      = Isaac's Tears
| class1     = Tears
| image1     = Mod-Isaac-isaacs_tears_icon.png
| image3     = Mod-Isaac-isaacs_tears_icon_bloody.png
| damage1    = 7 ({{StatIcon|Ranged Damage}})
| damage2    = 14 ({{StatIcon|Ranged Damage}})
| damage3    = 28 ({{StatIcon|Ranged Damage}})
| damage4    = 45 ({{StatIcon|Ranged Damage}})
| critical1  = x2 (3% chance)
| cooldown1  = 0.7s
| cooldown2  = 0.62s
| cooldown3  = 0.53s
| cooldown4  = 0.45s
| knockback1 = 10
| range1     = 700 (Ranged)
| piercing1  = {{Color|grey|0}}
| piercing3  = 1
| firstShownTier = 1
| addTierNumbers = 1
| tier1disabled  = 0
| tier2disabled  = 0
| tier3disabled  = 0
| tier4disabled  = 0
}}

Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

 I 
 II 
 III 
 IV 


Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

 I 
 II 
 III 
 IV 


Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

 I 
 II 
 III 
 IV 


Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

 I 
 II 
 III 
 IV 


 I 
 II 
 III 
 IV 
{{StatsCardWeaponTabs
| name2      = Mom's Knife
| class2     = Precise, Demonic
| image2     = Mod-Isaac-moms_knife_icon.png
| damage2    = 30 (60%{{StatIcon|Melee Damage}})
| damage3    = 45 (60%{{StatIcon|Melee Damage}})
| damage4    = 55 (60%{{StatIcon|Melee Damage}})
| critical2  = x1.5 (30% chance)
| cooldown2  = 1.86s
| cooldown3  = 1.78s
| cooldown4  = 1.69s
| knockback2 = 2
| range2     = 350 (Melee)
| addTierNumbers = 1
| firstShownTier = 2
| tier1disabled  = 1
| info = Also deals damage when returning.
| unlock = Complete a run with Isaac
| info_br = 1
| unlock_br = 1
}}

Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

 I 
 II 
 III 
 IV 


Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

 I 
 II 
 III 
 IV 


Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

 I 
 II 
 III 
 IV 


Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

Template loop detected: Template:StatsCardWeapon

 I 
 II 
 III 
 IV 


Mod-Isaac-moms knife icon.png

Mom's Knife
Precise, Demonic
  • Also deals damage when returning.




Mod-Isaac-moms knife icon.png

Mom's Knife
Precise, Demonic
  • Unlock:
  • Complete a run with Isaac



 I 
 II 
 III 
 IV 
Info Icon.png
Locked Icon.png

All Options

The full list of options are listed below. Please don't leave anything blank though, else the previous tier's values won't get used (ie., only include options if you use them).

Toggle Full Options

{{StatsCardWeaponTabs
| name1 =
| name2 =
| name3 =
| name4 =
| class1 =
| class2 =
| class3 =
| class4 =
| image1 =
| image2 =
| image3 =
| image4 =
| damage1 =
| damage2 =
| damage3 =
| damage4 =
| critical1 =
| critical2 =
| critical3 =
| critical4 =
| cooldown1 =
| cooldown2 =
| cooldown3 =
| cooldown4 =
| knockback1 =
| knockback2 =
| knockback3 =
| knockback4 =
| range1 =
| range2 =
| range3 =
| range4 =
| lifesteal1 =
| lifesteal2 =
| lifesteal3 =
| lifesteal4 =
| piercing1 =
| piercing2 =
| piercing3 =
| piercing4 =
| bounce1 =
| bounce2 =
| bounce3 =
| bounce4 =
| speciala1 =
| speciala2 =
| speciala3 =
| speciala4 =
| specialb1 =
| specialb2 =
| specialb3 =
| specialb4 =
| firstShownTier = 1
| addTierNumbers = 1
| tier1disabled  = 0
| tier2disabled  = 0
| tier3disabled  = 0
| tier4disabled  = 0
}}

No description.

Template parameters

ParameterDescriptionTypeStatus
Name - Tier 1name1

no description

Example
Pistol
Stringrequired
Name - Tier 2name2

no description

Example
Leave blank unless name changes
Stringsuggested
Name - Tier 3name3

no description

Example
Leave blank unless name changes
Stringsuggested
Name - Tier 4name4

no description

Example
Leave blank unless name changes
Stringsuggested
Class - Tier 1class1

no description

Stringrequired
Class - Tier 2class2

no description

Example
Leave blank unless class changes
Stringsuggested
Class - Tier 3class3

no description

Example
Leave blank unless class changes
Stringsuggested
Class - Tier 4class4

no description

Example
Leave blank unless class changes
Stringsuggested
Image - Tier 1image1

no description

Stringrequired
Image - Tier 2image2

no description

Stringsuggested
Image - Tier 3image3

no description

Stringsuggested
Image - Tier 4image4

no description

Stringsuggested
Damage - Tier 1damage1

no description

Stringrequired
Damage - Tier 2damage2

no description

Stringsuggested
Damage - Tier 3damage3

no description

Stringsuggested
Damage - Tier 4damage4

no description

Stringsuggested
Critical - Tier 1critical1

no description

Stringsuggested
Critical - Tier 2critical2

no description

Stringsuggested
Critical - Tier 3critical3

no description

Stringsuggested
Critical - Tier 4critical4

no description

Stringsuggested
Cooldown - Tier 1cooldown1

no description

Stringrequired
Cooldown - Tier 2cooldown2

no description

Stringsuggested
Cooldown - Tier 3cooldown3

no description

Stringsuggested
Cooldown - Tier 4cooldown4

no description

Stringsuggested
Knockback - Tier 1knockback1

no description

Stringsuggested
Knockback - Tier 2knockback2

no description

Stringsuggested
Knockback - Tier 3knockback3

no description

Stringsuggested
Knockback - Tier 4knockback4

no description

Stringsuggested
Range - Tier 1range1

no description

Stringrequired
Range - Tier 2range2

no description

Stringsuggested
Range - Tier 3range3

no description

Stringsuggested
Range - Tier 4range4

no description

Stringsuggested
Life Steal - Tier 1lifesteal1

no description

Stringsuggested
Life Steal - Tier 2lifesteal2

no description

Stringsuggested
Life Steal - Tier 3lifesteal3

no description

Stringsuggested
Life Steal - Tier 4lifesteal4

no description

Stringsuggested
Piercing - Tier 1piercing1

no description

Stringsuggested
Piercing - Tier 2piercing2

no description

Stringsuggested
Piercing - Tier 3piercing3

no description

Stringsuggested
Piercing - Tier 4piercing4

no description

Stringsuggested
Bounce - Tier 1bounce1

no description

Stringsuggested
Bounce - Tier 2bounce2

no description

Stringsuggested
Bounce - Tier 3bounce3

no description

Stringsuggested
Bounce - Tier 4bounce4

no description

Stringsuggested
Special A - Tier 1speciala1

no description

Stringsuggested
Special A - Tier 2speciala2

no description

Stringsuggested
Special A - Tier 3speciala3

no description

Stringsuggested
Special A - Tier 4speciala4

no description

Stringsuggested
Special B - Tier 1specialb1

no description

Stringsuggested
Special B - Tier 2specialb2

no description

Stringsuggested
Special B - Tier 3specialb3

no description

Stringsuggested
Special B - Tier 4specialb4

no description

Stringsuggested
First Shown TierfirstShownTier

Either 1, 2, 3, or 4. Should always be 1, unless a lower tier is disabled

Example
1
Auto value
1
Numberrequired
Add Tier Numbers?addTierNumbers

If enabled, automatically adds II, III and IV to tier names

Auto value
1
Booleansuggested
Disable Tier 1?tier1disabled

If enabled, Tier 1 won't be clickable. Make sure you also change the First Shown Tier to 2 (or 3/4)

Booleansuggested
Disable Tier 2?tier2disabled

If enabled, Tier 2 won't be clickable. Make sure you also change the First Shown Tier to 3 (or 4)

Booleansuggested
Disable Tier 3?tier3disabled

If enabled, Tier 3 won't be clickable. Make sure you also change the First Shown Tier to 4

Booleansuggested
Disable Tier 4?tier4disabled

no description

Booleansuggested
Info Tabinfo

Add any custom content here to show it in a special Info tab

Stringsuggested
Unlock Tabunlock

Can be used to show unlock requirements

Stringsuggested
Add Line Breaks to Info?info_br

If enabled (with 1), adds 4 empty lines to the Info tab, which can make it a similar height to other tabs. Can also be achieved by adding <br> a few times after the info text.

Booleansuggested
Add Line Breaks to Unlock?unlock_br

If enabled (with 1), adds 3 empty lines to the Unlock tab, which can make it a similar height to other tabs. Can also be achieved by adding <br> a few times after the info text.

Booleansuggested