From Dark and Darker Wiki

(Added tabs: Normal, Normal Locked, High Roller, High Roller Locked.)
(Changed "Lockpick.png" -> "LockpickWithBorder.png")
Line 45: Line 45:
-->{{#if:{{{contentNormal|}}}<!--
-->{{#if:{{{contentNormal|}}}<!--
-->|<div data-cardtabs-btn="Normal Locked" class="cardtabs__button rarity2  {{#ifeq:{{{firstShownTier|}}}|Normal Locked|cardtabs__button--active|}}" style="font-size:20px"><!--
-->|<div data-cardtabs-btn="Normal Locked" class="cardtabs__button rarity2  {{#ifeq:{{{firstShownTier|}}}|Normal Locked|cardtabs__button--active|}}" style="font-size:20px"><!--
-->&nbsp;N[[File:Lockpick.png|x27px|bottom|link=]]&nbsp;</div>}}<!--&#128274;
-->&nbsp;N[[File:LockpickWithBorder.png|x27px|bottom|link=]]&nbsp;</div>}}<!--&#128274;
-->{{#if:{{{contentHighRoller|}}}<!--
-->{{#if:{{{contentHighRoller|}}}<!--
-->|<div data-cardtabs-btn="High Roller" class="cardtabs__button rarityElite {{#ifeq:{{{firstShownTier|}}}|High Roller|cardtabs__button--active|}}" style="font-size:20px"><!--
-->|<div data-cardtabs-btn="High Roller" class="cardtabs__button rarityElite {{#ifeq:{{{firstShownTier|}}}|High Roller|cardtabs__button--active|}}" style="font-size:20px"><!--
Line 51: Line 51:
-->{{#if:{{{contentHighRollerLocked|}}}<!--
-->{{#if:{{{contentHighRollerLocked|}}}<!--
-->|<div data-cardtabs-btn="High Roller Locked" class="cardtabs__button rarityElite {{#ifeq:{{{firstShownTier|}}}|High Roller Locked|cardtabs__button--active|}}" style="font-size:20px"><!--
-->|<div data-cardtabs-btn="High Roller Locked" class="cardtabs__button rarityElite {{#ifeq:{{{firstShownTier|}}}|High Roller Locked|cardtabs__button--active|}}" style="font-size:20px"><!--
-->&nbsp;HR[[File:Lockpick.png|x27px|bottom|link=]]&nbsp;</div>}}</div><!--
-->&nbsp;HR[[File:LockpickWithBorder.png|x27px|bottom|link=]]&nbsp;</div>}}</div><!--
--><div class="mytabs__panels" data-cardtabs-panels><!--
--><div class="mytabs__panels" data-cardtabs-panels><!--
-->{{#if:{{{content1|}}}<!--
-->{{#if:{{{content1|}}}<!--

Revision as of 19:57, 5 June 2024

Creates a set of tabs for items. Use it with infoboxes

Notes

The firstShownTier option is mandatory. Leaving it out will prevent anything from being shown.

  • Make sure to add nomargin for infoboxes

Example

Code Preview
{{Tabs
|firstShownTier=1
|content1 = 
	{{Infobox
	|name                 = Fine Cuirass
	|classes              = [[Fighter]]
	|rarity               = 0
	|stat1                = Armor Rating 60
	|stat2                = Move Speed -35
	|stat3                = Projectile Reduction 12%
	|stat4                = Magic Resistance -10
	|slottype             = Chest
	|armortype            = Metal
	|description          = This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy.
	|nomargin             = 1
	}}
|content2 = 
	{{Infobox
	|name                 = Fine Cuirass
	|classes              = [[Fighter]]
	|rarity               = 1
	|stat1                = Armor Rating 61~64
	|stat2                = Move Speed -35
	|stat3                = Projectile Reduction 12%
	|stat4                = Magic Resistance -10
	|slottype             = Chest
	|armortype            = Metal
	|description          = This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy.
	|nomargin             = 1
	}}
|content3 = 
	{{Infobox
	|name                 = Fine Cuirass
	|classes              = [[Fighter]]
	|rarity               = 2
	|stat1                = Armor Rating 65~76
	|stat2                = Move Speed -35
	|stat3                = Projectile Reduction 12%
	|stat4                = Magic Resistance -10
	|slottype             = Chest
	|armortype            = Metal
	|description          = This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy.
	|nomargin             = 1
	}}
|content4 = 
	{{Infobox
	|name                 = Fine Cuirass
	|classes              = [[Fighter]]
	|rarity               = 3
	|stat1                = Armor Rating 77~88
	|stat2                = Move Speed -35
	|stat3                = Projectile Reduction 12%
	|stat4                = Magic Resistance -10
	|enchantments         = 1
	|slottype             = Chest
	|armortype            = Metal
	|description          = This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy.
	|nomargin             = 1
	}}
|content5 = 
	{{Infobox
	|name                 = Fine Cuirass
	|classes              = [[Fighter]]
	|rarity               = 4
	|stat1                = Armor Rating 89~97
	|stat2                = Move Speed -35
	|stat3                = Projectile Reduction 12%
	|stat4                = Magic Resistance -10
	|enchantments         = 2
	|slottype             = Chest
	|armortype            = Metal
	|description          = This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy.
	|nomargin             = 1
	}}
|content6 = 
	{{Infobox
	|name                 = Fine Cuirass
	|classes              = [[Fighter]]
	|rarity               = 5
	|stat1                = Armor Rating 97~105
	|stat2                = Move Speed -35
	|stat3                = Projectile Reduction 12%
	|stat4                = Magic Resistance -10
	|enchantments         = 3
	|slottype             = Chest
	|armortype            = Metal
	|description          = This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy.
	|nomargin             = 1
	}}
|content7 = 
	{{Infobox
	|name                 = Fine Cuirass
	|classes              = [[Fighter]]
	|rarity               = 6
	|stat1                = Armor Rating 105~110
	|stat2                = Move Speed -35
	|stat3                = Projectile Reduction 12%
	|stat4                = Magic Resistance -10
	|enchantments         = 4
	|slottype             = Chest
	|armortype            = Metal
	|description          = This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy.
	|nomargin             = 1
	}}
|content8 = 
	{{Infobox
	|name                 = Fine Cuirass
	|classes              = [[Fighter]]
	|rarity               = 7
	|stat1                = Armor Rating 110~115
	|stat2                = Move Speed -35
	|stat3                = Projectile Reduction 12%
	|stat4                = Magic Resistance -10
	|enchantments         = 5
	|slottype             = Chest
	|armortype            = Metal
	|description          = This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy.
	|nomargin             = 1
	}}
|contentRS = 
	{{Infobox
	|name                 = Fine Cuirass
	|image                = Rubysilver Fine Cuirass
	|classes              = [[Fighter]], [[Cleric]]
	|rarity               = 5
	|stat1                = Armor Rating 97~105
	|stat2                = Move Speed -35
	|stat3                = Projectile Reduction 12%
	|stat4                = Magic Resistance -10
	|enchantments         = 3
	|slottype             = Chest
	|armortype            = Metal
	|description          = A high-quality cuirass made with a large amount of Rubysilver ingots. It has considerable durability.
	|nomargin             = 1
	}}
}} 
As you can see there is no Cobalt Tab
 I 
 II 
 III 
 IV 
 V 
 VI 
 VII 
 VIII 
Fine Cuirass
Fine Cuirass.png
Required Class:
Weapon Type:
Metal
Slot Type:
Chest
This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy.
Fine Cuirass
Fine Cuirass.png
Required Class:
Weapon Type:
Metal
Slot Type:
Chest
This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy.
Fine Cuirass
Fine Cuirass.png
Required Class:
Weapon Type:
Metal
Slot Type:
Chest
This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy.
Fine Cuirass
Fine Cuirass.png
Required Class:
Weapon Type:
Metal
Slot Type:
Chest
This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy.
Fine Cuirass
Fine Cuirass.png
Required Class:
Weapon Type:
Metal
Slot Type:
Chest
This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy.
Fine Cuirass
Fine Cuirass.png
Required Class:
Weapon Type:
Metal
Slot Type:
Chest
This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy.
Fine Cuirass
Fine Cuirass.png
Required Class:
Weapon Type:
Metal
Slot Type:
Chest
This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy.
Fine Cuirass
Fine Cuirass.png
Required Class:
Weapon Type:
Metal
Slot Type:
Chest
This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy.
{{Tabs
|firstShownTier=Common
|contentCommon = 
{{Infobox
	|name                 = Lich
	|rarity               = 2
	|image                = Lich
	|stat1                = Health 2100
	|stat2                = Move Speed 200
	|enemytype             = [[Undead]]
	|location            = [[Inferno]]
	|experience          = 50
	|nomargin             = 1
	}}
|contentElite = 
{{Infobox
	|name                 = Lich
	|rarity               = 6
	|image                = Lich
	|stat1                = Health 3000
	|stat2                = Move Speed 250
	|enemytype             = [[Undead]]
	|location            = [[Inferno]]
	|experience          = 125
	|nomargin             = 1
	}}
|contentNightmare = 
{{Infobox
	|name                 = Lich
	|rarity               = Nightmare
	|image                = Lich
	|stat1                = Health ???
	|stat2                = Move Speed ???
	|enemytype             = [[Undead]]
	|location            = [[Inferno]]
	|experience          = ???
	|nomargin             = 1
	}}
}} 
As you can see there is no Cobalt Tab
 Common 
 Elite 
 Nightmare 
Lich
Lich.png
Location:
Experience Points
50
Adventure Points
Lich
Lich.png
Location:
Experience Points
125
Adventure Points
Lich
Lich.png
Location:
Experience Points
???
Adventure Points
{{Tabs
	|firstShownTier=Normal
	|contentNormal = 
	{{Infobox
		|name                 = Marvelous Chest
		|description = TODO_FLAVORTEXT
		|openduration = 3
		|experience     = 5
		|highendpropinteraction= 6
		}}
	|contentNormalLocked = 
	{{Infobox
		|name                 = Marvelous Chest
		|description = TODO_FLAVORTEXT
		|picklockduration = 5
		|experience     = 7
		|highendpropinteraction= 7
		}}
	|contentHighRoller = 
	{{Infobox
		|name                 = Marvelous Chest
		|description = TODO_FLAVORTEXT
		|openduration = 3
		|experience     = 6
		|highendpropinteraction= 10
		}}
	|contentHighRollerLocked = 
	{{Infobox
		|name                 = Marvelous Chest
		|description = TODO_FLAVORTEXT
		|picklockduration = 5
		|experience     = 10
		|highendpropinteraction= 12
		}}
}}
 N 
 NLockpickWithBorder.png 
 HR 
 HRLockpickWithBorder.png 
Marvelous Chest
Marvelous Chest.png
Opening:
3 s
Experience Points
5
Adventure Points
High-End Props Interaction:
6
TODO_FLAVORTEXT
Marvelous Chest
Marvelous Chest.png
Picking Lock:
5 s
Experience Points
7
Adventure Points
High-End Props Interaction:
7
TODO_FLAVORTEXT
Marvelous Chest
Marvelous Chest.png
Opening:
3 s
Experience Points
6
Adventure Points
High-End Props Interaction:
10
TODO_FLAVORTEXT
Marvelous Chest
Marvelous Chest.png
Picking Lock:
5 s
Experience Points
10
Adventure Points
High-End Props Interaction:
12
TODO_FLAVORTEXT

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).

{{Tabs
|firstShownTier   =1
|content1         = 
|content2         = 
|content3         = 
|content4         = 
|content5         = 
|content6         = 
|content7         = 
|content8         = 
|contentCommon    = 
|contentElite     = 
|contentNightmare = 
}}