From Dark and Darker Wiki

Revision as of 05:25, 8 December 2023 by Tylo (talk | contribs) (Fixed iconsize field being set as size field.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Example tooltip for rare healing potions

Healing Potion3
Healing Potion
Healing Potion.png

-
Move Speed -20
-
-
1 Agility
-

15 HP healed over 20 seconds

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

Potion used to recover a bit of health


Creates an Iconbox with an Infobox Tooltip

Template parameters

ParameterDescriptionTypeStatus
Namename 1

Name of the character/item/weapon

Stringrequired
Rarityrarity

Options: -1, 1, 2, 3, 4, 5, 6, 7

Numbersuggested
Icon Sizeiconsize

Size with px to set width, eg. "30px" Size with xpx to set height, eg. "x30px"

Stringsuggested
Amountamount

Shows a number in the bottom right corner

Default
0
Numberoptional
Image Overrideimage

If not set, uses the image that matches the name

Stringoptional
Caption Overridecaption

If not set, uses the name. Always links to the name. Use "no" to hide the caption

Stringsuggested
Top Texttop

Shown above the caption

Stringoptional
Prevent Line Breaksnobr

If enabled, removes the line break, putting the icon and text on a single line. Use 1 to enable.

Booleanoptional
Max Widthmaxwidth

If set, constrains the box to the specified width. Accepts any valid CSS width (60px, 60%). If not set, uses max-width:initial.

Example
60px
Stringoptional
Statsstats

Stats of the item

Example
Weapon Damage 2,Move Speed -20,Agility 1,Knowledge 4,Will 2
Stringsuggested
Enchantmentsenchantments

enchantments of the item if there is any

Stringoptional
Specialspecial

Special power of the item if there is any

Stringoptional
Effecteffect

effect of the item if there is any

Unknownoptional
Classesclasses

Classes of item

Stringsuggested
Slot Typeslottype

Slot type of item

Stringsuggested
Armor Typearmortype

Armor type of item

Stringoptional
Hand Typehandtype

handtype of item

Stringoptional
Weapon Typeweapontype

weapontype of item

Stringoptional
Utility Typeutilitytype

Utility type of item

Stringoptional
Action Timeactiontime

Action Time of item if there is any

Stringoptional
Attack Speedattackspeed

attackspeed of item

Stringoptional
Reload Speedreloadspeed

reloadspeed of item

Stringoptional
Quiver Sizequiversize

quiversize of item

Stringoptional
Combocombo

combo of item

Stringoptional
Combo Damagecombodamage

combodamage of item

Stringoptional
Spot Damagespotdamage

spotdamage of item

Stringoptional
Hitboxhitbox

hitbox of item

Stringoptional
Action Movement Speedactionmovementspeed

actionmovementspeed of item

Stringoptional
Descriptiondescription

Description of item if there is any

Stringoptional
nofloatnofloat

Whether the infobox floats right or not

Example
1
Stringoptional
Infobox Image Sizesize

Size of the picture, default = 100x200px , 100x for width, 200px for height

Example
100x200px
Stringoptional
Tooltip Locationlocation

Tooltip location/which direction it emerges from the hover. Default: 0=bottom. 1=left, 2=right

Default
Bottom
Example
Bottom, Top, Left, Right or Center
Auto value
Bottom
Numbersuggested