From Brotato Wiki
(replace toggle button inline styles with a class (.btn)) |
(add TemplateData) |
||
Line 15: | Line 15: | ||
| range = {{{range1|}}} | | range = {{{range1|}}} | ||
| lifesteal = {{{lifesteal1|}}} | | lifesteal = {{{lifesteal1|}}} | ||
| piercing = {{{piercing1|}}} | |||
| bounce = {{{bounce1|}}} | | bounce = {{{bounce1|}}} | ||
| special1 = {{{speciala1|}}} | | special1 = {{{speciala1|}}} | ||
| special2 = {{{specialb1|}}} | | special2 = {{{specialb1|}}} | ||
Line 34: | Line 34: | ||
| range = {{{range2|{{{range1|}}}}}} | | range = {{{range2|{{{range1|}}}}}} | ||
| lifesteal = {{{lifesteal2|{{{lifesteal1|}}}}}} | | lifesteal = {{{lifesteal2|{{{lifesteal1|}}}}}} | ||
| piercing = {{{piercing2|{{{piercing1|}}}}}} | |||
| bounce = {{{bounce2|{{{bounce1|}}}}}} | | bounce = {{{bounce2|{{{bounce1|}}}}}} | ||
| special1 = {{{speciala2|{{{speciala1|}}}}}} | | special1 = {{{speciala2|{{{speciala1|}}}}}} | ||
| special2 = {{{specialb2|{{{specialb1|}}}}}} | | special2 = {{{specialb2|{{{specialb1|}}}}}} | ||
Line 53: | Line 53: | ||
| range = {{{range3|{{{range2|{{{range1|}}}}}}}}} | | range = {{{range3|{{{range2|{{{range1|}}}}}}}}} | ||
| lifesteal = {{{lifesteal3|{{{lifesteal2|{{{lifesteal1|}}}}}}}}} | | lifesteal = {{{lifesteal3|{{{lifesteal2|{{{lifesteal1|}}}}}}}}} | ||
| piercing = {{{piercing3|{{{piercing2|{{{piercing1|}}}}}}}}} | |||
| bounce = {{{bounce3|{{{bounce2|{{{bounce1|}}}}}}}}} | | bounce = {{{bounce3|{{{bounce2|{{{bounce1|}}}}}}}}} | ||
| special1 = {{{speciala3|{{{speciala2|{{{speciala1|}}}}}}}}} | | special1 = {{{speciala3|{{{speciala2|{{{speciala1|}}}}}}}}} | ||
| special2 = {{{specialb3|{{{specialb2|{{{specialb1|}}}}}}}}} | | special2 = {{{specialb3|{{{specialb2|{{{specialb1|}}}}}}}}} | ||
Line 72: | Line 72: | ||
| range = {{{range4|{{{range3|{{{range2|{{{range1|}}}}}}}}}}}} | | range = {{{range4|{{{range3|{{{range2|{{{range1|}}}}}}}}}}}} | ||
| lifesteal = {{{lifesteal4|{{{lifesteal3|{{{lifesteal2|{{{lifesteal1|}}}}}}}}}}}} | | lifesteal = {{{lifesteal4|{{{lifesteal3|{{{lifesteal2|{{{lifesteal1|}}}}}}}}}}}} | ||
| piercing = {{{piercing4|{{{piercing3|{{{piercing2|{{{piercing1|}}}}}}}}}}}} | |||
| bounce = {{{bounce4|{{{bounce3|{{{bounce2|{{{bounce1|}}}}}}}}}}}} | | bounce = {{{bounce4|{{{bounce3|{{{bounce2|{{{bounce1|}}}}}}}}}}}} | ||
| special1 = {{{speciala4|{{{speciala3|{{{speciala2|{{{speciala1|}}}}}}}}}}}} | | special1 = {{{speciala4|{{{speciala3|{{{speciala2|{{{speciala1|}}}}}}}}}}}} | ||
| special2 = {{{specialb4|{{{specialb3|{{{specialb2|{{{specialb1|}}}}}}}}}}}} | | special2 = {{{specialb4|{{{specialb3|{{{specialb2|{{{specialb1|}}}}}}}}}}}} | ||
Line 234: | Line 234: | ||
| lifesteal3 = | | lifesteal3 = | ||
| lifesteal4 = | | lifesteal4 = | ||
| piercing1 = | |||
| piercing2 = | |||
| piercing3 = | |||
| piercing4 = | |||
| bounce1 = | | bounce1 = | ||
| bounce2 = | | bounce2 = | ||
| bounce3 = | | bounce3 = | ||
| bounce4 = | | bounce4 = | ||
| speciala1 = | | speciala1 = | ||
| speciala2 = | | speciala2 = | ||
Line 255: | Line 255: | ||
<!--Toggler:End--></div> | <!--Toggler:End--></div> | ||
</noinclude> | <templatedata> | ||
{ | |||
"params": { | |||
"firstShownTier": { | |||
"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?", | |||
"example": "If enabled, Tier 1 won't be clickable. Make sure you also change the First Shown Tier to 2 (or 3/4)", | |||
"type": "boolean", | |||
"suggested": true | |||
}, | |||
"tier2disabled": { | |||
"label": "Disable Tier 2?", | |||
"example": "If enabled, Tier 2 won't be clickable. Make sure you also change the First Shown Tier to 3 (or 4)", | |||
"type": "boolean", | |||
"suggested": true | |||
}, | |||
"tier3disabled": { | |||
"label": "Disable Tier 3?", | |||
"example": "If enabled, Tier 3 won't be clickable. Make sure you also change the First Shown Tier to 4", | |||
"type": "boolean", | |||
"suggested": true | |||
}, | |||
"tier4disabled": { | |||
"label": "Disable Tier 4?", | |||
"example": "Not sure why this would ever be needed, but included for completeness", | |||
"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", | |||
"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, | |||
"suggested": true | |||
}, | |||
"cooldown2": { | |||
"label": "Cooldown - Tier 2", | |||
"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", | |||
"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, | |||
"suggested": true | |||
}, | |||
"range2": { | |||
"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", | |||
"suggested": true | |||
}, | |||
"lifesteal4": { | |||
"label": "Life Steal - Tier 4", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"piercing1": { | |||
"label": "Piercing - Tier 1", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"piercing2": { | |||
"label": "Piercing - Tier 2", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"piercing3": { | |||
"label": "Piercing - Tier 3", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"piercing4": { | |||
"label": "Piercing - Tier 4", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"bounce1": { | |||
"label": "Bounce - Tier 1", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"bounce2": { | |||
"label": "Bounce - Tier 2", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"bounce3": { | |||
"label": "Bounce - Tier 3", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"bounce4": { | |||
"label": "Bounce - Tier 4", | |||
"type": "string", | |||
"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 | |||
} | |||
}, | |||
"paramOrder": [ | |||
"firstShownTier", | |||
"addTierNumbers", | |||
"tier1disabled", | |||
"tier2disabled", | |||
"tier3disabled", | |||
"tier4disabled", | |||
"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" | |||
] | |||
} | |||
</templatedata></noinclude> |
Revision as of 06:40, 6 December 2022
Creates a set of tabs for a weapon.
Similar to Template:StatsCardWeapon but with tabs to show stats at different tiers.
Example
If you don't include a value for a tier, the previous tier's value will be used instead.
Code | Preview |
---|---|
{{StatsCardWeaponTabs | firstShownTier = 1 | addTierNumbers = 1 | tier1disabled = 0 | tier2disabled = 0 | tier3disabled = 0 | tier4disabled = 0 | 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 }} |
|
Notes
The firstShownTier
is mandatory. Leaving it out will prevent anything from being shown.
In the example above, "Piercing" is shown as 0 at tiers 1 and 2. This is because this particular weapon gains piercing at tier 3, but leaving it off of tiers 1 and 2 will make the container change its height when you click through the tabs, which is jarring for users.
Special effects are labelled "speciala" and "specialb" (plus their tier, eg speciala3
), rather than "special1/special2/etc" like in Template:StatsCardWeapon.
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 | firstShownTier = 1 | addTierNumbers = 1 | tier1disabled = 0 | tier2disabled = 0 | tier3disabled = 0 | tier4disabled = 0 | 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 = }}
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
First Shown Tier | firstShownTier | Either 1, 2, 3, or 4. Should always be 1, unless a lower tier is disabled
| Number | required |
Add Tier Numbers? | addTierNumbers | If enabled, automatically adds II, III and IV to tier names
| Boolean | suggested |
Disable Tier 1? | tier1disabled | no description
| Boolean | suggested |
Disable Tier 2? | tier2disabled | no description
| Boolean | suggested |
Disable Tier 3? | tier3disabled | no description
| Boolean | suggested |
Disable Tier 4? | tier4disabled | no description
| Boolean | suggested |
Name - Tier 1 | name1 | no description
| String | required |
Name - Tier 2 | name2 | no description
| String | suggested |
Name - Tier 3 | name3 | no description
| String | suggested |
Name - Tier 4 | name4 | no description
| String | suggested |
Class - Tier 1 | class1 | no description | String | required |
Class - Tier 2 | class2 | no description
| String | suggested |
Class - Tier 3 | class3 | no description
| String | suggested |
Class - Tier 4 | class4 | no description
| String | suggested |
Image - Tier 1 | image1 | no description | String | required |
Image - Tier 2 | image2 | no description | String | suggested |
Image - Tier 3 | image3 | no description | String | suggested |
Image - Tier 4 | image4 | no description | String | suggested |
Damage - Tier 1 | damage1 | no description | String | required |
Damage - Tier 2 | damage2 | no description | String | suggested |
Damage - Tier 3 | damage3 | no description | String | suggested |
Damage - Tier 4 | damage4 | no description | String | suggested |
Critical - Tier 1 | critical1 | no description | String | suggested |
Critical - Tier 2 | critical2 | no description | String | suggested |
Critical - Tier 3 | critical3 | no description | String | suggested |
Critical - Tier 4 | critical4 | no description | String | suggested |
Cooldown - Tier 1 | cooldown1 | no description | String | required |
Cooldown - Tier 2 | cooldown2 | no description | String | suggested |
Cooldown - Tier 3 | cooldown3 | no description | String | suggested |
Cooldown - Tier 4 | cooldown4 | no description | String | suggested |
Knockback - Tier 1 | knockback1 | no description | String | suggested |
Knockback - Tier 2 | knockback2 | no description | String | suggested |
Knockback - Tier 3 | knockback3 | no description | String | suggested |
Knockback - Tier 4 | knockback4 | no description | String | suggested |
Range - Tier 1 | range1 | no description | String | required |
Range - Tier 2 | range2 | no description | String | suggested |
Range - Tier 3 | range3 | no description | String | suggested |
Range - Tier 4 | range4 | no description | String | suggested |
Life Steal - Tier 1 | lifesteal1 | no description | String | suggested |
Life Steal - Tier 2 | lifesteal2 | no description | String | suggested |
Life Steal - Tier 3 | lifesteal3 | no description | String | suggested |
Life Steal - Tier 4 | lifesteal4 | no description | String | suggested |
Piercing - Tier 1 | piercing1 | no description | String | suggested |
Piercing - Tier 2 | piercing2 | no description | String | suggested |
Piercing - Tier 3 | piercing3 | no description | String | suggested |
Piercing - Tier 4 | piercing4 | no description | String | suggested |
Bounce - Tier 1 | bounce1 | no description | String | suggested |
Bounce - Tier 2 | bounce2 | no description | String | suggested |
Bounce - Tier 3 | bounce3 | no description | String | suggested |
Bounce - Tier 4 | bounce4 | no description | String | suggested |
Special A - Tier 1 | speciala1 | no description | String | suggested |
Special A - Tier 2 | speciala2 | no description | String | suggested |
Special A - Tier 3 | speciala3 | no description | String | suggested |
Special A - Tier 4 | speciala4 | no description | String | suggested |
Special B - Tier 1 | specialb1 | no description | String | suggested |
Special B - Tier 2 | specialb2 | no description | String | suggested |
Special B - Tier 3 | specialb3 | no description | String | suggested |
Special B - Tier 4 | specialb4 | no description | String | suggested |