Tooltips Guide
Table of Contents
Getting Started
You can use the tooltip script to easily display descriptions of items or talents from the game, such as this:
Gatling Gun Talent (hover it with your mouse!)
The script fetches data from
Project Amber
.
If you encounter any issues or bugs, feel free to reach out to us on
Discord
.
To install the tooltip script, link the style and script files in the <head>
section of your page. You only need to include one of game modules alongside main script for it to work. You can omit the fonts file
if you want to use your own fonts.
<link rel="stylesheet" href=" https://enka.network/js/tooltip/v2/styles/style.css " />
<script src=" https://enka.network/js/tooltip/v2/script.js " defer></script>
<script src=" https://enka.network/js/tooltip/v2/modules/gi.js " defer></script>
<script src=" https://enka.network/js/tooltip/v2/modules/hsr.js " defer></script>
<script src=" https://enka.network/js/tooltip/v2/modules/zzz.js " defer></script>
<script src=" https://enka.network/js/tooltip/v2/modules/ef.js " defer></script>
Basic Usage
For basic usage, you need to set two main attributes, data-[prefix]-type
and
data-[prefix]-id
, on any HTML element you want to attach a tooltip to.
By default, the language used will be English.
For example, look at this
Skyward Harp
.
Or this Flower .
Replace [prefix]
part with the corresponding game prefix:
- •
gi– Genshin Impact - •
hsr– Honkai: Star Rail - •
zzz– Zenless Zone Zero - •
ef– Arknights: Endfield
Advanced Usage
◇ data-[prefix]-no-icon
This will disable the icon, for example if you're already using an icon on your page.
◇ data-[prefix]-lang
If you want to set specific language, you can use data-[prefix]-lang
attribute. See
Supported Languages
◇ data-[prefix]-level
For weapons and talents, you can set their level, like this weapon at level 59. As you can see, it displays the stats according to the specified level.
◇ data-[prefix]-index
This attribute sets refinement level.
This
Harbinger of Dawn
is at refinement level 5.
The data-[prefix]-index
attribute is type-dependant.
For character talent
or
constellation
you need to set the character ID using the
data-[prefix]-id
attribute.
- • When used with
talentthedata-[prefix]-indexdefines the specific talent you want to display. - • For
constellation, it specifies the constellation number, starting at 1.
Note:
For
Arknights: Endfield
(
ef
), For the
constellation
type, appending a
+
to the index (e.g.
data-ef-index="3+"
) displays every Potential unlocked up to and including that tier, instead of only that single entry.
For further info, please refer to Supported Types
◇ data-[prefix]-promote
Sets the promotion (breakthrough) tier used to calculate a weapon's stats. If omitted, it is inferred automatically from the
specified
data-[prefix]-level
.
◇ data-[prefix]-args
A comma-separated list of extra parameters, whose meaning depends on the type it's used with:
- • For
weapon, each value sets the additional level of that weapon's passive skills in order, where-1means the skill is shown at its max level. For exampledata-ef-args="-1,-1,0"shows the first two passives maxed out. - • For
talent, the value selects which variant of the skill's description to display, for skills that change depending on a state or condition.
Currently relevant for: EF
◇ data-[prefix]-upgrade
To retrieve information about a character's upgraded version, set the data-[prefix]-upgrade
to value
1
or use corresponding upgrade
id
Currently relevant for: HSR, ZZZ, EF (
medal
type only, shows the plated/upgraded version)
Supported Types
For detailed information about the attributes corresponding to each type, please refer to the table below.
| ◇ data-[prefix]-type | ◇ data-[prefix]-id | ◇ data-[prefix]-level | ◇ data-[prefix]-index |
|---|---|---|---|
| weapon | Weapon ID | Weapon Level | Refinement Level |
| artifact | Artifact Set ID | *Slot Index | |
| talent | Character ID | Talent Level | *Talent Index |
| constellation | Character ID | Constellation Index | |
| medal | Medal ID | Medal Level |
Note: the medal
type is currently only available for
Arknights: Endfield
Slot Index
| ◇ Index | ◇ Genshin Impact | ◇ Honkai: Star Rail |
|---|---|---|
| 0 | Flower of Life | Head / Planar Sphere |
| 1 | Plume of Death | Hands / Link Rope |
| 2 | Sands of Eon | Body |
| 3 | Goblet of Eonothem | Feet |
| 4 | Circlet of Logos |
Talent Index
| ◇ Index | ◇ Genshin Impact | ◇ Honkai: Star Rail | ◇ Zenless Zone Zero | ◇ Arknights: Endfield |
|---|---|---|---|---|
| 0 | Normal Attack | Basic ATK | Basic Attack | Basic Attack |
| 1 | Elemental Skill | Skill | Dodge | Battle Skill |
| 2 | Elemental Burst | Ultimate | Assist | Combo Skill |
| 3 | Alternate Sprint | Talent | Special Attack | Ultimate |
| 4 | Passive Talent - A1 | Technique | Chain Attack / Ultimate | Talent - 1 |
| 5 | Passive Talent - A4 | Trace - A2 | Core Skill | Talent - 2 |
| 6 | Passive Talent - Overworld 1 | Trace - A4 | Base Talent - 1 | |
| 7 | Passive Talent - Overworld 2 | Trace - A6 | Base Talent - 2 | |
| 8 | Memosprite Skill | |||
| 9 | Memosprite Talent |
You can use data-[prefix]-id-b
instead if you want to access talent data using the actual ID or index from the API
Languages
| ◇ Value | ◇ Description | ◇ GI | ◇ HSR | ◇ ZZZ | ◇ EF |
|---|---|---|---|---|---|
| EN | English | ||||
| DE | German | ||||
| FR | French | ||||
| ID | Indonesian | ||||
| IT | Italian | ||||
| JP | Japanese | ||||
| PT | Portuguese | ||||
| RU | Russian | ||||
| TH | Thai | ||||
| TR | Turkish | ||||
| VI | Vietnamese | ||||
| KR | Korean | ||||
| CHS | Chinese Simplified | ||||
| CHT | Chinese Traditional |
More Examples
Weapons
Artifacts
Talents
Constellations