From Brotato Wiki

(replace "type" with "cat")
Tag: Reverted
(fix me pasting data into the wrong template! -- Undo revision 3671 by Darkly77 (talk))
Tag: Undo
Line 1: Line 1:
<onlyinclude><includeonly><!--
<onlyinclude><includeonly><!--
--><div class="cardtabs" data-cardtabs>
-->{{StatsCard
<div class="mytabs__panels" data-cardtabs-panels>
| name   = {{{name|}}}
 
| type  = weapon
<div data-cardtabs-panel="1" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|1||cardtabs__panel--js-hidden}}">
| cat   = {{{class|}}}
{{StatsCardWeapon
| image = {{{image|}}}
| name     = {{{name1|}}}
| rarity = {{{rarity|1}}}
| class    = {{{class1|}}}
| stat1 = {{#if:{{{damage|}}}| {{Color|cream|Damage:}} {{{damage}}} }}
| image    = {{{image1|}}}
| stat2 = {{#if:{{{critical|}}}| {{Color|cream|Critical:}} {{{critical}}} }}
| rarity    = 1
| stat3 = {{#if:{{{cooldown|}}}| {{Color|cream|Cooldown:}} {{{cooldown}}} }}
| damage   = {{{damage1|}}}
| stat4 = {{#if:{{{knockback|}}}| {{Color|cream|Knockback:}} {{{knockback}}} }}
| critical = {{{critical1|}}}
| stat5 = {{#if:{{{range|}}}| {{Color|cream|Range:}} {{{range}}} }}
| cooldown  = {{{cooldown1|}}}
| stat6 = {{#if:{{{lifesteal|}}}| {{Color|cream|Lifesteal:}} {{{lifesteal}}} }}
| knockback = {{{knockback1|}}}
| stat7 = {{#if:{{{bounce|}}}| {{Color|cream|Bounce:}} {{{bounce}}} }}
| range    = {{{range1|}}}
| stat8 = {{#if:{{{piercing|}}}| {{Color|cream|Piercing:}} {{{piercing}}} }}
| lifesteal = {{{lifesteal1|}}}
| stat9 = {{#if:{{{special1|}}}| {{{special1}}} }}
| piercing  = {{{piercing1|}}}
| stat10 = {{#if:{{{special2|}}}| {{{special2}}} }}
| bounce    = {{{bounce1|}}}
| stat11 = {{#if:{{{special3|}}}| {{{special3}}} }}
| special1  = {{{speciala1|}}}
| stat12 = {{#if:{{{special4|}}}| {{{special4}}} }}
| special2 = {{{specialb1|}}}
| stat13 = {{#if:{{{special5|}}}| {{{special5}}} }}
}}
| stat14 = {{#if:{{{special6|}}}| {{{special6}}} }}
</div>
| stat15 = {{#if:{{{special7|}}}| {{{special7}}} }}
 
| stat16 = {{#if:{{{special8|}}}| {{{special8}}} }}
<div data-cardtabs-panel="2" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|2||cardtabs__panel--js-hidden}}">
| stat17 = {{#if:{{{special9|}}}| {{{special9}}} }}
{{StatsCardWeapon
| stat18 = {{#if:{{{special10|}}}| {{{special10}}} }}
| name      = {{{name2|{{{name1|}}}}}} {{#if:{{{addTierNumbers|}}}|II}}
| stat19 = {{#if:{{{special11|}}}| {{{special11}}} }}
| class    = {{{class2|{{{class1|}}}}}}
| stat20 = {{#if:{{{special12|}}}| {{{special12}}} }}
| 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).


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


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


== Notes ==
{| class="wikitable"
 
|+ 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
The <code>firstShownTier</code> option is mandatory. Leaving it out will prevent anything from being shown.
! Code
 
! 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
== Example ==
| name     = Mom's Knife
 
| class     = Precise, Demonic
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.
| image     = Mod-Isaac-moms_knife_icon.png
 
| rarity    = 2
<table class="wikitable">
| damage   = 30 (60%{{StatIcon|Melee Damage}})
<tr>
| critical  = x1.5 (30% chance)
<th>Code</th>
| cooldown  = 1.86s
<th>Preview</th>
| knockback = 2
</tr>
| range    = 350 (Melee)
<tr>
| lifesteal =
<td style="padding: 20px 30px;">
| bounce    =
<pre>
| piercing =
{{StatsCardWeaponTabs
| special1 =
| name1     = Isaac's Tears
| special2 =
| class1     = Tears
}}
| image1     = Mod-Isaac-isaacs_tears_icon.png
| <pre>
| image3    = Mod-Isaac-isaacs_tears_icon_bloody.png
{{StatsCardWeapon
| damage1   = 7 ({{StatIcon|Ranged Damage}})
| name      = Mom's Knife
| damage2    = 14 ({{StatIcon|Ranged Damage}})
| class    = Precise, Demonic
| damage3    = 28 ({{StatIcon|Ranged Damage}})
| image     = Mod-Isaac-moms_knife_icon.png
| damage4    = 45 ({{StatIcon|Ranged Damage}})
| rarity    = 2
| critical1  = x2 (3% chance)
| damage    = 30 (60%{{StatIcon|Melee Damage}})
| cooldown1 = 0.7s
| critical  = x1.5 (30% chance)
| cooldown2 = 0.62s
| cooldown = 1.3s
| cooldown3 = 0.53s
| knockback = 2
| cooldown4  = 0.45s
| range    = 350 (Melee)
| knockback1 = 10
| lifesteal =
| range1     = 700 (Ranged)
| bounce    =
| piercing1  = {{Color|grey|0}}
| pierce    =
| piercing3 = 1
| special1 =
| firstShownTier = 1
| special2 =
| addTierNumbers = 1
| tier1disabled  = 0
| tier2disabled  = 0
| tier3disabled = 0
| tier4disabled = 0
}}
}}
</pre>
</pre>
</td>
| <pre>
<td style="padding: 20px 30px;">
{{StatsCardWeapon
{{StatsCardWeaponTabs
| name     =  
| name1      = Isaac's Tears
| class     =  
| class1    = Tears
| image     =  
| image1    = Mod-Isaac-isaacs_tears_icon.png
| rarity   =  
| image3    = Mod-Isaac-isaacs_tears_icon_bloody.png
| damage   =  
| damage1    = 7 ({{StatIcon|Ranged Damage}})
| critical =  
| damage2    = 14 ({{StatIcon|Ranged Damage}})
| cooldown =  
| damage3    = 28 ({{StatIcon|Ranged Damage}})
| knockback =  
| damage4    = 45 ({{StatIcon|Ranged Damage}})
| range     =  
| critical1  = x2 (3% chance)
| lifesteal =
| cooldown1  = 0.7s
| bounce   =
| cooldown2  = 0.62s
| pierce   =
| cooldown3  = 0.53s
| special1 =
| cooldown4  = 0.45s
| special2 =
| knockback1 = 10
| range1    = 700 (Ranged)
| piercing1  = {{Color|grey|0}}
| piercing3  = 1
| firstShownTier = 1
| addTierNumbers = 1
| tier1disabled  = 0
| tier2disabled  = 0
| tier3disabled  = 0
| tier4disabled  = 0
}}
</td>
</tr>
<tr>
<td style="padding: 20px 30px;"><pre>
{{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
}}</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": {
"firstShownTier": {
"name": {
"label": "First Shown Tier",
"label": "Name",
"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",
"type": "string",
"required": true,
"required": true,
"suggested": true
"suggested": true
},
},
"name2": {
"class": {
"label": "Name - Tier 2",
"label": "Class",
"example": "Leave blank unless name changes",
"example": "Primitive, Heavy",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"name3": {
"image": {
"label": "Name - Tier 3",
"label": "Image",
"example": "Leave blank unless name changes",
"example": "My_Image.png",
"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",
"type": "string",
"required": true,
"required": true,
"suggested": true
"suggested": true
},
},
"class2": {
"rarity": {
"label": "Class - Tier 2",
"label": "Rarity",
"example": "Leave blank unless class changes",
"example": "1/2/3/4",
"type": "string",
"type": "number",
"suggested": true
"autovalue": "1",
},
"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",
"required": true,
"suggested": true
},
"damage2": {
"label": "Damage - Tier 2",
"type": "string",
"suggested": true
},
"damage3": {
"label": "Damage - Tier 3",
"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",
"required": true,
"required": true,
"suggested": true
"suggested": true
},
},
"cooldown2": {
"damage": {
"label": "Cooldown - Tier 2",
"label": "Damage",
"type": "string",
"suggested": true
},
"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",
"type": "string",
"suggested": true
"suggested": true
},
},
"knockback2": {
"critical": {
"label": "Knockback - Tier 2",
"label": "Critical",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"knockback3": {
"cooldown": {
"label": "Knockback - Tier 3",
"label": "Cooldown",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"knockback4": {
"knockback": {
"label": "Knockback - Tier 4",
"label": "Knockback",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"range1": {
"range": {
"label": "Range - Tier 1",
"label": "Range",
"type": "string",
"type": "string",
"required": true,
"suggested": true
"suggested": true
},
},
"range2": {
"lifesteal": {
"label": "Range - Tier 2",
"label": "Lifesteal",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"range3": {
"bounce": {
"label": "Range - Tier 3",
"label": "Bounce",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"range4": {
"pierce": {
"label": "Range - Tier 4",
"label": "Pierce",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"lifesteal1": {
"special1": {
"label": "Life Steal - Tier 1",
"label": "Special 1",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"lifesteal2": {
"special2": {
"label": "Life Steal - Tier 2",
"label": "Special 2",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"lifesteal3": {
"special3": {
"label": "Life Steal - Tier 3",
"label": "Special 3",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"lifesteal4": {
"special4": {
"label": "Life Steal - Tier 4",
"label": "Special 4",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"piercing1": {
"special5": {
"label": "Piercing - Tier 1",
"label": "Special 5",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"piercing2": {
"special6": {
"label": "Piercing - Tier 2",
"label": "Special 6",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"piercing3": {
"special7": {
"label": "Piercing - Tier 3",
"label": "Special 7",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"piercing4": {
"special8": {
"label": "Piercing - Tier 4",
"label": "Special 8",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"bounce1": {
"special9": {
"label": "Bounce - Tier 1",
"label": "Special 9",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"bounce2": {
"special10": {
"label": "Bounce - Tier 2",
"label": "Special 10",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"bounce3": {
"special11": {
"label": "Bounce - Tier 3",
"label": "Special 11",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"bounce4": {
"special12": {
"label": "Bounce - Tier 4",
"label": "Special 12",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
"speciala1": {
"label": "Special A - Tier 1",
"type": "string",
"suggested": true
},
"speciala2": {
"label": "Special A - Tier 2",
"type": "string",
"suggested": true
},
"speciala3": {
"label": "Special A - Tier 3",
"type": "string",
"suggested": true
},
"speciala4": {
"label": "Special A - Tier 4",
"type": "string",
"suggested": true
},
"specialb1": {
"label": "Special B - Tier 1",
"type": "string",
"suggested": true
},
"specialb2": {
"label": "Special B - Tier 2",
"type": "string",
"suggested": true
},
"specialb3": {
"label": "Special B - Tier 3",
"type": "string",
"suggested": true
},
"specialb4": {
"label": "Special B - Tier 4",
"type": "string",
"suggested": true
},
"info": {
"label": "Info Tab",
"description": "Add any custom content here to show it in a special Info tab",
"type": "string",
"suggested": true
},
"info_br": {
"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",
"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": [
"name1",
"name",
"name2",
"class",
"name3",
"image",
"name4",
"rarity",
"class1",
"damage",
"class2",
"critical",
"class3",
"cooldown",
"class4",
"knockback",
"image1",
"range",
"image2",
"lifesteal",
"image3",
"bounce",
"image4",
"pierce",
"damage1",
"special1",
"damage2",
"special2",
"damage3",
"special3",
"damage4",
"special4",
"critical1",
"special5",
"critical2",
"special6",
"critical3",
"special7",
"critical4",
"special8",
"cooldown1",
"special9",
"cooldown2",
"special10",
"cooldown3",
"special11",
"cooldown4",
"special12"
"knockback1",
],
"knockback2",
"format": "block"
"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:26, 14 December 2022

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 mod pages.

Examples

Caption text
Preview Code Empty

Mod-Isaac-moms knife icon.png

Mom's Knife
Precise, Demonic
  • Damage: 30 (60%Melee Damage.png)
  • Critical: x1.5 (30% chance)
  • Cooldown: 1.86s
  • Knockback: 2
  • Range: 350 (Melee)
{{StatsCardWeapon
| name      = Mom's Knife
| class     = Precise, Demonic
| image     = Mod-Isaac-moms_knife_icon.png
| rarity    = 2
| damage    = 30 (60%{{StatIcon|Melee Damage}})
| critical  = x1.5 (30% chance)
| cooldown  = 1.3s
| knockback = 2
| range     = 350 (Melee)
| lifesteal =
| bounce    =
| pierce    =
| special1  =
| special2  =
}}
{{StatsCardWeapon
| name      = 
| class     = 
| image     = 
| rarity    = 
| damage    = 
| critical  = 
| cooldown  = 
| knockback = 
| range     = 
| lifesteal =
| bounce    =
| pierce    =
| special1  =
| special2  =
}}

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

no description

Stringrequired
Classclass

no description

Example
Primitive, Heavy
Stringsuggested
Imageimage

no description

Example
My_Image.png
Stringrequired
Rarityrarity

no description

Example
1/2/3/4
Auto value
1
Numberrequired
Damagedamage

no description

Stringsuggested
Criticalcritical

no description

Stringsuggested
Cooldowncooldown

no description

Stringsuggested
Knockbackknockback

no description

Stringsuggested
Rangerange

no description

Stringsuggested
Lifesteallifesteal

no description

Stringsuggested
Bouncebounce

no description

Stringsuggested
Piercepierce

no description

Stringsuggested
Special 1special1

no description

Stringsuggested
Special 2special2

no description

Stringsuggested
Special 3special3

no description

Stringsuggested
Special 4special4

no description

Stringsuggested
Special 5special5

no description

Stringsuggested
Special 6special6

no description

Stringsuggested
Special 7special7

no description

Stringsuggested
Special 8special8

no description

Stringsuggested
Special 9special9

no description

Stringsuggested
Special 10special10

no description

Stringsuggested
Special 11special11

no description

Stringsuggested
Special 12special12

no description

Stringsuggested