Module:AbilityHints: Difference between revisionsGive feedback
Wrap hint icons in our own link to the item page (keeps click-through while icon still renders link-free) for tooltip testing (with help from vergir-bot LLM) |
Revert to span-wrapped icons: MediaWiki escapes raw anchor tags in module output, so the custom-link approach renders as broken text. Back to the working no-link version (with help from vergir-bot LLM) Tag: Manual revert |
||
| Line 47: | Line 47: | ||
for _, def in ipairs(CONFIG) do | for _, def in ipairs(CONFIG) do | ||
if member[def.list] and not (def.suppressed_by and member[def.suppressed_by]) then | if member[def.list] and not (def.suppressed_by and member[def.suppressed_by]) then | ||
local img = icon_module._render(def.item, { size = '24px', ['icon-only'] = 'true', ['no-link'] = 'true' }) | local img = icon_module._render(def.item, { size = '24px', ['icon-only'] = 'true', ['no-link'] = 'true' }) | ||
table.insert(icons, | table.insert(icons, | ||
'< | '<span class="ability-hint">' .. img | ||
.. '<span class="ability-hint-tip">' .. def.tip .. '</span></ | .. '<span class="ability-hint-tip">' .. def.tip .. '</span></span>' | ||
) | ) | ||
end | end | ||