From Brotato Wiki
(Update to use logic and options, templatedata still needs doing) |
(add option: addTierNumbers) |
||
Line 24: | Line 24: | ||
<div data-cardtabs-panel="2" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|2||cardtabs__panel--js-hidden}}"> | <div data-cardtabs-panel="2" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|2||cardtabs__panel--js-hidden}}"> | ||
{{StatsCardWeapon | {{StatsCardWeapon | ||
| name = {{{name2|{{{name1|}}}}}} | | name = {{{name2|{{{name1|}}}}}} {{#if:{{{addTierNumbers|}}}|II}} | ||
| class = {{{class2|{{{class1|}}}}}} | | class = {{{class2|{{{class1|}}}}}} | ||
| image = {{{image2|{{{image1|}}}}}} | | image = {{{image2|{{{image1|}}}}}} | ||
Line 43: | Line 43: | ||
<div data-cardtabs-panel="3" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|3||cardtabs__panel--js-hidden}}"> | <div data-cardtabs-panel="3" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|3||cardtabs__panel--js-hidden}}"> | ||
{{StatsCardWeapon | {{StatsCardWeapon | ||
| name = {{{name3|{{{name2|{{{name1|}}}}}}}}} | | name = {{{name3|{{{name2|{{{name1|}}}}}}}}} {{#if:{{{addTierNumbers|}}}|III}} | ||
| class = {{{class3|{{{class2|{{{class1|}}}}}}}}} | | class = {{{class3|{{{class2|{{{class1|}}}}}}}}} | ||
| image = {{{image3|{{{image2|{{{image1|}}}}}}}}} | | image = {{{image3|{{{image2|{{{image1|}}}}}}}}} | ||
Line 62: | Line 62: | ||
<div data-cardtabs-panel="4" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|4||cardtabs__panel--js-hidden}}"> | <div data-cardtabs-panel="4" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|4||cardtabs__panel--js-hidden}}"> | ||
{{StatsCardWeapon | {{StatsCardWeapon | ||
| name = {{{name4|{{{name3|{{{name2|{{{name1|}}}}}}}}}}}} | | name = {{{name4|{{{name3|{{{name2|{{{name1|}}}}}}}}}}}} {{#if:{{{addTierNumbers|}}}|IV}} | ||
| class = {{{class4|{{{class3|{{{class2|{{{class1|}}}}}}}}}}}} | | class = {{{class4|{{{class3|{{{class2|{{{class1|}}}}}}}}}}}} | ||
| image = {{{image4|{{{image3|{{{image2|{{{image1|}}}}}}}}}}}} | | image = {{{image4|{{{image3|{{{image2|{{{image1|}}}}}}}}}}}} | ||
Line 99: | Line 99: | ||
--></includeonly></onlyinclude><noinclude> | --></includeonly></onlyinclude><noinclude> | ||
Creates a set of tabs for a weapon. Similar to [[Template:StatsCardWeapon]] but with tabs. | Creates a set of tabs for a weapon. | ||
Similar to [[Template:StatsCardWeapon]] but with tabs to show stats at different tiers. | |||
== Example == | == Example == | ||
Line 115: | Line 117: | ||
{{StatsCardWeaponTabs | {{StatsCardWeaponTabs | ||
| firstShownTier = 1 | | firstShownTier = 1 | ||
| addTierNumbers = 1 | |||
| tier1disabled = 0 | | tier1disabled = 0 | ||
| tier2disabled = 0 | | tier2disabled = 0 | ||
Line 120: | Line 123: | ||
| tier4disabled = 0 | | tier4disabled = 0 | ||
| name1 = Isaac's Tears | | name1 = Isaac's Tears | ||
| class1 = Tears | | class1 = Tears | ||
| image1 = Mod-Isaac-isaacs_tears_icon.png | | image1 = Mod-Isaac-isaacs_tears_icon.png | ||
Line 143: | Line 145: | ||
{{StatsCardWeaponTabs | {{StatsCardWeaponTabs | ||
| firstShownTier = 1 | | firstShownTier = 1 | ||
| addTierNumbers = 1 | |||
| tier1disabled = 0 | | tier1disabled = 0 | ||
| tier2disabled = 0 | | tier2disabled = 0 | ||
Line 148: | Line 151: | ||
| tier4disabled = 0 | | tier4disabled = 0 | ||
| name1 = Isaac's Tears | | name1 = Isaac's Tears | ||
| class1 = Tears | | class1 = Tears | ||
| image1 = Mod-Isaac-isaacs_tears_icon.png | | image1 = Mod-Isaac-isaacs_tears_icon.png | ||
Line 191: | Line 193: | ||
{{StatsCardWeaponTabs | {{StatsCardWeaponTabs | ||
| firstShownTier = 1 | | firstShownTier = 1 | ||
| addTierNumbers = 1 | |||
| tier1disabled = 0 | | tier1disabled = 0 | ||
| tier2disabled = 0 | | tier2disabled = 0 |
Revision as of 05:50, 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 = 2 | range1 = 350 (Melee) | 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 = | bounce1 = | bounce2 = | bounce3 = | bounce4 = | piercing1 = | piercing2 = | piercing3 = | piercing4 = | speciala1 = | speciala2 = | speciala3 = | speciala4 = | specialb1 = | specialb2 = | specialb3 = | specialb4 = }}