From Dark and Darker Wiki

(Created page with "<onlyinclude><includeonly><!-- --><div class="cardtabs" data-cardtabs> <div class="mytabs__panels" data-cardtabs-panels> <div data-cardtabs-panel="1" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|1||cardtabs__panel--js-hidden}}"> {{Infobox Weapon | name = {{{name1|}}} | classes = {{{classes1|}}} | damage = {{{damage1|}}} | rarity = 0 | movementspeed = {{{m...")
 
No edit summary
Line 20: Line 20:
<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}}">
{{Infobox Weapon
{{Infobox Weapon
| name                    = {{{name1|}}} {{#if:{{{addTierNumbers|}}}|II}}
| name                    = {{{name1|}}}
| classes                = {{{classes1|}}}
| classes                = {{{classes1|}}}
| damage                  = {{{damage2|{{{damage1|}}}}}}
| damage                  = {{{damage2|{{{damage1|}}}}}}
Line 35: Line 35:
<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}}">
{{Infobox Weapon
{{Infobox Weapon
| name                    = {{{name1|}}} {{#if:{{{addTierNumbers|}}}|III}}
| name                    = {{{name1|}}}
| classes                = {{{classes1|}}}
| classes                = {{{classes1|}}}
| damage                  = {{{damage3|{{{damage2|{{{damage1|}}}}}}}}}
| damage                  = {{{damage3|{{{damage2|{{{damage1|}}}}}}}}}
Line 50: Line 50:
<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}}">
{{Infobox Weapon
{{Infobox Weapon
| name                    = {{{name1|}}} {{#if:{{{addTierNumbers|}}}|IV}}
| name                    = {{{name1|}}}
| classes                = {{{classes1|}}}
| classes                = {{{classes1|}}}
| damage                  = {{{damage4|{{{damage3|{{{damage2|{{{damage1|}}}}}}}}}}}}
| damage                  = {{{damage4|{{{damage3|{{{damage2|{{{damage1|}}}}}}}}}}}}
Line 65: Line 65:
<div data-cardtabs-panel="5" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|5||cardtabs__panel--js-hidden}}">
<div data-cardtabs-panel="5" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|5||cardtabs__panel--js-hidden}}">
{{Infobox Weapon
{{Infobox Weapon
| name                    = {{{name1|}}} {{#if:{{{addTierNumbers|}}}|V}}
| name                    = {{{name1|}}}
| classes                = {{{classes1|}}}
| classes                = {{{classes1|}}}
| damage                  = {{{damage5|{{{damage4|{{{damage3|{{{damage2|{{{damage1|}}}}}}}}}}}}}}}
| damage                  = {{{damage5|{{{damage4|{{{damage3|{{{damage2|{{{damage1|}}}}}}}}}}}}}}}
Line 80: Line 80:
<div data-cardtabs-panel="6" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|6||cardtabs__panel--js-hidden}}">
<div data-cardtabs-panel="6" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|6||cardtabs__panel--js-hidden}}">
{{Infobox Weapon
{{Infobox Weapon
| name                    = {{{name1|}}} {{#if:{{{addTierNumbers|}}}|VI}}
| name                    = {{{name1|}}}
| classes                = {{{classes1|}}}
| classes                = {{{classes1|}}}
| damage                  = {{{damage6|{{{damage5|{{{damage4|{{{damage3|{{{damage2|{{{damage1|}}}}}}}}}}}}}}}}}}
| damage                  = {{{damage6|{{{damage5|{{{damage4|{{{damage3|{{{damage2|{{{damage1|}}}}}}}}}}}}}}}}}}
Line 95: Line 95:
<div data-cardtabs-panel="7" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|7||cardtabs__panel--js-hidden}}">
<div data-cardtabs-panel="7" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|7||cardtabs__panel--js-hidden}}">
{{Infobox Weapon
{{Infobox Weapon
| name                    = {{{name1|}}} {{#if:{{{addTierNumbers|}}}|VII}}
| name                    = {{{name1|}}}
| classes                = {{{classes1|}}}
| classes                = {{{classes1|}}}
| damage                  = {{{classes7|{{{damage6|{{{damage5|{{{damage4|{{{damage3|{{{damage2|{{{damage1|}}}}}}}}}}}}}}}}}}}}}
| damage                  = {{{classes7|{{{damage6|{{{damage5|{{{damage4|{{{damage3|{{{damage2|{{{damage1|}}}}}}}}}}}}}}}}}}}}}
Line 110: Line 110:
<div data-cardtabs-panel="8" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|8||cardtabs__panel--js-hidden}}">
<div data-cardtabs-panel="8" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|8||cardtabs__panel--js-hidden}}">
{{Infobox Weapon
{{Infobox Weapon
| name                    = {{{name1|}}} {{#if:{{{addTierNumbers|}}}|VIII}}
| name                    = {{{name1|}}}
| classes                = {{{classes1|}}}
| classes                = {{{classes1|}}}
| damage                  = {{{damage8|{{{damage7|{{{damage6|{{{damage5|{{{damages4|{{{damage3|{{{damage2|{{{damage1|}}}}}}}}}}}}}}}}}}}}}}}}
| damage                  = {{{damage8|{{{damage7|{{{damage6|{{{damage5|{{{damages4|{{{damage3|{{{damage2|{{{damage1|}}}}}}}}}}}}}}}}}}}}}}}}
Line 151: Line 151:
--></includeonly></onlyinclude><noinclude>
--></includeonly></onlyinclude><noinclude>


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 <code>name1</code>).
The <code>firstShownTier</code> option is mandatory. Leaving it out will prevent anything from being shown.
Special effects are labelled "speciala" and "specialb" (plus their tier, eg <code>speciala3</code>), rather than "special1/special2/etc" like in [[Template:StatsCard|StatsCard]].


== Example ==
== 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.


<table class="wikitable">
<table class="wikitable">
Line 175: Line 163:
<td style="padding: 20px 30px;">
<td style="padding: 20px 30px;">
<pre>
<pre>
{{StatsCardWeaponTabs
{{Infobox Weapon
| name1      = Isaac's Tears
| name                    = Arming Sword
| class1    = Tears
| classes                = [[Fighter]], [[Ranger]]
| image1    = Mod-Isaac-isaacs_tears_icon.png
| damage                  = {{{damage1|}}}
| image3    = Mod-Isaac-isaacs_tears_icon_bloody.png
| image                  = {{{image1|}}}
| damage1    = 7 ({{StatIcon|Ranged Damage}})
| movementspeed          = {{{movementspeed1|}}}
| damage2    = 14 ({{StatIcon|Ranged Damage}})
| combo                  = {{{combo1|}}}
| damage3    = 28 ({{StatIcon|Ranged Damage}})
| combodamage            = {{{combodamage1|}}}
| damage4    = 45 ({{StatIcon|Ranged Damage}})
| attackspeed            = {{{attackspeed1|}}}
| critical1  = x2 (3% chance)
| sweetsour              = {{{sweetsour1|}}}
| cooldown1  = 0.7s
| actionmovementspeed     = {{{actionmovementspeed1|}}}
| 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>
Line 220: Line 195:
<td style="padding: 20px 30px;"><pre>
<td style="padding: 20px 30px;"><pre>
{{StatsCardWeaponTabs
{{StatsCardWeaponTabs
| name2      = Mom's Knife
            |name1                = Arming Sword
| class2    = Precise, Demonic
            |classes1              = [[Fighter]], [[Ranger]]
| image2    = Mod-Isaac-moms_knife_icon.png
            |damage1              = 30
| damage2   = 30 (60%{{StatIcon|Melee Damage}})
            |damage2               = 123
| damage3    = 45 (60%{{StatIcon|Melee Damage}})
            |damage3              = 12333
| damage4    = 55 (60%{{StatIcon|Melee Damage}})
            |damage4              = 123233
| critical2  = x1.5 (30% chance)
            |damage5              = 1232333
| cooldown2  = 1.86s
            |damage6              = 123123123
| cooldown3  = 1.78s
            |damage7              = 1231231231
| cooldown4 = 1.69s
            |damage8              = 123123123123
| knockback2 = 2
            |movementspeed1        = -20
| range2    = 350 (Melee)
            |combo1                = Slash/Slash/Thrust
| addTierNumbers = 1
            |combodamage1          = 100%/100%/100%
| firstShownTier = 2
            |attackspeed1          = 0.6s/0.56s/0.75s
| tier1disabled = 1
            |sweetsour1            = 100%/90%/70%
| info = Also deals damage when returning.
            |actionmovementspeed1 = Attack: -25%
| unlock = Complete a run with Isaac
            | firstShownTier = 1
| info_br = 1
| tier1disabled  = 0
| unlock_br = 1
| tier2disabled  = 0
| tier3disabled  = 0
| tier4disabled = 0
            | tier5disabled  = 0
| tier6disabled  = 0
| tier7disabled  = 0
| tier8disabled  = 0
}}</pre></td>
}}</pre></td>
<td style="padding: 20px 30px;">
<td style="padding: 20px 30px;">
Line 245: Line 226:
             |classes1              = [[Fighter]], [[Ranger]]
             |classes1              = [[Fighter]], [[Ranger]]
             |damage1              = 30
             |damage1              = 30
             |damage2              = 33
             |damage2              = 123
            |damage3              = 12333
            |damage4              = 123233
            |damage5              = 1232333
            |damage6              = 123123123
            |damage7              = 1231231231
            |damage8              = 123123123123
             |movementspeed1        = -20
             |movementspeed1        = -20
             |combo1                = Slash/Slash/Thrust
             |combo1                = Slash/Slash/Thrust
Line 252: Line 239:
             |sweetsour1            = 100%/90%/70%
             |sweetsour1            = 100%/90%/70%
             |actionmovementspeed1  = Attack: -25%
             |actionmovementspeed1  = Attack: -25%
            | firstShownTier = 1
| tier1disabled  = 0
| tier2disabled  = 0
| tier3disabled  = 0
| tier4disabled  = 0
            | tier5disabled  = 0
| tier6disabled  = 0
| tier7disabled  = 0
| tier8disabled  = 0
}}
}}
</td>
</td>
</tr>
</tr>
</table>
</table>
 
</noinclude>
== 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>
 
{{ToggleEnd}}
 
<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?",
"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",
"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
},
"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": [
"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",
"addTierNumbers",
"tier1disabled",
"tier2disabled",
"tier3disabled",
"tier4disabled",
"info",
"unlock",
"info_br",
"unlock_br"
]
}
</templatedata></noinclude>

Revision as of 06:48, 3 February 2023


Example

Code Preview
{{Infobox Weapon
| name                    = Arming Sword
| classes                 = [[Fighter]], [[Ranger]]
| damage                  = {{{damage1|}}}
| image                   = {{{image1|}}}
| movementspeed           = {{{movementspeed1|}}}
| combo                   = {{{combo1|}}}
| combodamage             = {{{combodamage1|}}}
| attackspeed             = {{{attackspeed1|}}}
| sweetsour               = {{{sweetsour1|}}}
| actionmovementspeed     = {{{actionmovementspeed1|}}}
}}
Arming Sword 2.png
Arming Sword
Classes


{{StatsCardWeaponTabs
            |name1                 = Arming Sword
            |classes1              = [[Fighter]], [[Ranger]]
            |damage1               = 30
            |damage2               = 123
            |damage3               = 12333
            |damage4               = 123233
            |damage5               = 1232333
            |damage6               = 123123123
            |damage7               = 1231231231
            |damage8               = 123123123123
            |movementspeed1        = -20
            |combo1                = Slash/Slash/Thrust
            |combodamage1          = 100%/100%/100%
            |attackspeed1          = 0.6s/0.56s/0.75s
            |sweetsour1            = 100%/90%/70%
            |actionmovementspeed1  = Attack: -25%
            | firstShownTier = 1
			| tier1disabled  = 0
			| tier2disabled  = 0
			| tier3disabled  = 0
			| tier4disabled  = 0
            | tier5disabled  = 0
			| tier6disabled  = 0
			| tier7disabled  = 0
			| tier8disabled  = 0
}}

Template:StatsCardWeaponTabs