User:Dr ishmael/API traits-beta fact summary
The "type" of a skill/trait fact determines which display template is used for that fact in the tooltip.
{{#switch:{{{type|}}} | Percent = {icon|default} {text}: {percent}%
Default icon is . Most Percent facts have a defined "icon".
| AttributeAdjust = {icon|default} {text}: {value}
Default icon unknown. All AttributeAdjust facts have "icon" defined.
- Note: Healing facts, life siphon facts, and "add damage to non-damaging condition" facts (Terror, Deathly Chill) also fall under this type, reason unknown.
- Healing facts (including life siphon heals) should be identified by "target":"Healing", whereas "target":"HealingPower" is the attribute (currently not being parsed correctly).
- Life siphon damage facts currently show "target":"Power".
- Condition add-damage facts currently show "target":"ConditionDamage".
| Range = {icon|default} {text}: {value}
Default icon is . No Range facts have an "icon" defined.
| Damage = {icon|default} {text} (x{hit_count}): {???}
Default icon unknown. All Damage facts have "icon" defined as .
(x{hit_count}) is only shown if "hit_count" is present and greater than 1.
| Buff = {icon|default}{apply_count} {status} ({duration}s): {description} | PrefixedBuff = {prefix.icon}{icon|default} {status} ({duration}s): {description}
Default icon is . Only 1 Buff fact does not have "icon" defined (Health Insurance). All PrefixedBuff facts have an "icon" defined.
({duration}s) is only shown if "duration" is present and greater than 0.
Actually, it seems like both Buff and PrefixedBuff types aren't presented accurately in the API. When "status" is a boon or condition, it definitely calls a specialized template for that specific effect. But even for non-boon/condition buffs, like on Health Insurance, the {description} part of the fact does not match what's in the API.
| BuffConversion = {icon|default} Gain {target} Based on a Percentage of {source}: {percent}%
Default icon unknown. All BuffConversion facts have "icon" defined as .
| NoData = {icon|default} {text}
Default icon unknown. All NoData facts have "icon" defined.
| Recharge = [[File:Recharge.png]]{recharge}
Displayed at the top-right of the tooltip, not as a standard fact.
| Number = {icon|default} {text}: {value}
Default icon is . Most Number facts have "icon" defined as that anyway, but some use a different icon ("Adrenaline" facts use ).
| Radius = {icon|default} {text}: {distance}
Default icon unknown. Only 2 Radius facts in the traits-beta API (on a linked skill) and they both have "icon" defined as .
| Distance = {icon|default} {text}: {distance}
Default icon unknown. All Distance facts have "icon" defined.
| ComboField = [[File:Combo.png]] {text}: {field_type} | ComboFinisher = [[File:Combo.png]] {text}: {finisher_type} ({percent}% chance)
({percent}% chance) is only displayed if "percent" is present and not equal to 100.
| Time = {icon|default} {text}: {duration} seconds
Default icon unknown. All Time facts have "icon" defined.
| Unblockable = [[File:Miscellaneous effect.png]] Unblockable