From Dark and Darker Wiki

(Update to infobox item)
(font size change)
Line 36: Line 36:
         {{#if:{{{special|}}}|
         {{#if:{{{special|}}}|
         <div class="line" style="background-image:linear-gradient(to right,rgb(10,10,10),rgb(100,100,100),rgb(10,10,10))"></div> <!-- Line -->
         <div class="line" style="background-image:linear-gradient(to right,rgb(10,10,10),rgb(100,100,100),rgb(10,10,10))"></div> <!-- Line -->
<div style="display:flex; flex-direction:column; align-items:center; font-size:19px;">  
<div style="display:flex; flex-direction:column; align-items:center; font-size:18px;">  
{{{special}}}
{{{special}}}
</div>
</div>

Revision as of 00:17, 16 February 2023


Creates an infobox for an Item.

Example

Code Preview

{{Infobox Item
|name                 = Healing Potion
|rarity               = 4
|stat1                = Move Speed -20
|stat2                = 1 Agility
|special              = 15 HP healed over 20 seconds
|slottype             = Utility
|utilitytype          = Drink
|actiontime           = 6 seconds
|description          = Potion used to recover a bit of health
}}
Healing Potion.png
Healing Potion
-
Move Speed -20
-
-
1 Agility
-

15 HP healed over 20 seconds

Slot Type:
Utility
Utility Type:
Drink
Action Time:
6 seconds

Potion used to recover a bit of health



{{Infobox Item
|name                 = Healing Potion
|rarity               = 1
|stat1                = Move Speed -20
|stat2                = 1 Agility
|special              = 15 HP healed over 20 seconds
|slottype             = Utility
|utilitytype          = Drink
|actiontime           = 6 seconds
|description          = Potion used to recover a bit of health
}}
Healing Potion.png
Healing Potion
-
Move Speed -20
-
-
1 Agility
-

15 HP healed over 20 seconds

Slot Type:
Utility
Utility Type:
Drink
Action Time:
6 seconds

Potion used to recover a bit of health


All Options

The full list of options are listed below.

{{Infobox Item
|name                 = Healing Potion
|rarity               = 1
|stat1                = Move Speed -20
|stat2                = 1 Agility
|stat3                = 1 Will
|stat4                = 1 Knowledge
|stat5                = 1 Strength
|special              = 15 HP healed over 20 seconds
|slottype             = Utility
|utilitytype          = Drink
|description          = Potion used to recover a bit of health
|actiontime           = 6 seconds
|nofloat              = 1
}}

No description.

Template parameters

ParameterDescriptionTypeStatus
Namename

The name of the item

Example
Bandage
Stringrequired
Namerarity

Rarity of the item

Example
1
Stringrequired
Stat 1stat1

First stat of the item

Stringrequired
Stat 2stat2

Second stat of the item if there is any

Stringoptional
Stat 3stat3

Third stat of the item if there is any

Stringoptional
Stat 4stat4

Fourth stat of the item if there is any

Stringoptional
Stat 5stat5

Fifth stat of the item if there is any

Stringoptional
Specialspecial

Special power of the item if there is any

Stringsuggested
slottypeslottype

Slot type of item

Stringrequired
utilitytypeutilitytype

Utility type of item

Stringrequired
actiontimeactiontime

Action Time of item if there is any

Stringsuggested
descriptiondescription

Description of item if there is any

Stringsuggested
nofloatnofloat

Whether the infobox float right or not

Example
1
Stringoptional