From Brotato Wiki
(replace "type" with "cat") |
(TemplateData: use format: block) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 112: | Line 112: | ||
<!-- | <!-- | ||
Apologies for this. Explanation: | Apologies for this, it's very messy. Explanation: | ||
* `cardtabs__button--active` = Aplied to the sole initially visible button, usually tier1. Only used once | * `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 | * `cardtabs__button--disabled` = Applied to any disabled tiers. Most of the time this won't be used | ||
* Also, data-cardtabs-btn is -1 if that tier is disabled | |||
--> | --> | ||
<div class="cardtabs__buttons" data-cardtabs-btns> | <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|}} <!-- | <div data-cardtabs-btn="{{#ifeq:{{{tier1disabled|}}}|1|-1|1}}" class="cardtabs__button rarity1 rarity1dark {{#ifeq:{{{firstShownTier|}}}|1|cardtabs__button--active|}} {{#ifeq:{{{tier1disabled|}}}|1|cardtabs__button--disabled|}} <!-- | ||
-->"> I </div> | -->"> I </div> | ||
<div data-cardtabs-btn="2" class="cardtabs__button rarity2 rarity2dark {{#ifeq:{{{firstShownTier|}}}|2|cardtabs__button--active|}} {{#ifeq:{{{tier2disabled|}}}|1|cardtabs__button--disabled|}} <!-- | <div data-cardtabs-btn="{{#ifeq:{{{tier2disabled|}}}|1|-1|2}}" class="cardtabs__button rarity2 rarity2dark {{#ifeq:{{{firstShownTier|}}}|2|cardtabs__button--active|}} {{#ifeq:{{{tier2disabled|}}}|1|cardtabs__button--disabled|}} <!-- | ||
-->"> II </div> | -->"> II </div> | ||
<div data-cardtabs-btn="3" class="cardtabs__button rarity3 rarity3dark {{#ifeq:{{{firstShownTier|}}}|3|cardtabs__button--active|}} {{#ifeq:{{{tier3disabled|}}}|1|cardtabs__button--disabled|}} <!-- | <div data-cardtabs-btn="{{#ifeq:{{{tier3disabled|}}}|1|-1|3}}" class="cardtabs__button rarity3 rarity3dark {{#ifeq:{{{firstShownTier|}}}|3|cardtabs__button--active|}} {{#ifeq:{{{tier3disabled|}}}|1|cardtabs__button--disabled|}} <!-- | ||
-->"> III </div> | -->"> III </div> | ||
<div data-cardtabs-btn="4" class="cardtabs__button rarity4 rarity4dark {{#ifeq:{{{firstShownTier|}}}|4|cardtabs__button--active|}} {{#ifeq:{{{tier4disabled|}}}|1|cardtabs__button--disabled|}} <!-- | <div data-cardtabs-btn="{{#ifeq:{{{tier4disabled|}}}|1|-1|4}}" class="cardtabs__button rarity4 rarity4dark {{#ifeq:{{{firstShownTier|}}}|4|cardtabs__button--active|}} {{#ifeq:{{{tier4disabled|}}}|1|cardtabs__button--disabled|}} <!-- | ||
-->"> IV </div> | -->"> IV </div><!-- | ||
{{#if:{{{info|}}}| | -->{{#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|}} <!-- | <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> | -->">[[File:Info_Icon.png|14px|link=]]</div> | ||
}} | }}<!-- | ||
{{#if:{{{unlock|}}}| | -->{{#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|}} <!-- | <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> | -->">[[File:Locked_Icon.png|14px|link=]]</div> | ||
}} | }}<!-- | ||
</div> | --></div> | ||
</div><!-- | </div><!-- | ||
--></includeonly></onlyinclude><noinclude> | --></includeonly></onlyinclude><noinclude> | ||
Line 739: | Line 740: | ||
"info_br", | "info_br", | ||
"unlock_br" | "unlock_br" | ||
] | ], | ||
"format": "block" | |||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
Latest revision as of 05:38, 18 June 2023
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 }} |
|
{{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 }} |
[[File:|60x60px]] |
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
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 |
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 | If enabled, Tier 1 won't be clickable. Make sure you also change the First Shown Tier to 2 (or 3/4) | Boolean | suggested |
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) | Boolean | suggested |
Disable Tier 3? | tier3disabled | If enabled, Tier 3 won't be clickable. Make sure you also change the First Shown Tier to 4 | Boolean | suggested |
Disable Tier 4? | tier4disabled | no description | Boolean | suggested |
Info Tab | info | Add any custom content here to show it in a special Info tab | String | suggested |
Unlock Tab | unlock | Can be used to show unlock requirements | String | suggested |
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. | Boolean | suggested |
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. | Boolean | suggested |