Jump to content

User:FizzleMaster/Sandbox/Itembox

From EverQuest Legends Wiki

Description

Sandbox redesign of Template:Itembox, matching the in-game tooltip's layout, wording, and field placement rather than the wiki's previous single-column free-text blob. Within each stat column, labels left-justify and values right-justify, matching the in-game tooltip's visual alignment.

Important: always enter base (Tier 0) values. EQL's item upgrade system (see Item Upgrade System) lets players raise an item's tier with motes, which increases its stats via a slider — the wiki should record only the base values an upgrade slider derives everything else from, never a specific upgraded copy's numbers.

Note on Class: the Exaltation swap system can change an item's class restriction (e.g. socketing a class-specific effect into an otherwise multi-class item can lock it to that class). Record the item's class access with no swapped-in Exaltations applied — its own original kit only.

Note on Skill: use the exact in-game skill name, e.g. "1H Piercing" rather than "Piercing" — Rogues do not have access to a 2H Piercing skill, so the Backstab auto-default checks for this exact string.

Ratio shown as an empty visual placeholder: the Ratio row (Base Dmg ÷ Delay) always renders when the item has a dmg value, with its label present but the value intentionally left blank (). This mocks up how the page is expected to look once the item upgrade tier slider is implemented — that tool would compute and fill in Ratio live based on the selected tier, which a static wiki page cannot do on its own for a value tied to a variable upgrade tier. The placeholder just reserves the correct labeled position without guessing at the computation.

Zero-value safeguard: every numeric stat field except Weight is skipped entirely — not rendered at all, with the layout adjusting automatically to close the gap — if the value is literally "0". This includes Base Dmg, Delay, Dmg Bon, HP, Mana, Endurance, Strength, Stamina, Intelligence, Wisdom, Agility, Dexterity, Charisma, and all six SV resists. This guards against an editor typing 0 out of habit for a stat that doesn't apply, since with named parameters it's easy to treat this like a form to fill in completely rather than leaving a field genuinely blank. Leaving the field blank works exactly the same way as entering 0.

Exception: Weight always renders, even at 0. Weight is a real physical attribute (a weightless item is meaningful data, not "not applicable"), so | weight = 0 always shows and is normalized to display as "0.0" rather than a bare "0", matching the in-game tooltip's formatting.

Size and Skill always render regardless of value — these aren't numeric bonuses and have no meaningful "zero" state to guard against.

Parameters:

  • itemname, lucy_img_ID — same as original
  • flags — free text, e.g. "Lore Equipped, Attunable, Quest, Placeable"
  • class, race, slot
  • size, weight, skill, delay
  • dmg, dmg_bonus, backstab (optional; defaults to dmg for Rogue-usable 1H Piercing weapons)
  • hp, mana, endurance
  • str, sta, agi, dex, wis, int, cha
  • svmagic, svfire, svcold, svdisease, svpoison, svvoid
  • focus_effect, worn_effect — a linked spell name
  • combat_effect, combat_effect_level — linked spell name + "(Req Level X)"
  • click_effect, click_effect_flag (e.g. "Must Equip"), click_cast_time, click_required_level, click_cooldown

Deliberately NOT tracked: Exaltation slot contents (which item currently provides each effect) — this is mutable player customization, not base item data. Only record an effect here if the in-game Exaltation slot shows the item's OWN name as the source.

Deliberately omitted: Ratio (Base Dmg ÷ Delay) — client-computed display value, not something an editor enters.