From Dark and Darker Wiki
Tag: Undo |
(added new types and lich example) |
||
Line 28: | Line 28: | ||
{{#if:{{{contentCB|}}}|<div data-cardtabs-btn="CB" class="cardtabs__button rarity4 {{#ifeq:{{{firstShownTier|}}}|CB|cardtabs__button--active|}} <!-- | {{#if:{{{contentCB|}}}|<div data-cardtabs-btn="CB" class="cardtabs__button rarity4 {{#ifeq:{{{firstShownTier|}}}|CB|cardtabs__button--active|}} <!-- | ||
-->"> CB </div>}} | -->"> CB </div>}} | ||
{{#if:{{{contentNormal|}}}|<div data-cardtabs-btn="Normal" class="cardtabs__button rarity2 {{#ifeq:{{{firstShownTier|}}}|Normal|cardtabs__button--active|}} <!-- | |||
-->"> Normal </div>}} | |||
{{#if:{{{contentElite|}}}|<div data-cardtabs-btn="Elite" class="cardtabs__button rarity6 {{#ifeq:{{{firstShownTier|}}}|Elite|cardtabs__button--active|}} <!-- | |||
-->"> Elite </div>}} | |||
{{#if:{{{contentNightmare|}}}|<div data-cardtabs-btn="Nightmare" " class="cardtabs__button rarityNightmare {{#ifeq:{{{firstShownTier|}}}|Nightmare|cardtabs__button--active|}} <!-- | |||
-->"> Nightmare </div>}} | |||
</div><!-- | </div><!-- | ||
--><div class="mytabs__panels" data-cardtabs-panels><!-- | --><div class="mytabs__panels" data-cardtabs-panels><!-- | ||
Line 69: | Line 75: | ||
--><div data-cardtabs-panel="CB" style="overflow: auto;" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|CB||cardtabs__panel--js-hidden}}"><!-- | --><div data-cardtabs-panel="CB" style="overflow: auto;" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|CB||cardtabs__panel--js-hidden}}"><!-- | ||
-->{{{contentCB|}}}<!-- | -->{{{contentCB|}}}<!-- | ||
--></div>}}<!-- | |||
-->{{#if:{{{contentNormal|}}}|<!-- | |||
--><div data-cardtabs-panel="Normal" style="overflow: auto;" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|Normal||cardtabs__panel--js-hidden}}"><!-- | |||
-->{{{contentNormal|}}}<!-- | |||
--></div>}}<!-- | |||
-->{{#if:{{{contentElite|}}}|<!-- | |||
--><div data-cardtabs-panel="Elite" style="overflow: auto;" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|Elite||cardtabs__panel--js-hidden}}"><!-- | |||
-->{{{contentElite|}}}<!-- | |||
--></div>}}<!-- | |||
-->{{#if:{{{contentNightmare|}}}|<!-- | |||
--><div data-cardtabs-panel="Nightmare" style="overflow: auto;" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|Nightmare||cardtabs__panel--js-hidden}}"><!-- | |||
-->{{{contentNightmare|}}}<!-- | |||
--></div>}}<!-- | --></div>}}<!-- | ||
--></div> | --></div> | ||
Line 361: | Line 379: | ||
|armortype = Metal | |armortype = Metal | ||
|description = A high-quality cuirass made with a large amount of Rubysilver ingots. It has considerable durability. | |description = A high-quality cuirass made with a large amount of Rubysilver ingots. It has considerable durability. | ||
|nomargin = 1 | |||
}} | |||
}} | |||
</td> | |||
</tr> | |||
<tr> | |||
<td style="padding: 20px 30px;"> | |||
<pre> | |||
{{Tabs | |||
|firstShownTier=Normal | |||
|contentNormal = | |||
{{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 | |||
}} | |||
}} </pre>As you can see there is no Cobalt Tab</td> | |||
<td style="padding: 20px 30px;"> | |||
{{Tabs | |||
|firstShownTier=Normal | |||
|contentNormal = | |||
{{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 | |nomargin = 1 | ||
}} | }} |
Revision as of 18:46, 15 August 2023
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 |
Required Class: Armor Type: Metal Slot Type: Chest This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy. Required Class: Armor Type: Metal Slot Type: Chest This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy. Required Class: Armor Type: Metal Slot Type: Chest This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy. - Up to 1 extra enchantments - Required Class: Armor Type: Metal Slot Type: Chest This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy. - Up to 2 extra enchantments - Required Class: Armor Type: Metal Slot Type: Chest This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy. - Up to 3 extra enchantments - Required Class: Armor Type: Metal Slot Type: Chest This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy. - Up to 4 extra enchantments - Required Class: Armor Type: Metal Slot Type: Chest This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy. - Up to 5 extra enchantments - Required Class: Armor Type: Metal Slot Type: Chest This armor makes living in impossible situations suddenly possible. Plate armor, uncomfortable to wear and quite heavy. |
{{Tabs |firstShownTier=Normal |contentNormal = {{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 |
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 = |contentRS = |contentCB = }}
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
First Shown Tier | firstShownTier | Either 1, 2, 3,....7,8,RS,CB. Should always be 1, unless a lower tier is disabled. CB is for Cobalt, RS is for Rubysilver
| String | required |
Content 1 | content1 | Content of Junk rarity, usually an infobox
| String | suggested |
Content 2 | content2 | Content of Poor rarity, usually an infobox
| String | suggested |
Content 3 | content3 | Content of Common rarity, usually an infobox
| String | suggested |
Content 4 | content4 | Content of Uncommon rarity, usually an infobox
| String | suggested |
Content 5 | content5 | Content of Rare rarity, usually an infobox
| String | suggested |
Content 6 | content6 | Content of Epic rarity, usually an infobox
| String | suggested |
Content 7 | content7 | Content of Legendary rarity, usually an infobox
| String | suggested |
Content 8 | content8 | Content of Unique rarity, usually an infobox
| String | suggested |
ContentRS | contentRS | Content for Rubysilver rarity, usually an infobox
| String | suggested |
ContentCB | contentCB | Content for Cobalt rarity, usually an infobox
| String | suggested |