From Dark and Darker Wiki

(Created Infobox Armor Rarity Tabs template)
 
(removed color rarity)
Line 107: Line 107:
-->
-->
<div class="cardtabs__buttons" data-cardtabs-btns>
<div class="cardtabs__buttons" data-cardtabs-btns>
<div data-cardtabs-btn="{{#ifeq:{{{tier1disabled|}}}|1|-1|1}}" class="cardtabs__button colorrarity0 rarity0 {{#ifeq:{{{firstShownTier|}}}|1|cardtabs__button--active|}} {{#ifeq:{{{tier1disabled|}}}|1|cardtabs__button--disabled|}} <!--
<div data-cardtabs-btn="{{#ifeq:{{{tier1disabled|}}}|1|-1|1}}" class="cardtabs__button rarity0 {{#ifeq:{{{firstShownTier|}}}|1|cardtabs__button--active|}} {{#ifeq:{{{tier1disabled|}}}|1|cardtabs__button--disabled|}} <!--
-->">&nbsp;I&nbsp;</div>
-->">&nbsp;I&nbsp;</div>
<div data-cardtabs-btn="{{#ifeq:{{{tier2disabled|}}}|1|-1|2}}" class="cardtabs__button colorrarity1 rarity1 {{#ifeq:{{{firstShownTier|}}}|2|cardtabs__button--active|}} {{#ifeq:{{{tier2disabled|}}}|1|cardtabs__button--disabled|}} <!--
<div data-cardtabs-btn="{{#ifeq:{{{tier2disabled|}}}|1|-1|2}}" class="cardtabs__button rarity1 {{#ifeq:{{{firstShownTier|}}}|2|cardtabs__button--active|}} {{#ifeq:{{{tier2disabled|}}}|1|cardtabs__button--disabled|}} <!--
-->">&nbsp;II&nbsp;</div>
-->">&nbsp;II&nbsp;</div>
<div data-cardtabs-btn="{{#ifeq:{{{tier3disabled|}}}|1|-1|3}}" class="cardtabs__button colorrarity2 rarity2 {{#ifeq:{{{firstShownTier|}}}|3|cardtabs__button--active|}} {{#ifeq:{{{tier3disabled|}}}|1|cardtabs__button--disabled|}} <!--
<div data-cardtabs-btn="{{#ifeq:{{{tier3disabled|}}}|1|-1|3}}" class="cardtabs__button rarity2 {{#ifeq:{{{firstShownTier|}}}|3|cardtabs__button--active|}} {{#ifeq:{{{tier3disabled|}}}|1|cardtabs__button--disabled|}} <!--
-->">&nbsp;III&nbsp;</div>
-->">&nbsp;III&nbsp;</div>
<div data-cardtabs-btn="{{#ifeq:{{{tier4disabled|}}}|1|-1|4}}" class="cardtabs__button colorrarity3 rarity3 {{#ifeq:{{{firstShownTier|}}}|4|cardtabs__button--active|}} {{#ifeq:{{{tier4disabled|}}}|1|cardtabs__button--disabled|}} <!--
<div data-cardtabs-btn="{{#ifeq:{{{tier4disabled|}}}|1|-1|4}}" class="cardtabs__button rarity3 {{#ifeq:{{{firstShownTier|}}}|4|cardtabs__button--active|}} {{#ifeq:{{{tier4disabled|}}}|1|cardtabs__button--disabled|}} <!--
-->">&nbsp;IV&nbsp;</div>
-->">&nbsp;IV&nbsp;</div>
<div data-cardtabs-btn="{{#ifeq:{{{tier5disabled|}}}|1|-1|5}}" class="cardtabs__button colorrarity4 rarity4 {{#ifeq:{{{firstShownTier|}}}|5|cardtabs__button--active|}} {{#ifeq:{{{tier5disabled|}}}|1|cardtabs__button--disabled|}} <!--
<div data-cardtabs-btn="{{#ifeq:{{{tier5disabled|}}}|1|-1|5}}" class="cardtabs__button rarity4 {{#ifeq:{{{firstShownTier|}}}|5|cardtabs__button--active|}} {{#ifeq:{{{tier5disabled|}}}|1|cardtabs__button--disabled|}} <!--
-->">&nbsp;V&nbsp;</div>
-->">&nbsp;V&nbsp;</div>
<div data-cardtabs-btn="{{#ifeq:{{{tier6disabled|}}}|1|-1|6}}" class="cardtabs__button colorrarity5 rarity5 {{#ifeq:{{{firstShownTier|}}}|6|cardtabs__button--active|}} {{#ifeq:{{{tier6disabled|}}}|1|cardtabs__button--disabled|}} <!--
<div data-cardtabs-btn="{{#ifeq:{{{tier6disabled|}}}|1|-1|6}}" class="cardtabs__button rarity5 {{#ifeq:{{{firstShownTier|}}}|6|cardtabs__button--active|}} {{#ifeq:{{{tier6disabled|}}}|1|cardtabs__button--disabled|}} <!--
-->">&nbsp;VI&nbsp;</div>
-->">&nbsp;VI&nbsp;</div>
<div data-cardtabs-btn="{{#ifeq:{{{tier7disabled|}}}|1|-1|7}}" class="cardtabs__button colorrarity6 rarity6 {{#ifeq:{{{firstShownTier|}}}|7|cardtabs__button--active|}} {{#ifeq:{{{tier7disabled|}}}|1|cardtabs__button--disabled|}} <!--
<div data-cardtabs-btn="{{#ifeq:{{{tier7disabled|}}}|1|-1|7}}" class="cardtabs__button rarity6 {{#ifeq:{{{firstShownTier|}}}|7|cardtabs__button--active|}} {{#ifeq:{{{tier7disabled|}}}|1|cardtabs__button--disabled|}} <!--
-->">&nbsp;VII&nbsp;</div>
-->">&nbsp;VII&nbsp;</div>
<div data-cardtabs-btn="{{#ifeq:{{{tier8disabled|}}}|1|-1|8}}" class="cardtabs__button colorrarity7 rarity7 {{#ifeq:{{{firstShownTier|}}}|8|cardtabs__button--active|}} {{#ifeq:{{{tier8disabled|}}}|1|cardtabs__button--disabled|}} <!--
<div data-cardtabs-btn="{{#ifeq:{{{tier8disabled|}}}|1|-1|8}}" class="cardtabs__button rarity7 {{#ifeq:{{{firstShownTier|}}}|8|cardtabs__button--active|}} {{#ifeq:{{{tier8disabled|}}}|1|cardtabs__button--disabled|}} <!--
-->">&nbsp;VIII&nbsp;</div>
-->">&nbsp;VIII&nbsp;</div>
             </div>
             </div>

Revision as of 06:49, 4 February 2023


Creates a set of tabs for a armor.

Notes

If you don't include a armor 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 damage1).

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

Example

Code Preview

{{InfoboxArmorTabs
|name                  = Armet
|classes               = [[Fighter]]
|armor1                = 24
|armor2                = 25 ~ 27
|armor3                = 28 ~ 31
|armor4                = 32 ~ 34
|armor5                = 34 ~ 36
|armor6                = 36 ~ 38
|armor7                = 38 ~ 40
|armor8                = 40 ~ 43
|movementspeed         = -12
|stats                 = 14.0% Headshot Reduction
|stats2                = -5 Magic Resistance
| firstShownTier = 1
| tier1disabled  = 0
| tier2disabled  = 0
| tier3disabled  = 0
| tier4disabled  = 0
| tier5disabled  = 0
| tier6disabled  = 0
| tier7disabled  = 0
| tier8disabled  = 0
}}
Armet.png
Armet
Classes
Armor
24
Movement Speed
-12
Stats
14.0% Headshot Reduction
-5 Magic Resistance


Armet.png
Armet
Classes
Armor
25 ~ 27
Movement Speed
-12
Stats
14.0% Headshot Reduction
-5 Magic Resistance


Armet.png
Armet
Classes
Armor
28 ~ 31
Movement Speed
-12
Stats
14.0% Headshot Reduction
-5 Magic Resistance


Armet.png
Armet
Classes
Armor
32 ~ 34
Movement Speed
-12
Stats
14.0% Headshot Reduction
-5 Magic Resistance


Armet.png
Armet
Classes
Armor
34 ~ 36
Movement Speed
-12
Stats
14.0% Headshot Reduction
-5 Magic Resistance


Armet.png
Armet
Classes
Armor
36 ~ 38
Movement Speed
-12
Stats
14.0% Headshot Reduction
-5 Magic Resistance


Armet.png
Armet
Classes
Armor
38 ~ 40
Movement Speed
-12
Stats
14.0% Headshot Reduction
-5 Magic Resistance


Armet.png
Armet
Classes
Armor
40 ~ 43
Movement Speed
-12
Stats
14.0% Headshot Reduction
-5 Magic Resistance


 I 
 II 
 III 
 IV 
 V 
 VI 
 VII 
 VIII 


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


{{InfoboxArmorTabs
|name                  = 
|classes               = 
|armor1                = 
|armor2                = 
|armor3                = 
|armor4                = 
|armor5                =
|armor6                =
|armor7                = 
|armor8                =
|movementspeed         = 
|stats                 = 
|stats2                =
| firstShownTier = 
| tier1disabled  = 
| tier2disabled  = 
| tier3disabled  = 
| tier4disabled  = 
| tier5disabled  = 
| tier6disabled  = 
| tier7disabled  = 
| tier8disabled  = 
}}

No description.

Template parameters

ParameterDescriptionTypeStatus
Namename

The name of the weapon

Example
Arming Sword
Stringrequired
Classesclasses

One or more classes can be added

Stringsuggested
Armor - Tier 1armor1

Armor of the item at corresponding rarity

Stringrequired
Armor - Tier 2armor2

Armor of the item at corresponding rarity

Stringsuggested
Armor - Tier 3armor3

Armor of the item at corresponding rarity

Stringsuggested
Armor - Tier 4armor4

Armor of the item at corresponding rarity

Stringsuggested
Armor - Tier 5armor5

Armor of the item at corresponding rarity

Stringsuggested
Armor - Tier 6armor6

Armor of the item at corresponding rarity

Stringsuggested
Armor - Tier 7armor7

Armor of the item at corresponding rarity

Stringsuggested
Armor - Tier 8armor8

Armor of the item at corresponding rarity

Stringsuggested
Movement speedmovementspeed

Movement speed of the item

Stringsuggested
Statsstats

Stats of the item

Stringsuggested
Stats2stats2

Stats of the item

Stringsuggested
First Shown TierfirstShownTier

Either 1, 2, 3, or 4. Should always be 1, unless a lower tier is disabled

Example
1
Auto value
1
Numberrequired
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)

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

Booleansuggested
Disable Tier 3?tier3disabled

If enabled, Tier 3 won't be clickable. Make sure you also change the First Shown Tier to 4

Booleansuggested
Disable Tier 4?tier4disabled

If enabled, Tier 4 won't be clickable. Make sure you also change the First Shown Tier to 5

Booleansuggested
Disable Tier 5?tier5disabled

If enabled, Tier 5 won't be clickable. Make sure you also change the First Shown Tier to 6

Booleansuggested
Disable Tier 6?tier6disabled

If enabled, Tier 6 won't be clickable. Make sure you also change the First Shown Tier to 7

Booleansuggested
Disable Tier 7?tier7disabled

If enabled, Tier 7 won't be clickable. Make sure you also change the First Shown Tier to 8

Booleansuggested
Disable Tier 8?tier8disabled

If enabled, Tier 8 won't be clickable. Make sure you also change the First Shown Tier

Booleansuggested